python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 3531394 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2635649) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2635649) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21032977 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2635649'] with mtr_portfolio_ids : ['21032977'] and first list_photo_ids : [] new path : /proc/3531394/ Name: python3 Umask: 0002 State: R (running) Tgid: 3531394 Ngid: 0 Pid: 3531394 PPid: 3531393 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3531394 NSpid: 3531394 NSpgid: 3529661 NSsid: 3529661 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98100 kB VmRSS: 98100 kB RssAnon: 59764 kB RssFile: 38336 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3531394', 'Ngid': '0', 'Pid': '3531394', 'PPid': '3531393', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3531394', 'NSpid': '3531394', 'NSpgid': '3529661', 'NSsid': '3529661', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98100 kB', 'VmRSS': '98100 kB', 'RssAnon': '59764 kB', 'RssFile': '38336 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '3531394', '1106844', '0', '1106844', '865592', '98100', b'', 'marlene', '2635649') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21032977) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2635649 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21032977) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340897833, 'portfolio_id': 21032977}, {'photo_id': 1340897782, 'portfolio_id': 21032977}, {'photo_id': 1340897780, 'portfolio_id': 21032977}, {'photo_id': 1340897776, 'portfolio_id': 21032977}, {'photo_id': 1340897772, 'portfolio_id': 21032977}, {'photo_id': 1340897560, 'portfolio_id': 21032977}, {'photo_id': 1340897556, 'portfolio_id': 21032977}, {'photo_id': 1340897548, 'portfolio_id': 21032977}, {'photo_id': 1340897540, 'portfolio_id': 21032977}, {'photo_id': 1340897535, 'portfolio_id': 21032977}, {'photo_id': 1340897443, 'portfolio_id': 21032977}, {'photo_id': 1340897436, 'portfolio_id': 21032977}, {'photo_id': 1340897431, 'portfolio_id': 21032977}, {'photo_id': 1340897428, 'portfolio_id': 21032977}, {'photo_id': 1340897423, 'portfolio_id': 21032977}, {'photo_id': 1340897321, 'portfolio_id': 21032977}, {'photo_id': 1340897298, 'portfolio_id': 21032977}, {'photo_id': 1340897294, 'portfolio_id': 21032977}, {'photo_id': 1340897288, 'portfolio_id': 21032977}, {'photo_id': 1340897222, 'portfolio_id': 21032977}, {'photo_id': 1340897212, 'portfolio_id': 21032977}, {'photo_id': 1340897127, 'portfolio_id': 21032977}, {'photo_id': 1340897110, 'portfolio_id': 21032977}, {'photo_id': 1340897108, 'portfolio_id': 21032977}, {'photo_id': 1340897051, 'portfolio_id': 21032977}, {'photo_id': 1340897045, 'portfolio_id': 21032977}, {'photo_id': 1340897042, 'portfolio_id': 21032977}, {'photo_id': 1340897039, 'portfolio_id': 21032977}, {'photo_id': 1340897000, 'portfolio_id': 21032977}, {'photo_id': 1340896998, 'portfolio_id': 21032977}, {'photo_id': 1340896995, 'portfolio_id': 21032977}, {'photo_id': 1340896973, 'portfolio_id': 21032977}, {'photo_id': 1340896968, 'portfolio_id': 21032977}, {'photo_id': 1340896963, 'portfolio_id': 21032977}, {'photo_id': 1340896961, 'portfolio_id': 21032977}, {'photo_id': 1340896959, 'portfolio_id': 21032977}, {'photo_id': 1340896893, 'portfolio_id': 21032977}, {'photo_id': 1340896890, 'portfolio_id': 21032977}, {'photo_id': 1340896853, 'portfolio_id': 21032977}, {'photo_id': 1340896810, 'portfolio_id': 21032977}, {'photo_id': 1340896733, 'portfolio_id': 21032977}, {'photo_id': 1340896728, 'portfolio_id': 21032977}, {'photo_id': 1340896726, 'portfolio_id': 21032977}, {'photo_id': 1340896724, 'portfolio_id': 21032977}, {'photo_id': 1340896434, 'portfolio_id': 21032977}, {'photo_id': 1340896389, 'portfolio_id': 21032977}, {'photo_id': 1340896078, 'portfolio_id': 21032977}, {'photo_id': 1340895877, 'portfolio_id': 21032977}, {'photo_id': 1340895874, 'portfolio_id': 21032977}, {'photo_id': 1340895868, 'portfolio_id': 21032977}, {'photo_id': 1340895851, 'portfolio_id': 21032977}, {'photo_id': 1340895847, 'portfolio_id': 21032977}] map_portfolio_id_photo_id: {21032977: [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535, 1340897443, 1340897436, 1340897431, 1340897428, 1340897423, 1340897321, 1340897298, 1340897294, 1340897288, 1340897222, 1340897212, 1340897127, 1340897110, 1340897108, 1340897051, 1340897045, 1340897042, 1340897039, 1340897000, 1340896998, 1340896995, 1340896973, 1340896968, 1340896963, 1340896961, 1340896959, 1340896893, 1340896890, 1340896853, 1340896810, 1340896733, 1340896728, 1340896726, 1340896724, 1340896434, 1340896389, 1340896078, 1340895877, 1340895874, 1340895868, 1340895851, 1340895847]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.018326759338378906 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 05:59:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21032977) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 21032977 get user id for portfolio 21032977 get sub ptf for main ptf 21032977, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'papier', 'plastique', 'Carton_gris', 'cartonnette', 'metal', 'kraft', 'environnement', 'Carton_brun', 'mal_croppe', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032977 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','cartonnette','metal','kraft','environnement','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032977 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','cartonnette','metal','kraft','environnement','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21032977, 'sub_port_id': 21033010, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647826, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'plastique': {'main_port_id': 21032977, 'sub_port_id': 21033011, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647827, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'Carton_gris': {'main_port_id': 21032977, 'sub_port_id': 21033012, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647828, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'autre_refus': {'main_port_id': 21032977, 'sub_port_id': 21033013, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647829, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'cartonnette': {'main_port_id': 21032977, 'sub_port_id': 21033014, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647830, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'flou': {'main_port_id': 21032977, 'sub_port_id': 21033015, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647831, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21032977, 'sub_port_id': 21033016, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647832, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'metal': {'main_port_id': 21032977, 'sub_port_id': 21033017, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647833, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'papier': {'main_port_id': 21032977, 'sub_port_id': 21033018, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647834, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'environnement': {'main_port_id': 21032977, 'sub_port_id': 21033019, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647835, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'Carton_brun': {'main_port_id': 21032977, 'sub_port_id': 21033020, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647836, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}, 'mal_croppe': {'main_port_id': 21032977, 'sub_port_id': 21033021, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647837, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033010 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033010) result : ((1340897455,), (1340897769,), (1340897770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033011 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033011) result : ((1340896670,), (1340896671,), (1340897032,), (1340897767,), (1340902830,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033012 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033012) result : ((1340896660,), (1340897027,), (1340897249,), (1340897250,), (1340897271,), (1340897272,), (1340897450,), (1340897759,), (1340897760,), (1340897761,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033013 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033013) result : ((1340896653,), (1340896654,), (1340896655,), (1340896656,), (1340896657,), (1340896658,), (1340897022,), (1340897023,), (1340897024,), (1340897025,), (1340897026,), (1340897243,), (1340897244,), (1340897266,), (1340897267,), (1340897268,), (1340897269,), (1340897283,), (1340897284,), (1340897445,), (1340897446,), (1340897447,), (1340897448,), (1340897470,), (1340897471,), (1340897472,), (1340897473,), (1340897740,), (1340897753,), (1340897754,), (1340897755,), (1340897756,), (1340897757,), (1340902390,), (1340902391,), (1340902392,), (1340902393,), (1340902394,), (1340902805,), (1340902807,), (1340902809,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033014 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033014) result : ((1340897274,), (1340897275,), (1340897276,), (1340897277,), (1340897452,), (1340897453,), (1340897475,), (1340897476,), (1340897741,), (1340897765,), (1340902396,), (1340902397,), (1340902398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033015 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033015) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033016 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033016) result : ((1340896643,), (1340897021,), (1340897467,), (1340897468,), (1340897738,), (1340897739,), (1340902387,), (1340902388,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033017 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033017) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033018 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033018) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033019 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033019) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033020 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033020) result : ((1340896661,), (1340897028,), (1340897029,), (1340897030,), (1340897031,), (1340897252,), (1340897477,), (1340897742,), (1340897766,), (1340902400,), (1340902401,), (1340902828,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21033021 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21032977 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21033021) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21032977) result : ((1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340897000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032977 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','cartonnette','metal','kraft','environnement','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032977 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','cartonnette','metal','kraft','environnement','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21032977, 'sub_port_id': 21033022, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647838, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'plastique': {'main_port_id': 21032977, 'sub_port_id': 21033023, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647839, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'Carton_gris': {'main_port_id': 21032977, 'sub_port_id': 21033024, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647840, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'autre_refus': {'main_port_id': 21032977, 'sub_port_id': 21033025, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647841, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'cartonnette': {'main_port_id': 21032977, 'sub_port_id': 21033026, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647842, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'flou': {'main_port_id': 21032977, 'sub_port_id': 21033027, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647843, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21032977, 'sub_port_id': 21033028, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647844, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'metal': {'main_port_id': 21032977, 'sub_port_id': 21033029, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647845, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'papier': {'main_port_id': 21032977, 'sub_port_id': 21033030, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647846, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'environnement': {'main_port_id': 21032977, 'sub_port_id': 21033031, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647847, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'Carton_brun': {'main_port_id': 21032977, 'sub_port_id': 21033032, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647848, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 51, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}, 'mal_croppe': {'main_port_id': 21032977, 'sub_port_id': 21033033, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13647849, 'last_updated_at': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 5, 36, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 51, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033011 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033024,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033012 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033025,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033018 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033032,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033020 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21033033,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21033021 lien utilise dans velours : https://www.fotonower.com/velours/21033022,21033023,21033024,21033025,21033026,21033027,21033028,21033029,21033030,21033031,21033032,21033033?tags=kraft,plastique,Carton_gris,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,metal,papier,environnement,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21032977]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] map_info['map_portfolio_photo'] : {21032977: [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535, 1340897443, 1340897436, 1340897431, 1340897428, 1340897423, 1340897321, 1340897298, 1340897294, 1340897288, 1340897222, 1340897212, 1340897127, 1340897110, 1340897108, 1340897051, 1340897045, 1340897042, 1340897039, 1340897000, 1340896998, 1340896995, 1340896973, 1340896968, 1340896963, 1340896961, 1340896959, 1340896893, 1340896890, 1340896853, 1340896810, 1340896733, 1340896728, 1340896726, 1340896724, 1340896434, 1340896389, 1340896078, 1340895877, 1340895874, 1340895868, 1340895851, 1340895847]} final : False mtd_id 4302 list_pids : [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] Looping around the photos to save general results len do output : 1 /21032977. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21032977', "{'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021}", None, None, None, None, '2635649'), ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649')] time used for this insertion : 0.2072737216949463 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6792287826538086 time spend to save output : 0.2075493335723877 total time spend for step 1 : 0.8867781162261963 step2:final Wed Mar 5 05:59:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21032977) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 21032977 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340895877,1340895874,1340895868,1340895851,1340895847,1340896078,1340896434,1340896389,1340896853,1340896810,1340896733,1340896728,1340896726,1340896724,1340896893,1340896890,1340896973,1340896968,1340896963,1340896961,1340896959,1340897000,1340896998,1340896995,1340897051,1340897045,1340897042,1340897039,1340897222,1340897212,1340897127,1340897110,1340897108,1340897321,1340897298,1340897294,1340897288,1340897443,1340897436,1340897431,1340897428,1340897560,1340897423,1340897556,1340897548,1340897540,1340897535,1340897782,1340897780,1340897776,1340897772,1340897833); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21032977]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} new output for save of step final : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] map_info['map_portfolio_photo'] : {21032977: [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535, 1340897443, 1340897436, 1340897431, 1340897428, 1340897423, 1340897321, 1340897298, 1340897294, 1340897288, 1340897222, 1340897212, 1340897127, 1340897110, 1340897108, 1340897051, 1340897045, 1340897042, 1340897039, 1340897000, 1340896998, 1340896995, 1340896973, 1340896968, 1340896963, 1340896961, 1340896959, 1340896893, 1340896890, 1340896853, 1340896810, 1340896733, 1340896728, 1340896726, 1340896724, 1340896434, 1340896389, 1340896078, 1340895877, 1340895874, 1340895868, 1340895851, 1340895847]} final : False mtd_id 4302 list_pids : [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] Looping around the photos to save general results len do output : 10 /1340897833.Didn't retrieve data . /1340897782.Didn't retrieve data . /1340897780.Didn't retrieve data . /1340897776.Didn't retrieve data . /1340897772.Didn't retrieve data . /1340897560.Didn't retrieve data . /1340897556.Didn't retrieve data . /1340897548.Didn't retrieve data . /1340897540.Didn't retrieve data . /1340897535.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21032977', '1340897833', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897782', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897780', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897776', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897772', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897560', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897556', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897548', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897540', '0.07197122341602144', None, None, None, None, '2635649'), ('4302', '21032977', '1340897535', '0.07197122341602144', None, None, None, None, '2635649')] time used for this insertion : 1.3469955921173096 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06349515914916992 time spend to save output : 1.3475351333618164 total time spend for step 2 : 1.4110302925109863 step3:velours_tree Wed Mar 5 05:59:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21032977: [{'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021}]} input_args_next_step : {21032977: ()} output_args : {21032977: [{'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021}]} args : 21032977 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21032977) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21032977]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.2896585464477539 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.28969812393188477 step4:send_mail_cod Wed Mar 5 05:59:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} input_args_next_step : {1340897833: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897833 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897782 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897780 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897776 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897772 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897560 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897556 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897548 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897540 depend.output_id : 0 input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ()} output_args : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',)} args : 1340897535 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21032977: [{'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021}]} input_args_next_step : {1340897833: ('0.07197122341602144',), 1340897782: ('0.07197122341602144',), 1340897780: ('0.07197122341602144',), 1340897776: ('0.07197122341602144',), 1340897772: ('0.07197122341602144',), 1340897560: ('0.07197122341602144',), 1340897556: ('0.07197122341602144',), 1340897548: ('0.07197122341602144',), 1340897540: ('0.07197122341602144',), 1340897535: ('0.07197122341602144',), 21032977: ()} output_args : {21032977: [{'kraft': 21033010, 'plastique': 21033011, 'Carton_gris': 21033012, 'autre_refus': 21033013, 'cartonnette': 21033014, 'flou': 21033015, 'Teint_Dans_La_Masse': 21033016, 'metal': 21033017, 'papier': 21033018, 'environnement': 21033019, 'Carton_brun': 21033020, 'mal_croppe': 21033021}]} args : 21032977 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.07197122341602144',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21032977) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1340897833,1340897782,1340897780,1340897776,1340897772,1340897560,1340897556,1340897548,1340897540,1340897535) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340897535 begin to download photo : 1340897556 begin to download photo : 1340897776 begin to download photo : 1340897833 download finish for photo 1340897776 begin to download photo : 1340897780 download finish for photo 1340897535 begin to download photo : 1340897540 download finish for photo 1340897833 download finish for photo 1340897556 begin to download photo : 1340897560 download finish for photo 1340897780 begin to download photo : 1340897782 download finish for photo 1340897540 begin to download photo : 1340897548 download finish for photo 1340897560 begin to download photo : 1340897772 download finish for photo 1340897772 download finish for photo 1340897548 download finish for photo 1340897782 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21032977_05-03-2025_06_00_00.pdf 21033010 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340897455: '1741129023_808663_1340897045_028ddfdb0668785852788d787dab724f_rle_crop_3693792134_0.png', 1340897769: '1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792870_0.png', 1340897770: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792883_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b63a5d0eb8a5391e0bd718570b6ed2e0_39170042.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0229125a8d3de5ff5e98a311de4f2c6b_18464159.png change filename to text .imagette210330101741150800/ imagette210330101741150800/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792883_0.png.png imagette210330101741150800/1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792870_0.png.png imagette210330101741150800/1741129023_808663_1340897045_028ddfdb0668785852788d787dab724f_rle_crop_3693792134_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fd78d0b35d1d5c5a5aa98713c3f7c735_53551011.png imagette210330101741150800 21033011 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033011 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340896670: '1741128542_803182_1340895847_279b6913916f1dd2b9f39a9aade1ce1e_rle_crop_3693788047_0.png', 1340896671: '1741128542_803182_1340895847_279b6913916f1dd2b9f39a9aade1ce1e_rle_crop_3693788045_0.png', 1340897032: '1741128791_805834_1340896810_ca81e80c84f8fd5c6516cf3d480e05db_rle_crop_3693789630_0.png', 1340897767: '1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792864_0.png', 1340902830: '1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824243_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8238a7c859bfab1ba8a2eb7d4c13cb19_45499163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/49b6ed08ea3ffd1721a92e6dcb26dbbe_39376359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d47c7cedb9f364f0ac1d940c7ad3fcf9_74431929.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a9c455ef538c6244eb45cd8036d27df8_72663920.png change filename to text .imagette210330111741150800/ imagette210330111741150800/1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792864_0.png.png imagette210330111741150800/1741128791_805834_1340896810_ca81e80c84f8fd5c6516cf3d480e05db_rle_crop_3693789630_0.png.png imagette210330111741150800/1741128542_803182_1340895847_279b6913916f1dd2b9f39a9aade1ce1e_rle_crop_3693788045_0.png.png imagette210330111741150800/1741128542_803182_1340895847_279b6913916f1dd2b9f39a9aade1ce1e_rle_crop_3693788047_0.png.png imagette210330111741150800/1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824243_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/dc9e3da05002024ff0976fd04bb0f1db_37334423.png imagette210330111741150800 21033013 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340897756: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792892_0.png', 1340897447: '1741129023_808663_1340897042_0073a6ca701ff6821455b6bfbc1c4caa_rle_crop_3693792246_0.png', 1340897448: '1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792272_0.png', 1340897470: '1741129031_808827_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792301_0.png', 1340897471: '1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792328_0.png', 1340897472: '1741129031_808827_1340897110_d0e1f757e51cee2420899b166cbf30fa_rle_crop_3693792341_0.png', 1340897473: '1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792426_0.png', 1340897740: '1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792731_0.png', 1340897753: '1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792867_0.png', 1340897754: '1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792879_0.png', 1340897755: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792882_0.png', 1340897446: '1741129023_808663_1340897045_028ddfdb0668785852788d787dab724f_rle_crop_3693792138_0.png', 1340897757: '1741129171_810184_1340897423_194e1d398997d32fce6a1aae5c955b1c_rle_crop_3693792904_0.png', 1340902390: '1741131153_920046_1340897321_e80580cc8df64b998573cec8baabd3a5_rle_crop_3693824051_0.png', 1340902391: '1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792301_0.png', 1340902392: '1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792328_0.png', 1340902393: '1741131153_920046_1340897110_d0e1f757e51cee2420899b166cbf30fa_rle_crop_3693792341_0.png', 1340902394: '1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792426_0.png', 1340902805: '1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824248_0.png', 1340902807: '1741131194_920564_1340896998_64260cae5df76fec3fb387fed90efb91_rle_crop_3693791722_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9d13eb229f63b0e94970f80eb6e7f0b3_47510154.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/29d114145f3a5ffb08462f25e3de724b_63687714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/22d4ee16d2cf83efe265356187009486_1775046.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/77b65a0027d2b2947d47585a5cb3ae33_84381750.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/41cc9527f3c6cf89ccacba56f4feaa9d_16412816.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2f2ed73ed787ab4ec3c752cf17ffa697_17668110.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/31085fcb5f73801d8842faf7935822c9_30638864.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f9eee13f5823c02b9204497e0022145e_92841306.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3e8e098b6e04a832b398b202cb7bb63e_12987618.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7aa956ba543afc588b831d2b05a039f2_80691651.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d3c5df7c413169a6ffd6862c3c8289ec_33425527.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/737942acc1f643d87dffe12830688ce3_73299352.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5b156487c0ba2fdc45d94902bf74753b_4726516.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/67d50ff88b489efc74490d3dd10938a9_61584079.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/77b65a0027d2b2947d47585a5cb3ae33_59602236.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/41cc9527f3c6cf89ccacba56f4feaa9d_75571525.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2f2ed73ed787ab4ec3c752cf17ffa697_19197045.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/31085fcb5f73801d8842faf7935822c9_28359385.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f6b5113808f6b9db47fa546289aaae07_53902619.png change filename to text .imagette210330131741150801/ imagette210330131741150801/1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792272_0.png.png imagette210330131741150801/1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792867_0.png.png imagette210330131741150801/1741129171_810184_1340897423_194e1d398997d32fce6a1aae5c955b1c_rle_crop_3693792904_0.png.png imagette210330131741150801/1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792879_0.png.png imagette210330131741150801/1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792731_0.png.png imagette210330131741150801/1741129031_808827_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792301_0.png.png imagette210330131741150801/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792892_0.png.png imagette210330131741150801/1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824248_0.png.png imagette210330131741150801/1741131153_920046_1340897321_e80580cc8df64b998573cec8baabd3a5_rle_crop_3693824051_0.png.png imagette210330131741150801/1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792426_0.png.png imagette210330131741150801/1741131153_920046_1340897110_d0e1f757e51cee2420899b166cbf30fa_rle_crop_3693792341_0.png.png imagette210330131741150801/1741129023_808663_1340897042_0073a6ca701ff6821455b6bfbc1c4caa_rle_crop_3693792246_0.png.png imagette210330131741150801/1741129031_808827_1340897110_d0e1f757e51cee2420899b166cbf30fa_rle_crop_3693792341_0.png.png imagette210330131741150801/1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792328_0.png.png imagette210330131741150801/1741129023_808663_1340897045_028ddfdb0668785852788d787dab724f_rle_crop_3693792138_0.png.png imagette210330131741150801/1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792426_0.png.png imagette210330131741150801/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792882_0.png.png imagette210330131741150801/1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792328_0.png.png imagette210330131741150801/1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792301_0.png.png imagette210330131741150801/1741131194_920564_1340896998_64260cae5df76fec3fb387fed90efb91_rle_crop_3693791722_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b368c7fc899599785bd323ff049642eb_16080134.png imagette210330131741150801 21033014 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340897274: '1741128931_807561_1340896963_4fd7b69271cb76393827dc06c48d493b_rle_crop_3693791514_0.png', 1340897275: '1741128931_807561_1340896961_52b6ffe52d34427f736f42b4421ccf9c_rle_crop_3693791525_0.png', 1340897276: '1741128931_807561_1340896961_52b6ffe52d34427f736f42b4421ccf9c_rle_crop_3693791526_0.png', 1340897277: '1741128931_807561_1340896959_76f39cecf7dbca7b35016e7cbafa0b55_rle_crop_3693791537_0.png', 1340897452: '1741129023_808663_1340897042_0073a6ca701ff6821455b6bfbc1c4caa_rle_crop_3693792241_0.png', 1340897453: '1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792267_0.png', 1340897475: '1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792321_0.png', 1340897476: '1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792325_0.png', 1340897741: '1741129152_809984_1340897298_252d36d44481a2950e8737fff5cd7bca_rle_crop_3693792739_0.png', 1340897765: '1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792862_0.png', 1340902396: '1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_bib_crop_3693792321_0.jpg', 1340902397: '1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693824076_0.png', 1340902398: '1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/32d616fe8c80285f748d3619ecac475f_98621569.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d4d1aeac5cc246c8cd6c9cf0c5de3f79_94122064.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f7225f0157bd9ccba77ff2a331462a58_81945974.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2ba69f6a7682ad0cc0a3f4743f237256_6601556.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7a3d5de9b72e402b0201a5d4e324b4b5_34289523.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a3db7f3a4e4639eb10873d5257a77614_96153880.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a59fa4fa06375b6912b0776af71b01f8_14767891.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3a88fdc3bda20b6219f3d1e919eb70fd_61890127.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/95fff14088d3e82c30096de953b3077e_78181026.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/86f561381dbf02aeeb26bcfbef965c5b_96158684.png change filename to text .wget -O 11.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/60a1769ea5a0d9f1a9ba3615b32bd93e_60067725.jpg change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/77e7b085ada119dbc13793bf5dbc9e42_10270907.png change filename to text .imagette210330141741150802/ imagette210330141741150802/1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_bib_crop_3693792321_0.jpg.jpg imagette210330141741150802/1741128931_807561_1340896959_76f39cecf7dbca7b35016e7cbafa0b55_rle_crop_3693791537_0.png.png imagette210330141741150802/1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693824076_0.png.png imagette210330141741150802/1741128931_807561_1340896961_52b6ffe52d34427f736f42b4421ccf9c_rle_crop_3693791525_0.png.png imagette210330141741150802/1741131153_920046_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792325_0.png.png imagette210330141741150802/1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792267_0.png.png imagette210330141741150802/1741129023_808663_1340897042_0073a6ca701ff6821455b6bfbc1c4caa_rle_crop_3693792241_0.png.png imagette210330141741150802/1741129171_810184_1340897436_921bb71eec14d55f21cb528e28ba82d0_rle_crop_3693792862_0.png.png imagette210330141741150802/1741128931_807561_1340896961_52b6ffe52d34427f736f42b4421ccf9c_rle_crop_3693791526_0.png.png imagette210330141741150802/1741128931_807561_1340896963_4fd7b69271cb76393827dc06c48d493b_rle_crop_3693791514_0.png.png imagette210330141741150802/1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792325_0.png.png imagette210330141741150802/1741129031_808827_1340897127_16bef65c6127d7e3d7f7994119d65b44_rle_crop_3693792321_0.png.png imagette210330141741150802/1741129152_809984_1340897298_252d36d44481a2950e8737fff5cd7bca_rle_crop_3693792739_0.png.png imagette210330151741150803/ imagette210330171741150803/ imagette210330211741150803/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3a88fdc3bda20b6219f3d1e919eb70fd_58242452.png imagette210330141741150802 21033015 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033015 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210330151741150803 21033017 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210330171741150803 21033021 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033021 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210330211741150803 21033012 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033012 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340896660: '1741128542_803182_1340895851_acd82751f7fad3edf2b1317b77213283_rle_crop_3693788029_0.png', 1340897027: '1741128791_805834_1340896893_72e26b172a4c8a906cdbd92058bada82_rle_crop_3693789543_0.png', 1340897249: '1741128913_807268_1340896973_f5a50a34e17b7ec437e49a8eda7d3fba_rle_crop_3693790748_0.png', 1340897250: '1741128913_807268_1340896973_f5a50a34e17b7ec437e49a8eda7d3fba_rle_crop_3693790749_0.png', 1340897271: '1741128931_807561_1340896968_67ed135ca682316cde34e7964f21eb69_rle_crop_3693791463_0.png', 1340897272: '1741128931_807561_1340896959_76f39cecf7dbca7b35016e7cbafa0b55_rle_crop_3693791536_0.png', 1340897450: '1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792264_0.png', 1340897759: '1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792872_0.png', 1340897760: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792885_0.png', 1340897761: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c6f0a6604e0535f1ddfb83273c68cba1_14936113.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cd6cf053c16ecf0d9502bc12ce7c13f0_53390836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f77e116ca3bc3d2367657ed6dcf2350f_41642433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9f76f287a06a98d7ae06e1b8a93c4c76_39316654.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/586c5a86e4c766e051593013e30ebdda_47524566.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d17ba3c685df3dbd07f7e3695d9b7084_11008107.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1994c86bd6b0e7a7779b24714c6575b3_34739440.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e36e291e1505aab21e395b7d1b2cc6ae_25437399.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8920dbf00c90f899a96739e8a020bdf9_54729445.png change filename to text .imagette210330121741150803/ imagette210330121741150803/1741128791_805834_1340896893_72e26b172a4c8a906cdbd92058bada82_rle_crop_3693789543_0.png.png imagette210330121741150803/1741128931_807561_1340896968_67ed135ca682316cde34e7964f21eb69_rle_crop_3693791463_0.png.png imagette210330121741150803/1741129023_808663_1340897039_92858c9b74d231452014676ef5be7dfc_rle_crop_3693792264_0.png.png imagette210330121741150803/1741128913_807268_1340896973_f5a50a34e17b7ec437e49a8eda7d3fba_rle_crop_3693790748_0.png.png imagette210330121741150803/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792885_0.png.png imagette210330121741150803/1741128931_807561_1340896959_76f39cecf7dbca7b35016e7cbafa0b55_rle_crop_3693791536_0.png.png imagette210330121741150803/1741128542_803182_1340895851_acd82751f7fad3edf2b1317b77213283_rle_crop_3693788029_0.png.png imagette210330121741150803/1741129171_810184_1340897431_04b23475cbf46e1bc9c6025e8bb5f1b2_rle_crop_3693792872_0.png.png imagette210330121741150803/1741128913_807268_1340896973_f5a50a34e17b7ec437e49a8eda7d3fba_rle_crop_3693790749_0.png.png imagette210330121741150803/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792884_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/04783f8beb384e4ce83ea22687b2081e_25901784.png imagette210330121741150803 21033016 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033016 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340896643: '1741128542_803182_1340895877_fa428f841e88ee27fea58160f6e54ddc_rle_crop_3693787954_0.png', 1340897021: '1741128791_805834_1340896726_83cea8e033aa6d03c60b7d612ac66135_rle_crop_3693789686_0.png', 1340897467: '1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792423_0.png', 1340897468: '1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792421_0.png', 1340897738: '1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792732_0.png', 1340897739: '1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792729_0.png', 1340902387: '1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792423_0.png', 1340902388: '1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792421_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2820a4b648619a68296bef74fae76525_85599488.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7022ae6809e09037e521bb077f65faba_25907720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f17281ca2fa501bbe797ff9a2078f160_32422089.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8dd2c283526d8c7d5c595488cfe1c1a2_48914456.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3cdde2f8dedebe5aafe4a773b1ab9a62_18512856.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e42f6bfcc16da392ef68b0978adc0063_12016164.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f17281ca2fa501bbe797ff9a2078f160_30795897.png change filename to text .imagette210330161741150804/ imagette210330161741150804/1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792729_0.png.png imagette210330161741150804/1741128542_803182_1340895877_fa428f841e88ee27fea58160f6e54ddc_rle_crop_3693787954_0.png.png imagette210330161741150804/1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792423_0.png.png imagette210330161741150804/1741128791_805834_1340896726_83cea8e033aa6d03c60b7d612ac66135_rle_crop_3693789686_0.png.png imagette210330161741150804/1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792423_0.png.png imagette210330161741150804/1741131153_920046_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792421_0.png.png imagette210330161741150804/1741129031_808827_1340897108_9bf5274f8dc36e28fb839415737ce0c0_rle_crop_3693792421_0.png.png imagette210330161741150804/1741129152_809984_1340897443_d543201da6a27ef173a9b37009519f25_rle_crop_3693792732_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8dd2c283526d8c7d5c595488cfe1c1a2_22308143.png imagette210330161741150804 21033020 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21033020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340896661: '1741128542_803182_1340895877_fa428f841e88ee27fea58160f6e54ddc_rle_crop_3693787955_0.png', 1340897028: '1741128791_805834_1340896893_72e26b172a4c8a906cdbd92058bada82_rle_crop_3693789547_0.png', 1340897029: '1741128791_805834_1340896810_ca81e80c84f8fd5c6516cf3d480e05db_rle_crop_3693789633_0.png', 1340897030: '1741128791_805834_1340896733_0dfbb1e6de52d6cdbee2fd99da41a5c7_rle_crop_3693789647_0.png', 1340897031: '1741128791_805834_1340896728_a5099b7de1d405702dfeb75a5be65376_rle_crop_3693789660_0.png', 1340897252: '1741128913_807268_1340896890_98c5ccd58ea8d42ad5e62df48623c70e_rle_crop_3693790771_0.png', 1340897477: '1741129031_808827_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792302_0.png', 1340897742: '1741129152_809984_1340897298_252d36d44481a2950e8737fff5cd7bca_rle_crop_3693792740_0.png', 1340897766: '1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792891_0.png', 1340902400: '1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_bib_crop_3693792302_0.jpg', 1340902401: '1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693824066_0.png', 1340902828: '1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824246_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6795f397f3d08eb2c57eee9f25bc49cd_53491597.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c51b51f56c5836c35bd76260bd877195_59965813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7831e02ef73ed40c079ab6bac5eef04b_38752543.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d597bdca785997062c6780218a125fea_13004558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/65d2d3e121ae991a57b11a4f9777d97e_22393083.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/04b2f45a40ca55d0e2eb82accf0fd06a_71839243.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/46eb6b922bf1120c944792529c0813d6_72992129.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ab9e9463ee4aad4a28270f5a825e6cfb_53287961.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b95fa922b502315b0923c1770a2096c5_56924732.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/45593250443b879474aac618fa3aae4a_68737574.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8c0b2c54eb89b149b916ab3a2e0aeb12_29112285.png change filename to text .imagette210330201741150805/ imagette210330201741150805/1741128791_805834_1340896893_72e26b172a4c8a906cdbd92058bada82_rle_crop_3693789547_0.png.png imagette210330201741150805/1741129152_809984_1340897298_252d36d44481a2950e8737fff5cd7bca_rle_crop_3693792740_0.png.png imagette210330201741150805/1741128791_805834_1340896728_a5099b7de1d405702dfeb75a5be65376_rle_crop_3693789660_0.png.png imagette210330201741150805/1741128913_807268_1340896890_98c5ccd58ea8d42ad5e62df48623c70e_rle_crop_3693790771_0.png.png imagette210330201741150805/1741128791_805834_1340896733_0dfbb1e6de52d6cdbee2fd99da41a5c7_rle_crop_3693789647_0.png.png imagette210330201741150805/1741129171_810184_1340897428_368be20574eecf375f332076052b5102_rle_crop_3693792891_0.png.png imagette210330201741150805/1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693824066_0.png.png imagette210330201741150805/1741128791_805834_1340896810_ca81e80c84f8fd5c6516cf3d480e05db_rle_crop_3693789633_0.png.png imagette210330201741150805/1741131153_920046_1340897212_7df091e7f091a3bcab83eed3dfbc0729_bib_crop_3693792302_0.jpg.jpg imagette210330201741150805/1741129031_808827_1340897212_7df091e7f091a3bcab83eed3dfbc0729_rle_crop_3693792302_0.png.png imagette210330201741150805/1741128542_803182_1340895877_fa428f841e88ee27fea58160f6e54ddc_rle_crop_3693787955_0.png.png imagette210330201741150805/1741131194_920564_1340897051_9ff58d6ae0f85a31d45528cdadc8324a_rle_crop_3693824246_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/333a5b61ed3520b7c58b9ccf213edc69_88115576.png imagette210330201741150805 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21032977 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21033022,21033023,21033024,21033025,21033026,21033027,21033028,21033029,21033030,21033031,21033032,21033033?tags=kraft,plastique,Carton_gris,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,metal,papier,environnement,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1340897833] : ('0.07197122341602144',) no score found for photo 1340897833 We are sending mail with results at report@fotonower.com args[1340897782] : ('0.07197122341602144',) no score found for photo 1340897782 We are sending mail with results at report@fotonower.com args[1340897780] : ('0.07197122341602144',) no score found for photo 1340897780 We are sending mail with results at report@fotonower.com args[1340897776] : ('0.07197122341602144',) no score found for photo 1340897776 We are sending mail with results at report@fotonower.com args[1340897772] : ('0.07197122341602144',) no score found for photo 1340897772 We are sending mail with results at report@fotonower.com args[1340897560] : ('0.07197122341602144',) no score found for photo 1340897560 We are sending mail with results at report@fotonower.com args[1340897556] : ('0.07197122341602144',) no score found for photo 1340897556 We are sending mail with results at report@fotonower.com args[1340897548] : ('0.07197122341602144',) no score found for photo 1340897548 We are sending mail with results at report@fotonower.com args[1340897540] : ('0.07197122341602144',) no score found for photo 1340897540 We are sending mail with results at report@fotonower.com args[1340897535] : ('0.07197122341602144',) no score found for photo 1340897535 We are sending mail with results at report@fotonower.com refus_total : 0.07197122341602144 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21032977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf results_Auto_P21032977_05-03-2025_06_00_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21032977','results_Auto_P21032977_05-03-2025_06_00_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf','pdf','','0.28','0.07197122341602144') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21032977]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] map_info['map_portfolio_photo'] : {21032977: [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535, 1340897443, 1340897436, 1340897431, 1340897428, 1340897423, 1340897321, 1340897298, 1340897294, 1340897288, 1340897222, 1340897212, 1340897127, 1340897110, 1340897108, 1340897051, 1340897045, 1340897042, 1340897039, 1340897000, 1340896998, 1340896995, 1340896973, 1340896968, 1340896963, 1340896961, 1340896959, 1340896893, 1340896890, 1340896853, 1340896810, 1340896733, 1340896728, 1340896726, 1340896724, 1340896434, 1340896389, 1340896078, 1340895877, 1340895874, 1340895868, 1340895851, 1340895847]} final : False mtd_id 4302 list_pids : [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21032977', '1340897833', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649')] time used for this insertion : 0.01671123504638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.902058124542236 time spend to save output : 0.016965389251708984 total time spend for step 4 : 7.919023513793945 step5:split_time_score Wed Mar 5 06:00:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21032977'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('21032977',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21032977) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340897833: {'path': 'temp/1741150799_3531394_1340897833_2d327a983dc2a9a566f953dde5d42167.jpg', 'extension': 'jpg'}, 1340897556: {'path': 'temp/1741150799_3531394_1340897556_ccb889fe0a171b67b87d98958abe97be.jpg', 'extension': 'jpg'}, 1340897560: {'path': 'temp/1741150799_3531394_1340897560_96dff5e967f1b55c2a88983a35c20cde.jpg', 'extension': 'jpg'}, 1340897772: {'path': 'temp/1741150799_3531394_1340897772_7bd06ec467319d4e3fa341e9c04337c6.jpg', 'extension': 'jpg'}, 1340897535: {'path': 'temp/1741150799_3531394_1340897535_5d3c8bfb0855505afeb596b4f4b236cf.jpg', 'extension': 'jpg'}, 1340897540: {'path': 'temp/1741150799_3531394_1340897540_57b844aa2c20ef060ecedfb09e5689f4.jpg', 'extension': 'jpg'}, 1340897548: {'path': 'temp/1741150799_3531394_1340897548_182104817682d069183bb0d5fcbd6407.jpg', 'extension': 'jpg'}, 1340897776: {'path': 'temp/1741150799_3531394_1340897776_7d317b8c99f53aef0ee019377be367d1.jpg', 'extension': 'jpg'}, 1340897780: {'path': 'temp/1741150799_3531394_1340897780_52727ce6bb02dcfc2ba647a4ffc24741.jpg', 'extension': 'jpg'}, 1340897782: {'path': 'temp/1741150799_3531394_1340897782_f41307a817e276d887911d409ccc2203.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21032977; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21032977 group by h (('23', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21032977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21032977) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21032977) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21032977 Nombre de photos uploadées : 52 / 23040 (0%) 04032025 21032977 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 04032025 21032977 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1340895877, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fa428f841e88ee27fea58160f6e54ddc.jpg', 'username': None, 'uploaded_at': 1741128382, 'text': 'image_04032025_23_45_04_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340895874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7334e1081d316b2527d5d3fa02f9c958.jpg', 'username': None, 'uploaded_at': 1741128382, 'text': 'image_04032025_23_45_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340895868, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7ec9bde255699c646f7a15a7334547d6.jpg', 'username': None, 'uploaded_at': 1741128382, 'text': 'image_04032025_23_45_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340895851, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/acd82751f7fad3edf2b1317b77213283.jpg', 'username': None, 'uploaded_at': 1741128382, 'text': 'image_04032025_23_45_35_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029044151306152344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21032977, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.036110877990722656 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21000153, 'dashboard_result_id': 9220070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21000334, 'dashboard_result_id': 9220071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21000676, 'dashboard_result_id': 9220072, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21001000, 'dashboard_result_id': 9220073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21001000_04-03-2025_09_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21001003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21001004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21001005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21001006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21001007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21001008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21001009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21001010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21001011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21001012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21001013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21001014, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21002132, 'dashboard_result_id': 9220074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002132_04-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002185, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21002349, 'dashboard_result_id': 9220075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002349_04-03-2025_10_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002363, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21003272, 'dashboard_result_id': 9220076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21003724, 'dashboard_result_id': 9220077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21004334, 'dashboard_result_id': 9220078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21004910, 'dashboard_result_id': 9220079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004910_04-03-2025_11_18_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21004938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004949, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21005496, 'dashboard_result_id': 9220080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21005496_04-03-2025_11_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21005500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21005501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21005502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21005503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21005504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21005505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21005506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21005507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21005508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21005509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21005510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21005511, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21006128, 'dashboard_result_id': 9220081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006128_04-03-2025_11_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006167, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21006668, 'dashboard_result_id': 9220082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006668_04-03-2025_12_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006708, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21008527, 'dashboard_result_id': 9220083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21008886, 'dashboard_result_id': 9220084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21009461, 'dashboard_result_id': 9220085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009461_04-03-2025_14_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009475, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21009958, 'dashboard_result_id': 9220086, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009958_04-03-2025_14_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009972, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21010580, 'dashboard_result_id': 9220087, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21010580_04-03-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21010625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21010626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21010627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21010628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21010629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21010630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21010631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21010632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21010633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21010634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21010635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21010636, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21011238, 'dashboard_result_id': 9220088, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011238_04-03-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21011245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21011252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011256, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21011804, 'dashboard_result_id': 9220089, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011804_04-03-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21011832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21011834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011843, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21012462, 'dashboard_result_id': 9220090, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012462_04-03-2025_15_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21012512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21012513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21012514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21012515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21012516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21012517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21012518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21012519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21012520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21012521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21012522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21012523, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21012944, 'dashboard_result_id': 9220091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012944_04-03-2025_15_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013012, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21013935, 'dashboard_result_id': 9220092, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21013935_04-03-2025_15_49_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013966, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21014715, 'dashboard_result_id': 9220093, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21014715_04-03-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21014720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21014721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21014722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21014723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21014724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21014725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21014726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21014727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21014728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21014729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21014730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21014731, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21015614, 'dashboard_result_id': 9220094, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015614_04-03-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21015631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015642, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21015718, 'dashboard_result_id': 9220095, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015718_04-03-2025_16_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21015756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015762, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21016682, 'dashboard_result_id': 9220096, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21016682_04-03-2025_16_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21016733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21016734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21016735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21016736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21016737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21016738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21016739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21016740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21016741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21016742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21016743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21016744, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21017247, 'dashboard_result_id': 9220097, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21017803, 'dashboard_result_id': 9220098, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21018850, 'dashboard_result_id': 9220099, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_18_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21019955, 'dashboard_result_id': 9220100, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21019955_04-03-2025_18_20_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21019993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21019994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21019995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21019996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21019997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21019998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21019999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020004, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21020578, 'dashboard_result_id': 9220101, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020578_04-03-2025_18_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21020582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020591, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21020862, 'dashboard_result_id': 9220102, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020862_04-03-2025_18_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21020863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020874, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21020993, 'dashboard_result_id': 9220103, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020993_04-03-2025_19_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021008, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21021913, 'dashboard_result_id': 9220104, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21022471, 'dashboard_result_id': 9220105, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21022697, 'dashboard_result_id': 9220106, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21023275, 'dashboard_result_id': 9220107, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21023862, 'dashboard_result_id': 9220108, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023862_04-03-2025_20_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023875, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21024430, 'dashboard_result_id': 9220109, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21024430_04-03-2025_21_06_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21024432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21024433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21024434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21024435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21024436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21024437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21024438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21024439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21024440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21024441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21024442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21024443, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21025554, 'dashboard_result_id': 9220110, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025554_04-03-2025_21_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025584, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21025921, 'dashboard_result_id': 9220111, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025921_04-03-2025_21_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025975, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21026737, 'dashboard_result_id': 9220112, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21026737_04-03-2025_21_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21026740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21026741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21026742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21026743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21026744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21026745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21026746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21026747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21026748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21026749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21026750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21026751, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21027310, 'dashboard_result_id': 9220113, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21027310_04-03-2025_22_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21027336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21027337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21027338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21027339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21027340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21027341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21027342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21027343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21027344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21027345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21027346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21027347, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21028005, 'dashboard_result_id': 9220114, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028005_04-03-2025_22_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21028065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028069, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21028610, 'dashboard_result_id': 9220115, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21029310, 'dashboard_result_id': 9220116, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21030129, 'dashboard_result_id': 9220117, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21030842, 'dashboard_result_id': 9220118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_05-03-2025_05_34_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21031610, 'dashboard_result_id': 9220119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21031610_05-03-2025_05_35_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21031665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21031666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21031667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21031668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21031669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21031670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21031671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21031672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21031673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21031674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21031675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21031676, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21032402, 'dashboard_result_id': 9220120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032402_05-03-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21032406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21032407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21032408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21032409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21032410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21032411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21032412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21032413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21032414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21032415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21032416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21032417, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1647777, 'mtr_portfolio_id': 21032977, 'dashboard_result_id': 9220121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_05_36_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21033010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21033011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21033012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21033013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21033014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21033015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21033016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21033017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21033018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21033019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21033020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21033021, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21000153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631554, 'mtr_portfolio_id': 21000153, 'created_at': datetime.datetime(2025, 3, 4, 8, 18, 57), 'result': '0.07788217722728674', 'result_long': None, 'result_double': None}] Qualite : 0.07788217722728674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, 'pht': 3726}}" where mtr_portfolio_id = 21000153 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21000153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220070, 0.07788217722728674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21000334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631575, 'mtr_portfolio_id': 21000334, 'created_at': datetime.datetime(2025, 3, 4, 8, 33), 'result': '0.07254638132015227', 'result_long': None, 'result_double': None}] Qualite : 0.07254638132015227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, 'pht': 3726}}" where mtr_portfolio_id = 21000334 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21000334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220071, 0.07254638132015227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21000676 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631616, 'mtr_portfolio_id': 21000676, 'created_at': datetime.datetime(2025, 3, 4, 8, 49, 1), 'result': '0.07992168109426226', 'result_long': None, 'result_double': None}] Qualite : 0.07992168109426226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000676 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}" where mtr_portfolio_id = 21000676 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21000676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220072, 0.07992168109426226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21001000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631646, 'mtr_portfolio_id': 21001000, 'created_at': datetime.datetime(2025, 3, 4, 9, 3), 'result': '0.08644548521645644', 'result_long': None, 'result_double': None}] Qualite : 0.08644548521645644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21001000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21001000_04-03-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21001000 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21001000_04-03-2025_09_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21001003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21001004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21001005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21001006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21001007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21001008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21001009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21001010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21001011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21001012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21001013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21001014, 'pht': 3726}}" where mtr_portfolio_id = 21001000 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21001000 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220073, 0.08644548521645644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21001000_04-03-2025_09_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21001003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21001004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21001005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21001006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21001007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21001008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21001009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21001010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21001011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21001012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21001013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21001014, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21002132 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631851, 'mtr_portfolio_id': 21002132, 'created_at': datetime.datetime(2025, 3, 4, 9, 48, 59), 'result': '0.0798565933724748', 'result_long': None, 'result_double': None}] Qualite : 0.0798565933724748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21002132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002132_04-03-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21002132 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002132_04-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002185, 'pht': 3726}}" where mtr_portfolio_id = 21002132 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21002132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220074, 0.0798565933724748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002132_04-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21002349 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631875, 'mtr_portfolio_id': 21002349, 'created_at': datetime.datetime(2025, 3, 4, 10, 20, 59), 'result': '0.06879392512105913', 'result_long': None, 'result_double': None}] Qualite : 0.06879392512105913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21002349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002349_04-03-2025_10_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21002349 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002349_04-03-2025_10_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002363, 'pht': 3726}}" where mtr_portfolio_id = 21002349 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21002349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220075, 0.06879392512105913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21002349_04-03-2025_10_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21002352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21002353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21002354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21002355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21002356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21002357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21002358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21002359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21002360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21002361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21002362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21002363, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21003272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632000, 'mtr_portfolio_id': 21003272, 'created_at': datetime.datetime(2025, 3, 4, 10, 32, 59), 'result': '0.08613859030582237', 'result_long': None, 'result_double': None}] Qualite : 0.08613859030582237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21003272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21003272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, 'pht': 3726}}" where mtr_portfolio_id = 21003272 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21003272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220076, 0.08613859030582237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003272_04-03-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21003276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003287, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21003724 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632045, 'mtr_portfolio_id': 21003724, 'created_at': datetime.datetime(2025, 3, 4, 10, 49, 1), 'result': '0.07228548143214195', 'result_long': None, 'result_double': None}] Qualite : 0.07228548143214195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21003724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21003724 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, 'pht': 3726}}" where mtr_portfolio_id = 21003724 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21003724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220077, 0.07228548143214195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21003724_04-03-2025_10_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21003727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21003728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21003729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21003730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21003731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21003732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21003733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21003734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21003735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21003736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21003737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21003738, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21004334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632094, 'mtr_portfolio_id': 21004334, 'created_at': datetime.datetime(2025, 3, 4, 11, 2, 57), 'result': '0.09105194335418676', 'result_long': None, 'result_double': None}] Qualite : 0.09105194335418676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21004334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21004334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, 'pht': 3726}}" where mtr_portfolio_id = 21004334 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21004334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220078, 0.09105194335418676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004334_04-03-2025_11_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21004343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004350, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21004910 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632146, 'mtr_portfolio_id': 21004910, 'created_at': datetime.datetime(2025, 3, 4, 11, 18, 30), 'result': '0.0718468366464181', 'result_long': None, 'result_double': None}] Qualite : 0.0718468366464181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21004910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004910_04-03-2025_11_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21004910 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004910_04-03-2025_11_18_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21004938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004949, 'pht': 3726}}" where mtr_portfolio_id = 21004910 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21004910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220079, 0.0718468366464181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21004910_04-03-2025_11_18_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21004938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21004939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21004940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21004941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21004942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21004943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21004944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21004945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21004946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21004947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21004948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21004949, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21005496 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632187, 'mtr_portfolio_id': 21005496, 'created_at': datetime.datetime(2025, 3, 4, 11, 32, 57), 'result': '0.07572389807815973', 'result_long': None, 'result_double': None}] Qualite : 0.07572389807815973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21005496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21005496_04-03-2025_11_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21005496 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21005496_04-03-2025_11_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21005500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21005501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21005502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21005503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21005504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21005505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21005506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21005507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21005508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21005509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21005510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21005511, 'pht': 3726}}" where mtr_portfolio_id = 21005496 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21005496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220080, 0.07572389807815973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21005496_04-03-2025_11_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21005500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21005501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21005502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21005503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21005504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21005505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21005506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21005507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21005508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21005509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21005510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21005511, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21006128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632270, 'mtr_portfolio_id': 21006128, 'created_at': datetime.datetime(2025, 3, 4, 11, 48, 58), 'result': '0.07121988912067935', 'result_long': None, 'result_double': None}] Qualite : 0.07121988912067935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21006128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006128_04-03-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21006128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006128_04-03-2025_11_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006167, 'pht': 3726}}" where mtr_portfolio_id = 21006128 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21006128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220081, 0.07121988912067935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006128_04-03-2025_11_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006167, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21006668 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632320, 'mtr_portfolio_id': 21006668, 'created_at': datetime.datetime(2025, 3, 4, 12, 3, 1), 'result': '0.06962726080030265', 'result_long': None, 'result_double': None}] Qualite : 0.06962726080030265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21006668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006668_04-03-2025_12_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21006668 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006668_04-03-2025_12_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006708, 'pht': 3726}}" where mtr_portfolio_id = 21006668 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21006668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220082, 0.06962726080030265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21006668_04-03-2025_12_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21006697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21006698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21006699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21006700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21006701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21006702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21006703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21006704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21006705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21006706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21006707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21006708, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21008527 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632515, 'mtr_portfolio_id': 21008527, 'created_at': datetime.datetime(2025, 3, 4, 13, 32, 58), 'result': '0.06897028059033312', 'result_long': None, 'result_double': None}] Qualite : 0.06897028059033312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21008527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21008527 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, 'pht': 3726}}" where mtr_portfolio_id = 21008527 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21008527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220083, 0.06897028059033312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21008886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632546, 'mtr_portfolio_id': 21008886, 'created_at': datetime.datetime(2025, 3, 4, 13, 48, 59), 'result': '0.07133681776434345', 'result_long': None, 'result_double': None}] Qualite : 0.07133681776434345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21008886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21008886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, 'pht': 3726}}" where mtr_portfolio_id = 21008886 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21008886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220084, 0.07133681776434345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21009461 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632581, 'mtr_portfolio_id': 21009461, 'created_at': datetime.datetime(2025, 3, 4, 14, 2, 30), 'result': '0.07583821501571096', 'result_long': None, 'result_double': None}] Qualite : 0.07583821501571096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21009461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009461_04-03-2025_14_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21009461 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009461_04-03-2025_14_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009475, 'pht': 3726}}" where mtr_portfolio_id = 21009461 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21009461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220085, 0.07583821501571096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009461_04-03-2025_14_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009475, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21009958 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632635, 'mtr_portfolio_id': 21009958, 'created_at': datetime.datetime(2025, 3, 4, 14, 18, 58), 'result': '0.06447454312118464', 'result_long': None, 'result_double': None}] Qualite : 0.06447454312118464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21009958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009958_04-03-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21009958 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009958_04-03-2025_14_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009972, 'pht': 3726}}" where mtr_portfolio_id = 21009958 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21009958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220086, 0.06447454312118464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21009958_04-03-2025_14_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21009961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21009962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21009963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21009964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21009965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21009966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21009967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21009968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21009969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21009970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21009971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21009972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21010580 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632804, 'mtr_portfolio_id': 21010580, 'created_at': datetime.datetime(2025, 3, 4, 14, 33), 'result': '0.08529106449490537', 'result_long': None, 'result_double': None}] Qualite : 0.08529106449490537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21010580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21010580_04-03-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21010580 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21010580_04-03-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21010625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21010626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21010627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21010628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21010629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21010630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21010631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21010632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21010633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21010634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21010635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21010636, 'pht': 3726}}" where mtr_portfolio_id = 21010580 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21010580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220087, 0.08529106449490537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21010580_04-03-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21010625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21010626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21010627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21010628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21010629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21010630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21010631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21010632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21010633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21010634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21010635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21010636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21011238 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2632977, 'mtr_portfolio_id': 21011238, 'created_at': datetime.datetime(2025, 3, 4, 14, 48, 59), 'result': '0.07326794687181495', 'result_long': None, 'result_double': None}] Qualite : 0.07326794687181495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21011238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011238_04-03-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21011238 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011238_04-03-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21011245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21011252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011256, 'pht': 3726}}" where mtr_portfolio_id = 21011238 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21011238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220088, 0.07326794687181495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011238_04-03-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21011245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21011252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011256, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21011804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633019, 'mtr_portfolio_id': 21011804, 'created_at': datetime.datetime(2025, 3, 4, 15, 2, 58), 'result': '0.06742599333526071', 'result_long': None, 'result_double': None}] Qualite : 0.06742599333526071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21011804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011804_04-03-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21011804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011804_04-03-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21011832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21011834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011843, 'pht': 3726}}" where mtr_portfolio_id = 21011804 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21011804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220089, 0.06742599333526071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21011804_04-03-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21011832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21011833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21011834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21011835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21011836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21011837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21011838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21011839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21011840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21011841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21011842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21011843, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21012462 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633076, 'mtr_portfolio_id': 21012462, 'created_at': datetime.datetime(2025, 3, 4, 15, 18, 57), 'result': '0.07289856084558162', 'result_long': None, 'result_double': None}] Qualite : 0.07289856084558162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21012462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012462_04-03-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21012462 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012462_04-03-2025_15_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21012512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21012513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21012514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21012515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21012516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21012517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21012518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21012519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21012520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21012521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21012522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21012523, 'pht': 3726}}" where mtr_portfolio_id = 21012462 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21012462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220090, 0.07289856084558162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012462_04-03-2025_15_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21012512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21012513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21012514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21012515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21012516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21012517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21012518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21012519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21012520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21012521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21012522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21012523, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21012944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633113, 'mtr_portfolio_id': 21012944, 'created_at': datetime.datetime(2025, 3, 4, 15, 33), 'result': '0.07979206341990663', 'result_long': None, 'result_double': None}] Qualite : 0.07979206341990663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21012944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012944_04-03-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21012944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012944_04-03-2025_15_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013012, 'pht': 3726}}" where mtr_portfolio_id = 21012944 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21012944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220091, 0.07979206341990663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21012944_04-03-2025_15_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013012, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21013935 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633199, 'mtr_portfolio_id': 21013935, 'created_at': datetime.datetime(2025, 3, 4, 15, 49, 32), 'result': '0.08517347299711041', 'result_long': None, 'result_double': None}] Qualite : 0.08517347299711041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21013935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21013935_04-03-2025_15_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21013935 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21013935_04-03-2025_15_49_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013966, 'pht': 3726}}" where mtr_portfolio_id = 21013935 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21013935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220092, 0.08517347299711041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21013935_04-03-2025_15_49_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21013955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21013956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21013957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21013958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21013959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21013960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21013961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21013962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21013963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21013964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21013965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21013966, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21014715 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633246, 'mtr_portfolio_id': 21014715, 'created_at': datetime.datetime(2025, 3, 4, 16, 2, 57), 'result': '0.09462321317476562', 'result_long': None, 'result_double': None}] Qualite : 0.09462321317476562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21014715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21014715_04-03-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21014715 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21014715_04-03-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21014720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21014721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21014722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21014723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21014724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21014725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21014726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21014727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21014728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21014729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21014730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21014731, 'pht': 3726}}" where mtr_portfolio_id = 21014715 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21014715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220093, 0.09462321317476562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21014715_04-03-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21014720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21014721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21014722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21014723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21014724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21014725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21014726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21014727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21014728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21014729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21014730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21014731, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21015614 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633307, 'mtr_portfolio_id': 21015614, 'created_at': datetime.datetime(2025, 3, 4, 16, 18, 59), 'result': '0.07106411375127568', 'result_long': None, 'result_double': None}] Qualite : 0.07106411375127568 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21015614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015614_04-03-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21015614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015614_04-03-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21015631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015642, 'pht': 3726}}" where mtr_portfolio_id = 21015614 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21015614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220094, 0.07106411375127568, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015614_04-03-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21015631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015642, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21015718 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633324, 'mtr_portfolio_id': 21015718, 'created_at': datetime.datetime(2025, 3, 4, 16, 33, 2), 'result': '0.07334753136291083', 'result_long': None, 'result_double': None}] Qualite : 0.07334753136291083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21015718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015718_04-03-2025_16_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21015718 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015718_04-03-2025_16_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21015756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015762, 'pht': 3726}}" where mtr_portfolio_id = 21015718 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21015718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220095, 0.07334753136291083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21015718_04-03-2025_16_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21015751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21015752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21015753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21015754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21015755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21015756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21015757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21015758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21015759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21015760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21015761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21015762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21016682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633393, 'mtr_portfolio_id': 21016682, 'created_at': datetime.datetime(2025, 3, 4, 16, 49, 1), 'result': '0.08301411044912688', 'result_long': None, 'result_double': None}] Qualite : 0.08301411044912688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21016682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21016682_04-03-2025_16_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21016682 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21016682_04-03-2025_16_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21016733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21016734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21016735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21016736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21016737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21016738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21016739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21016740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21016741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21016742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21016743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21016744, 'pht': 3726}}" where mtr_portfolio_id = 21016682 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21016682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220096, 0.08301411044912688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21016682_04-03-2025_16_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21016733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21016734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21016735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21016736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21016737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21016738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21016739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21016740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21016741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21016742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21016743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21016744, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21017247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633425, 'mtr_portfolio_id': 21017247, 'created_at': datetime.datetime(2025, 3, 4, 17, 2, 29), 'result': '0.07085822109150657', 'result_long': None, 'result_double': None}] Qualite : 0.07085822109150657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21017247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21017247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, 'pht': 3726}}" where mtr_portfolio_id = 21017247 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21017247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220097, 0.07085822109150657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21017803 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633478, 'mtr_portfolio_id': 21017803, 'created_at': datetime.datetime(2025, 3, 4, 17, 19), 'result': '0.08756407342846828', 'result_long': None, 'result_double': None}] Qualite : 0.08756407342846828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21017803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21017803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, 'pht': 3726}}" where mtr_portfolio_id = 21017803 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21017803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220098, 0.08756407342846828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21018850 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633533, 'mtr_portfolio_id': 21018850, 'created_at': datetime.datetime(2025, 3, 4, 18, 4, 29), 'result': '0.07744284246366699', 'result_long': None, 'result_double': None}] Qualite : 0.07744284246366699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21018850 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_18_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21018850 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_18_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, 'pht': 3726}}" where mtr_portfolio_id = 21018850 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21018850 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220099, 0.07744284246366699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_18_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21019955 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633632, 'mtr_portfolio_id': 21019955, 'created_at': datetime.datetime(2025, 3, 4, 18, 20, 30), 'result': '0.08982930704973405', 'result_long': None, 'result_double': None}] Qualite : 0.08982930704973405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21019955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21019955_04-03-2025_18_20_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21019955 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21019955_04-03-2025_18_20_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21019993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21019994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21019995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21019996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21019997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21019998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21019999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020004, 'pht': 3726}}" where mtr_portfolio_id = 21019955 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21019955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220100, 0.08982930704973405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21019955_04-03-2025_18_20_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21019993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21019994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21019995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21019996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21019997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21019998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21019999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21020578 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633666, 'mtr_portfolio_id': 21020578, 'created_at': datetime.datetime(2025, 3, 4, 18, 34, 58), 'result': '0.19100831011344796', 'result_long': None, 'result_double': None}] Qualite : 0.19100831011344796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21020578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020578_04-03-2025_18_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21020578 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020578_04-03-2025_18_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21020582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020591, 'pht': 3726}}" where mtr_portfolio_id = 21020578 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21020578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220101, 0.19100831011344796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020578_04-03-2025_18_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21020582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020591, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21020862 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633698, 'mtr_portfolio_id': 21020862, 'created_at': datetime.datetime(2025, 3, 4, 18, 49, 1), 'result': '0.08123224548451535', 'result_long': None, 'result_double': None}] Qualite : 0.08123224548451535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21020862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020862_04-03-2025_18_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21020862 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020862_04-03-2025_18_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21020863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020874, 'pht': 3726}}" where mtr_portfolio_id = 21020862 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21020862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220102, 0.08123224548451535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020862_04-03-2025_18_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21020863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21020864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21020865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21020868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21020869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21020870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21020871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21020872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21020873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020874, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21020993 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633719, 'mtr_portfolio_id': 21020993, 'created_at': datetime.datetime(2025, 3, 4, 19, 3), 'result': '0.07668451974008259', 'result_long': None, 'result_double': None}] Qualite : 0.07668451974008259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21020993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020993_04-03-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21020993 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020993_04-03-2025_19_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021008, 'pht': 3726}}" where mtr_portfolio_id = 21020993 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21020993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220103, 0.07668451974008259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21020993_04-03-2025_19_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21020997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21020998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21020999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21021913 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633789, 'mtr_portfolio_id': 21021913, 'created_at': datetime.datetime(2025, 3, 4, 19, 32, 31), 'result': '0.0904682664363301', 'result_long': None, 'result_double': None}] Qualite : 0.0904682664363301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21021913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21021913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, 'pht': 3726}}" where mtr_portfolio_id = 21021913 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21021913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220104, 0.0904682664363301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21022471 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633826, 'mtr_portfolio_id': 21022471, 'created_at': datetime.datetime(2025, 3, 4, 19, 51), 'result': '0.06306359321489688', 'result_long': None, 'result_double': None}] Qualite : 0.06306359321489688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21022471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21022471 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, 'pht': 3726}}" where mtr_portfolio_id = 21022471 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21022471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220105, 0.06306359321489688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21022697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633844, 'mtr_portfolio_id': 21022697, 'created_at': datetime.datetime(2025, 3, 4, 20, 3), 'result': '0.06812974621925094', 'result_long': None, 'result_double': None}] Qualite : 0.06812974621925094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21022697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21022697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, 'pht': 3726}}" where mtr_portfolio_id = 21022697 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21022697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220106, 0.06812974621925094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21023275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633894, 'mtr_portfolio_id': 21023275, 'created_at': datetime.datetime(2025, 3, 4, 20, 18, 57), 'result': '0.06399753689531941', 'result_long': None, 'result_double': None}] Qualite : 0.06399753689531941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21023275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21023275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, 'pht': 3726}}" where mtr_portfolio_id = 21023275 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21023275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220107, 0.06399753689531941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21023862 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633923, 'mtr_portfolio_id': 21023862, 'created_at': datetime.datetime(2025, 3, 4, 20, 33, 2), 'result': '0.07555798939486566', 'result_long': None, 'result_double': None}] Qualite : 0.07555798939486566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21023862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023862_04-03-2025_20_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21023862 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023862_04-03-2025_20_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023875, 'pht': 3726}}" where mtr_portfolio_id = 21023862 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21023862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220108, 0.07555798939486566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023862_04-03-2025_20_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023875, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21024430 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2633970, 'mtr_portfolio_id': 21024430, 'created_at': datetime.datetime(2025, 3, 4, 21, 6, 58), 'result': '0.0799607698680539', 'result_long': None, 'result_double': None}] Qualite : 0.0799607698680539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21024430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21024430_04-03-2025_21_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21024430 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21024430_04-03-2025_21_06_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21024432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21024433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21024434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21024435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21024436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21024437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21024438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21024439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21024440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21024441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21024442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21024443, 'pht': 3726}}" where mtr_portfolio_id = 21024430 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21024430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220109, 0.0799607698680539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21024430_04-03-2025_21_06_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21024432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21024433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21024434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21024435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21024436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21024437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21024438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21024439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21024440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21024441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21024442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21024443, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21025554 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634054, 'mtr_portfolio_id': 21025554, 'created_at': datetime.datetime(2025, 3, 4, 21, 21), 'result': '0.054990875443669415', 'result_long': None, 'result_double': None}] Qualite : 0.054990875443669415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21025554 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025554_04-03-2025_21_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21025554 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025554_04-03-2025_21_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025584, 'pht': 3726}}" where mtr_portfolio_id = 21025554 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21025554 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220110, 0.054990875443669415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025554_04-03-2025_21_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025584, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21025921 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634083, 'mtr_portfolio_id': 21025921, 'created_at': datetime.datetime(2025, 3, 4, 21, 32, 58), 'result': '0.0683805720662356', 'result_long': None, 'result_double': None}] Qualite : 0.0683805720662356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21025921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025921_04-03-2025_21_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21025921 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025921_04-03-2025_21_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025975, 'pht': 3726}}" where mtr_portfolio_id = 21025921 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21025921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220111, 0.0683805720662356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21025921_04-03-2025_21_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21025964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21025965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21025966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21025967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21025968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21025969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21025970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21025971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21025972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21025973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21025974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21025975, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21026737 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634130, 'mtr_portfolio_id': 21026737, 'created_at': datetime.datetime(2025, 3, 4, 21, 48, 58), 'result': '0.07032076761552548', 'result_long': None, 'result_double': None}] Qualite : 0.07032076761552548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21026737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21026737_04-03-2025_21_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21026737 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21026737_04-03-2025_21_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21026740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21026741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21026742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21026743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21026744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21026745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21026746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21026747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21026748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21026749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21026750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21026751, 'pht': 3726}}" where mtr_portfolio_id = 21026737 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21026737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220112, 0.07032076761552548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21026737_04-03-2025_21_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21026740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21026741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21026742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21026743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21026744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21026745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21026746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21026747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21026748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21026749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21026750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21026751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21027310 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634162, 'mtr_portfolio_id': 21027310, 'created_at': datetime.datetime(2025, 3, 4, 22, 3), 'result': '0.09188342035404896', 'result_long': None, 'result_double': None}] Qualite : 0.09188342035404896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21027310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21027310_04-03-2025_22_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21027310 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21027310_04-03-2025_22_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21027336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21027337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21027338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21027339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21027340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21027341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21027342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21027343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21027344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21027345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21027346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21027347, 'pht': 3726}}" where mtr_portfolio_id = 21027310 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21027310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220113, 0.09188342035404896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21027310_04-03-2025_22_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21027336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21027337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21027338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21027339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21027340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21027341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21027342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21027343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21027344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21027345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21027346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21027347, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21028005 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634264, 'mtr_portfolio_id': 21028005, 'created_at': datetime.datetime(2025, 3, 4, 22, 18, 59), 'result': '0.08587183047819236', 'result_long': None, 'result_double': None}] Qualite : 0.08587183047819236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21028005 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028005_04-03-2025_22_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21028005 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028005_04-03-2025_22_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21028065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028069, 'pht': 3726}}" where mtr_portfolio_id = 21028005 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21028005 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220114, 0.08587183047819236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028005_04-03-2025_22_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21028065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028069, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21028610 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634304, 'mtr_portfolio_id': 21028610, 'created_at': datetime.datetime(2025, 3, 4, 22, 32, 58), 'result': '0.0809302880070119', 'result_long': None, 'result_double': None}] Qualite : 0.0809302880070119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21028610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21028610 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, 'pht': 3726}}" where mtr_portfolio_id = 21028610 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21028610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220115, 0.0809302880070119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21029310 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634357, 'mtr_portfolio_id': 21029310, 'created_at': datetime.datetime(2025, 3, 4, 22, 48, 32), 'result': '0.07396012554859886', 'result_long': None, 'result_double': None}] Qualite : 0.07396012554859886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21029310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21029310 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, 'pht': 3726}}" where mtr_portfolio_id = 21029310 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21029310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220116, 0.07396012554859886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21030129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2634405, 'mtr_portfolio_id': 21030129, 'created_at': datetime.datetime(2025, 3, 4, 23, 3, 1), 'result': '0.07111737266489805', 'result_long': None, 'result_double': None}] Qualite : 0.07111737266489805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21030129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21030129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, 'pht': 3726}}" where mtr_portfolio_id = 21030129 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21030129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220117, 0.07111737266489805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21030842 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2635646, 'mtr_portfolio_id': 21030842, 'created_at': datetime.datetime(2025, 3, 5, 5, 34, 35), 'result': '0.06603996251853027', 'result_long': None, 'result_double': None}] Qualite : 0.06603996251853027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21030842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_05-03-2025_05_34_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21030842 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_05-03-2025_05_34_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, 'pht': 3726}}" where mtr_portfolio_id = 21030842 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21030842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220118, 0.06603996251853027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_05-03-2025_05_34_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21031610 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2635647, 'mtr_portfolio_id': 21031610, 'created_at': datetime.datetime(2025, 3, 5, 5, 35, 32), 'result': '0.08922635321865628', 'result_long': None, 'result_double': None}] Qualite : 0.08922635321865628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21031610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21031610_05-03-2025_05_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21031610 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21031610_05-03-2025_05_35_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21031665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21031666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21031667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21031668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21031669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21031670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21031671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21031672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21031673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21031674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21031675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21031676, 'pht': 3726}}" where mtr_portfolio_id = 21031610 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21031610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220119, 0.08922635321865628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21031610_05-03-2025_05_35_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21031665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21031666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21031667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21031668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21031669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21031670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21031671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21031672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21031673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21031674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21031675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21031676, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21032402 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2635648, 'mtr_portfolio_id': 21032402, 'created_at': datetime.datetime(2025, 3, 5, 5, 36), 'result': '0.08473870863504893', 'result_long': None, 'result_double': None}] Qualite : 0.08473870863504893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21032402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032402_05-03-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21032402 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032402_05-03-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21032406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21032407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21032408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21032409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21032410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21032411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21032412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21032413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21032414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21032415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21032416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21032417, 'pht': 3726}}" where mtr_portfolio_id = 21032402 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220120, 0.08473870863504893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032402_05-03-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21032406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21032407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21032408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21032409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21032410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21032411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21032412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21032413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21032414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21032415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21032416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21032417, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21032977 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2635649, 'mtr_portfolio_id': 21032977, 'created_at': datetime.datetime(2025, 3, 5, 5, 59, 58), 'result': '0.07197122341602144', 'result_long': None, 'result_double': None}] Qualite : 0.07197122341602144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21032977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21032977 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21033010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21033011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21033012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21033013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21033014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21033015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21033016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21033017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21033018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21033019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21033020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21033021, 'pht': 3726}}" where mtr_portfolio_id = 21032977 and dashboard_run_id = 1647777 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21032977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9220121, 0.07197122341602144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21032977_05-03-2025_06_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21033010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21033011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21033012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21033013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21033014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21033015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21033016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21033017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21033018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21033019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21033020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21033021, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000153,21000334,21000676,21001000,21002132,21002349,21003272,21003724,21004334,21004910,21005496,21006128,21006668,21008527,21008886,21009461,21009958,21010580,21011238,21011804,21012462,21012944,21013935,21014715,21015614,21015718,21016682,21017247,21017803,21018850,21019955,21020578,21020862,21020993,21021913,21022471,21022697,21023275,21023862,21024430,21025554,21025921,21026737,21027310,21028005,21028610,21029310,21030129,21030842,21031610,21032402,21032977) result : ((1340757049,), (1340757056,), (1340757059,), (1340757200,), (1340757207,), (1340757240,), (1340757255,), (1340757258,), (1340757319,), (1340757641,), (1340757713,), (1340757862,), (1340757992,), (1340758105,), (1340758109,), (1340758188,), (1340758204,), (1340758211,), (1340758217,), (1340758221,), (1340758253,), (1340758237,), (1340758242,), (1340758247,), (1340758282,), (1340758302,), (1340758309,), (1340758357,), (1340758361,), (1340758365,), (1340758400,), (1340758460,), (1340758831,), (1340758849,), (1340760155,), (1340760586,), (1340760592,), (1340760622,), (1340760628,), (1340760633,), (1340760636,), (1340760664,), (1340760670,), (1340760673,), (1340760677,), (1340760682,), (1340760840,), (1340760934,), (1340761022,), (1340761341,), (1340761348,), (1340761371,), (1340761435,), (1340761439,), (1340761442,), (1340761682,), (1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,), (1340765106,), (1340765082,), (1340765086,), (1340765089,), (1340765094,), (1340765101,), (1340765122,), (1340765127,), (1340765132,), (1340765576,), (1340765581,), (1340765585,), (1340765690,), (1340765695,), (1340765767,), (1340765773,), (1340765778,), (1340765973,), (1340765980,), (1340765984,), (1340766005,), (1340766009,), (1340766011,), (1340766048,), (1340766053,), (1340766056,), (1340766061,), (1340766064,), (1340766109,), (1340766114,), (1340766117,), (1340766121,), (1340766173,), (1340766176,), (1340766179,), (1340766181,), (1340766186,), (1340766189,), (1340766524,), (1340766529,), (1340766531,), (1340766535,), (1340766564,), (1340766569,), (1340766571,), (1340766577,), (1340766587,), (1340766591,), (1340766624,), (1340766628,), (1340766631,), (1340766635,), (1340766640,), (1340766663,), (1340766667,), (1340766669,), (1340766674,), (1340766743,), (1340766748,), (1340766750,), (1340766753,), (1340766758,), (1340766762,), (1340766978,), (1340766985,), (1340766993,), (1340767030,), (1340767146,), (1340767493,), (1340771330,), (1340771333,), (1340771369,), (1340771372,), (1340771377,), (1340771383,), (1340771389,), (1340771394,), (1340771427,), (1340771431,), (1340771434,), (1340771526,), (1340771536,), (1340771542,), (1340771547,), (1340771553,), (1340771558,), (1340771622,), (1340771657,), (1340771728,), (1340771804,), (1340771807,), (1340771819,), (1340771825,), (1340771863,), (1340771866,), (1340771870,), (1340771880,), (1340771886,), (1340771916,), (1340771920,), (1340771926,), (1340771933,), (1340771937,), (1340771973,), (1340771977,), (1340771980,), (1340772021,), (1340772025,), (1340772028,), (1340772033,), (1340772037,), (1340772041,), (1340772100,), (1340772076,), (1340772085,), (1340772089,), (1340772095,), (1340772368,), (1340772372,), (1340772374,), (1340772403,), (1340772407,), (1340772488,), (1340772493,), (1340772496,), (1340772502,), (1340772507,), (1340772534,), (1340772544,), (1340772552,), (1340772558,), (1340772580,), (1340772628,), (1340773526,), (1340773543,), (1340773824,), (1340773969,), (1340773973,), (1340773979,), (1340774004,), (1340777166,), (1340777214,), (1340777217,), (1340777431,), (1340777435,), (1340777438,), (1340777444,), (1340777451,), (1340777701,), (1340777717,), (1340777740,), (1340777768,), (1340777785,), (1340777794,), (1340777822,), (1340777826,), (1340777829,), (1340777836,), (1340777854,), (1340777895,), (1340777901,), (1340777905,), (1340777911,), (1340777946,), (1340777951,), (1340777954,), (1340777960,), (1340777966,), (1340778021,), (1340778027,), (1340778030,), (1340778037,), (1340778042,), (1340778046,), (1340778067,), (1340778073,), (1340778078,), (1340778089,), (1340778095,), (1340778133,), (1340778138,), (1340778141,), (1340778177,), (1340778183,), (1340778191,), (1340778203,), (1340778211,), (1340778249,), (1340778257,), (1340778263,), (1340778271,), (1340778280,), (1340778447,), (1340778406,), (1340778412,), (1340778418,), (1340778432,), (1340778438,), (1340778477,), (1340778489,), (1340778497,), (1340778504,), (1340778549,), (1340778553,), (1340778557,), (1340778563,), (1340778571,), (1340778583,), (1340778642,), (1340778646,), (1340778650,), (1340778655,), (1340778660,), (1340778665,), (1340778697,), (1340778705,), (1340778709,), (1340778785,), (1340778790,), (1340778794,), (1340778844,), (1340778848,), (1340778854,), (1340778861,), (1340778866,), (1340778890,), (1340778894,), (1340778898,), (1340778901,), (1340778908,), (1340778997,), (1340779001,), (1340779005,), (1340779011,), (1340779056,), (1340779060,), (1340779063,), (1340779069,), (1340779076,), (1340779102,), (1340779106,), (1340779108,), (1340779171,), (1340779182,), (1340779189,), (1340779194,), (1340779200,), (1340779203,), (1340779245,), (1340779247,), (1340779299,), (1340779308,), (1340779313,), (1340779317,), (1340779321,), (1340779360,), (1340779393,), (1340779399,), (1340779420,), (1340779427,), (1340779432,), (1340779558,), (1340779536,), (1340779548,), (1340779551,), (1340779733,), (1340779751,), (1340779756,), (1340779961,), (1340779970,), (1340779975,), (1340780072,), (1340780079,), (1340780094,), (1340780098,), (1340780111,), (1340780556,), (1340780678,), (1340780682,), (1340780701,), (1340780708,), (1340780798,), (1340780803,), (1340780813,), (1340781061,), (1340781065,), (1340781071,), (1340781108,), (1340781114,), (1340781118,), (1340781123,), (1340781173,), (1340781178,), (1340781182,), (1340781245,), (1340781250,), (1340781469,), (1340781478,), (1340781589,), (1340781606,), (1340781609,), (1340781654,), (1340781659,), (1340781663,), (1340781669,), (1340781677,), (1340781686,), (1340781943,), (1340781950,), (1340781959,), (1340781966,), (1340781973,), (1340781981,), (1340782035,), (1340782013,), (1340782019,), (1340782023,), (1340782097,), (1340782104,), (1340782125,), (1340782149,), (1340782176,), (1340782561,), (1340782566,), (1340782569,), (1340782575,), (1340782581,), (1340782615,), (1340782620,), (1340782625,), (1340782679,), (1340782685,), (1340782690,), (1340782732,), (1340782736,), (1340782741,), (1340782752,), (1340782790,), (1340782795,), (1340782799,), (1340782804,), (1340782809,), (1340782815,), (1340782894,), (1340782900,), (1340782903,), (1340782960,), (1340782966,), (1340782970,), (1340782974,), (1340782976,), (1340782979,), (1340783031,), (1340783036,), (1340783040,), (1340783045,), (1340783050,), (1340783076,), (1340783083,), (1340783089,), (1340783137,), (1340783146,), (1340783151,), (1340783157,), (1340783163,), (1340783168,), (1340783185,), (1340783190,), (1340783193,), (1340783200,), (1340783206,), (1340783211,), (1340783260,), (1340783265,), (1340783273,), (1340783307,), (1340783687,), (1340783708,), (1340783723,), (1340783728,), (1340783782,), (1340783768,), (1340783775,), (1340784028,), (1340784032,), (1340784039,), (1340784044,), (1340784048,), (1340784071,), (1340784077,), (1340784091,), (1340784098,), (1340784154,), (1340784158,), (1340784162,), (1340784167,), (1340784172,), (1340784175,), (1340784196,), (1340784200,), (1340784203,), (1340784208,), (1340784213,), (1340784217,), (1340784241,), (1340784251,), (1340784259,), (1340784263,), (1340784274,), (1340784355,), (1340784359,), (1340784369,), (1340784377,), (1340784379,), (1340784383,), (1340784413,), (1340784419,), (1340784425,), (1340784428,), (1340784433,), (1340784493,), (1340784501,), (1340784515,), (1340784537,), (1340784550,), (1340784622,), (1340784627,), (1340784680,), (1340784701,), (1340784712,), (1340784717,), (1340784745,), (1340784749,), (1340784752,), (1340784756,), (1340784760,), (1340785079,), (1340785117,), (1340785124,), (1340785149,), (1340785152,), (1340785318,), (1340785320,), (1340785323,), (1340785328,), (1340785334,), (1340785417,), (1340785387,), (1340785397,), (1340785400,), (1340785408,), (1340785413,), (1340785451,), (1340785459,), (1340785551,), (1340785564,), (1340785570,), (1340785576,), (1340785581,), (1340785915,), (1340786370,), (1340786374,), (1340786377,), (1340786381,), (1340786410,), (1340786414,), (1340786416,), (1340786469,), (1340787282,), (1340787287,), (1340787290,), (1340787295,), (1340787322,), (1340787328,), (1340787331,), (1340787336,), (1340787342,), (1340787346,), (1340787384,), (1340787365,), (1340787369,), (1340787372,), (1340787424,), (1340787428,), (1340787431,), (1340787435,), (1340787486,), (1340787493,), (1340787505,), (1340787514,), (1340787518,), (1340787527,), (1340787563,), (1340787579,), (1340787588,), (1340787593,), (1340787595,), (1340787762,), (1340787783,), (1340787792,), (1340787805,), (1340787816,), (1340787843,), (1340787932,), (1340787960,), (1340787964,), (1340787972,), (1340788053,), (1340788059,), (1340788063,), (1340788068,), (1340788075,), (1340788080,), (1340788270,), (1340788288,), (1340788302,), (1340788339,), (1340788345,), (1340788351,), (1340788356,), (1340788362,), (1340788393,), (1340788398,), (1340788412,), (1340788426,), (1340788458,), (1340788466,), (1340788472,), (1340788477,), (1340788569,), (1340788574,), (1340788594,), (1340788602,), (1340788609,), (1340788612,), (1340788646,), (1340788658,), (1340788662,), (1340788769,), (1340788809,), (1340789169,), (1340789178,), (1340789184,), (1340789192,), (1340789228,), (1340789344,), (1340799005,), (1340799541,), (1340799555,), (1340799567,), (1340799646,), (1340799650,), (1340799653,), (1340799658,), (1340799664,), (1340799697,), (1340799733,), (1340799740,), (1340799778,), (1340799784,), (1340799789,), (1340799833,), (1340799839,), (1340799874,), (1340799880,), (1340799885,), (1340799920,), (1340799926,), (1340799930,), (1340799959,), (1340799965,), (1340799969,), (1340799994,), (1340800000,), (1340800011,), (1340800023,), (1340800030,), (1340800105,), (1340800112,), (1340800116,), (1340800121,), (1340800298,), (1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,), (1340801992,), (1340801996,), (1340801998,), (1340802298,), (1340802302,), (1340802304,), (1340802312,), (1340802324,), (1340802464,), (1340802470,), (1340802473,), (1340802476,), (1340802479,), (1340802497,), (1340802633,), (1340802640,), (1340802643,), (1340802649,), (1340802654,), (1340802689,), (1340802696,), (1340802801,), (1340802809,), (1340802831,), (1340802836,), (1340802843,), (1340802892,), (1340802898,), (1340802903,), (1340802910,), (1340802916,), (1340802971,), (1340802994,), (1340803004,), (1340803011,), (1340803018,), (1340803211,), (1340803215,), (1340803219,), (1340803252,), (1340803257,), (1340803261,), (1340803344,), (1340803349,), (1340803353,), (1340803359,), (1340803386,), (1340803391,), (1340803394,), (1340803403,), (1340803442,), (1340803447,), (1340803450,), (1340803456,), (1340803463,), (1340803711,), (1340804118,), (1340804180,), (1340804184,), (1340804190,), (1340804197,), (1340804225,), (1340804229,), (1340804233,), (1340804237,), (1340804269,), (1340804275,), (1340804277,), (1340804282,), (1340804288,), (1340804292,), (1340804325,), (1340804330,), (1340804333,), (1340804377,), (1340804382,), (1340804419,), (1340804488,), (1340804492,), (1340804496,), (1340804501,), (1340804571,), (1340804582,), (1340804589,), (1340804594,), (1340804650,), (1340804691,), (1340804696,), (1340804761,), (1340804811,), (1340804817,), (1340805180,), (1340805174,), (1340805245,), (1340805252,), (1340805256,), (1340805261,), (1340805266,), (1340805339,), (1340805343,), (1340805351,), (1340805367,), (1340805457,), (1340805464,), (1340805467,), (1340805502,), (1340805510,), (1340805512,), (1340805517,), (1340805522,), (1340805620,), (1340805624,), (1340805647,), (1340805655,), (1340805660,), (1340805682,), (1340806311,), (1340806403,), (1340806431,), (1340806436,), (1340807380,), (1340807384,), (1340807387,), (1340807425,), (1340807429,), (1340807433,), (1340807438,), (1340807444,), (1340807449,), (1340807517,), (1340807520,), (1340807522,), (1340807528,), (1340807534,), (1340807539,), (1340807571,), (1340807595,), (1340807602,), (1340807608,), (1340807661,), (1340807644,), (1340807647,), (1340807650,), (1340807655,), (1340807858,), (1340807877,), (1340807880,), (1340807900,), (1340807910,), (1340808013,), (1340808019,), (1340808032,), (1340808125,), (1340808129,), (1340808155,), (1340808160,), (1340808165,), (1340808245,), (1340808301,), (1340808319,), (1340808327,), (1340808330,), (1340808412,), (1340808416,), (1340808421,), (1340808425,), (1340808478,), (1340808485,), (1340808490,), (1340808495,), (1340808500,), (1340808504,), (1340809115,), (1340809119,), (1340809122,), (1340809128,), (1340809382,), (1340809398,), (1340809477,), (1340809481,), (1340809519,), (1340809523,), (1340809544,), (1340809702,), (1340809748,), (1340809834,), (1340809838,), (1340809850,), (1340809951,), (1340810077,), (1340810094,), (1340810100,), (1340810105,), (1340810110,), (1340810142,), (1340810156,), (1340810235,), (1340810244,), (1340810248,), (1340810254,), (1340810504,), (1340810509,), (1340810512,), (1340810518,), (1340810525,), (1340810529,), (1340810578,), (1340810567,), (1340810571,), (1340810613,), (1340810615,), (1340810618,), (1340810633,), (1340810638,), (1340810645,), (1340810677,), (1340810680,), (1340810681,), (1340810688,), (1340810696,), (1340810703,), (1340810720,), (1340810723,), (1340810726,), (1340810731,), (1340810772,), (1340810774,), (1340810778,), (1340810784,), (1340810812,), (1340810816,), (1340810819,), (1340810826,), (1340810832,), (1340810838,), (1340810862,), (1340810867,), (1340810871,), (1340810879,), (1340810892,), (1340811597,), (1340811601,), (1340811727,), (1340811793,), (1340811796,), (1340811798,), (1340811804,), (1340812031,), (1340812126,), (1340812129,), (1340812143,), (1340812157,), (1340812165,), (1340812172,), (1340812219,), (1340812225,), (1340812237,), (1340812315,), (1340812319,), (1340812323,), (1340812328,), (1340812334,), (1340812561,), (1340812564,), (1340812566,), (1340812574,), (1340812581,), (1340812667,), (1340812674,), (1340812683,), (1340812759,), (1340812747,), (1340812754,), (1340812835,), (1340812841,), (1340812846,), (1340812857,), (1340812867,), (1340812871,), (1340812923,), (1340812941,), (1340812944,), (1340812948,), (1340813336,), (1340813363,), (1340813369,), (1340813389,), (1340813394,), (1340813419,), (1340813422,), (1340813425,), (1340813431,), (1340813437,), (1340813467,), (1340813478,), (1340813480,), (1340813516,), (1340813520,), (1340813537,), (1340813543,), (1340813558,), (1340813581,), (1340813699,), (1340813766,), (1340813793,), (1340813809,), (1340813819,), (1340813906,), (1340813909,), (1340813911,), (1340813918,), (1340813925,), (1340813929,), (1340813960,), (1340813982,), (1340814092,), (1340814097,), (1340814101,), (1340814106,), (1340814109,), (1340814115,), (1340814136,), (1340814140,), (1340814144,), (1340814166,), (1340814176,), (1340814200,), (1340814255,), (1340814260,), (1340814266,), (1340814288,), (1340814324,), (1340814328,), (1340814331,), (1340814334,), (1340814375,), (1340814384,), (1340814473,), (1340814494,), (1340814539,), (1340814636,), (1340814871,), (1340814799,), (1340814814,), (1340814828,), (1340814860,), (1340814866,), (1340814909,), (1340814917,), (1340814923,), (1340814930,), (1340814935,), (1340814984,), (1340814998,), (1340815004,), (1340815012,), (1340815016,), (1340815045,), (1340815050,), (1340815053,), (1340815059,), (1340815068,), (1340815075,), (1340815119,), (1340815125,), (1340815129,), (1340815135,), (1340815190,), (1340815194,), (1340815198,), (1340815561,), (1340815564,), (1340815567,), (1340815596,), (1340815647,), (1340815677,), (1340815708,), (1340815715,), (1340815724,), (1340815732,), (1340815767,), (1340815882,), (1340815908,), (1340815919,), (1340815948,), (1340815951,), (1340815954,), (1340816000,), (1340816004,), (1340816005,), (1340816011,), (1340816020,), (1340816027,), (1340816132,), (1340816136,), (1340816167,), (1340816174,), (1340816201,), (1340816207,), (1340816311,), (1340816317,), (1340816340,), (1340816384,), (1340816392,), (1340816402,), (1340816407,), (1340816420,), (1340816470,), (1340816474,), (1340816478,), (1340816504,), (1340816509,), (1340816513,), (1340816611,), (1340816599,), (1340816606,), (1340816925,), (1340816966,), (1340816970,), (1340816983,), (1340816988,), (1340816993,), (1340817031,), (1340817035,), (1340817043,), (1340817046,), (1340817053,), (1340817067,), (1340817261,), (1340817269,), (1340817272,), (1340817301,), (1340817339,), (1340817445,), (1340817449,), (1340817453,), (1340817472,), (1340817598,), (1340817602,), (1340817618,), (1340817664,), (1340817674,), (1340817679,), (1340817909,), (1340817943,), (1340817963,), (1340817973,), (1340818095,), (1340818122,), (1340818164,), (1340818174,), (1340818186,), (1340818226,), (1340818441,), (1340818457,), (1340818466,), (1340818470,), (1340818524,), (1340818527,), (1340818530,), (1340818536,), (1340818542,), (1340818547,), (1340818586,), (1340818592,), (1340818596,), (1340818602,), (1340818608,), (1340818672,), (1340818677,), (1340818680,), (1340818730,), (1340818741,), (1340818887,), (1340818893,), (1340818917,), (1340818927,), (1340818992,), (1340819005,), (1340819215,), (1340819227,), (1340819238,), (1340819246,), (1340819303,), (1340819318,), (1340819327,), (1340819344,), (1340819364,), (1340819384,), (1340819577,), (1340819513,), (1340819531,), (1340819553,), (1340819568,), (1340819700,), (1340819750,), (1340819770,), (1340819778,), (1340819784,), (1340819792,), (1340819806,), (1340819810,), (1340819814,), (1340819876,), (1340819903,), (1340819914,), (1340819939,), (1340819945,), (1340819987,), (1340819991,), (1340819995,), (1340820001,), (1340820329,), (1340820332,), (1340820335,), (1340820339,), (1340820366,), (1340820391,), (1340820428,), (1340820442,), (1340820445,), (1340820484,), (1340820490,), (1340820495,), (1340820499,), (1340820503,), (1340820557,), (1340821829,), (1340821927,), (1340821934,), (1340821981,), (1340821983,), (1340822157,), (1340822112,), (1340822123,), (1340822149,), (1340822154,), (1340822257,), (1340823318,), (1340823581,), (1340823587,), (1340823592,), (1340823810,), (1340823856,), (1340823864,), (1340823890,), (1340823975,), (1340824341,), (1340824349,), (1340824470,), (1340824492,), (1340824500,), (1340824504,), (1340824509,), (1340824521,), (1340824685,), (1340824601,), (1340824651,), (1340824662,), (1340824672,), (1340824773,), (1340824786,), (1340824804,), (1340824818,), (1340824823,), (1340824827,), (1340824894,), (1340824900,), (1340824904,), (1340824908,), (1340824911,), (1340824942,), (1340824946,), (1340824948,), (1340824953,), (1340825065,), (1340825070,), (1340825103,), (1340825107,), (1340825110,), (1340825113,), (1340825182,), (1340825280,), (1340825286,), (1340825299,), (1340825592,), (1340825598,), (1340825624,), (1340825648,), (1340825652,), (1340826566,), (1340826583,), (1340826598,), (1340826606,), (1340826916,), (1340826921,), (1340826923,), (1340827262,), (1340827266,), (1340827301,), (1340827322,), (1340827330,), (1340827390,), (1340827404,), (1340827410,), (1340827464,), (1340827496,), (1340827568,), (1340827578,), (1340827638,), (1340827644,), (1340827649,), (1340827689,), (1340827692,), (1340827761,), (1340827744,), (1340827748,), (1340827751,), (1340827755,), (1340827759,), (1340827922,), (1340827934,), (1340827941,), (1340827952,), (1340828084,), (1340828165,), (1340828167,), (1340828177,), (1340828273,), (1340828329,), (1340828556,), (1340828569,), (1340828583,), (1340828589,), (1340828595,), (1340829105,), (1340829117,), (1340829150,), (1340829165,), (1340829173,), (1340829283,), (1340829461,), (1340829465,), (1340829470,), (1340829474,), (1340829663,), (1340829672,), (1340829674,), (1340829678,), (1340829808,), (1340829812,), (1340829817,), (1340829822,), (1340830042,), (1340830051,), (1340830065,), (1340830072,), (1340830088,), (1340830094,), (1340830120,), (1340830122,), (1340830128,), (1340830133,), (1340830138,), (1340830143,), (1340830179,), (1340830183,), (1340830187,), (1340830254,), (1340830258,), (1340830264,), (1340830299,), (1340830343,), (1340830387,), (1340830618,), (1340830641,), (1340830685,), (1340830705,), (1340830804,), (1340830810,), (1340830817,), (1340831053,), (1340830954,), (1340830963,), (1340830981,), (1340831009,), (1340831019,), (1340831112,), (1340831122,), (1340831127,), (1340831137,), (1340831211,), (1340831214,), (1340831217,), (1340831222,), (1340831227,), (1340831231,), (1340831267,), (1340831273,), (1340831390,), (1340831394,), (1340831397,), (1340831403,), (1340831409,), (1340831434,), (1340831438,), (1340831441,), (1340831446,), (1340831493,), (1340831498,), (1340831500,), (1340831503,), (1340831506,), (1340831577,), (1340831583,), (1340831586,), (1340831590,), (1340831644,), (1340831731,), (1340831735,), (1340831738,), (1340831741,), (1340831744,), (1340831747,), (1340831769,), (1340831782,), (1340831785,), (1340831789,), (1340832018,), (1340832022,), (1340832031,), (1340832036,), (1340832048,), (1340832139,), (1340832143,), (1340832147,), (1340832153,), (1340832159,), (1340832164,), (1340832212,), (1340832226,), (1340832229,), (1340832233,), (1340832297,), (1340832304,), (1340832314,), (1340832328,), (1340832339,), (1340832343,), (1340832357,), (1340832360,), (1340832384,), (1340832433,), (1340832402,), (1340832415,), (1340832423,), (1340832428,), (1340832645,), (1340832659,), (1340832668,), (1340832674,), (1340832677,), (1340833155,), (1340833178,), (1340833182,), (1340833186,), (1340833251,), (1340833256,), (1340833325,), (1340833333,), (1340833346,), (1340833358,), (1340833417,), (1340833424,), (1340833426,), (1340833432,), (1340833468,), (1340833485,), (1340833496,), (1340833503,), (1340833509,), (1340833515,), (1340833538,), (1340833543,), (1340833547,), (1340833612,), (1340833617,), (1340833620,), (1340833625,), (1340833629,), (1340833631,), (1340833731,), (1340833735,), (1340833737,), (1340833741,), (1340833752,), (1340833757,), (1340833925,), (1340833949,), (1340833983,), (1340833999,), (1340834120,), (1340834162,), (1340834170,), (1340834180,), (1340834198,), (1340834203,), (1340834224,), (1340834229,), (1340834232,), (1340834238,), (1340834244,), (1340834267,), (1340834272,), (1340834275,), (1340834280,), (1340834285,), (1340834298,), (1340834627,), (1340834636,), (1340834638,), (1340834647,), (1340834910,), (1340834932,), (1340835152,), (1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,), (1340836123,), (1340836128,), (1340836136,), (1340836144,), (1340836149,), (1340836153,), (1340840579,), (1340840726,), (1340840733,), (1340840744,), (1340840761,), (1340840767,), (1340840842,), (1340841697,), (1340841703,), (1340841710,), (1340841713,), (1340841736,), (1340841741,), (1340841744,), (1340841748,), (1340841945,), (1340841950,), (1340841952,), (1340841956,), (1340841962,), (1340842064,), (1340842068,), (1340842071,), (1340842075,), (1340842080,), (1340842084,), (1340842111,), (1340842115,), (1340842119,), (1340842137,), (1340842181,), (1340842185,), (1340842187,), (1340842194,), (1340842201,), (1340842222,), (1340842224,), (1340842227,), (1340842233,), (1340842296,), (1340842300,), (1340843594,), (1340844226,), (1340844231,), (1340844242,), (1340844329,), (1340844346,), (1340844399,), (1340844408,), (1340844446,), (1340844500,), (1340844589,), (1340845057,), (1340845048,), (1340845053,), (1340845731,), (1340845736,), (1340845740,), (1340845745,), (1340845966,), (1340846156,), (1340846532,), (1340846538,), (1340846545,), (1340846547,), (1340846574,), (1340846579,), (1340846583,), (1340846588,), (1340846619,), (1340846624,), (1340846629,), (1340846634,), (1340846664,), (1340846671,), (1340846673,), (1340846680,), (1340846685,), (1340846689,), (1340846714,), (1340846719,), (1340846723,), (1340846728,), (1340846733,), (1340846738,), (1340846770,), (1340846776,), (1340846844,), (1340846850,), (1340846855,), (1340846901,), (1340846877,), (1340846882,), (1340846886,), (1340846891,), (1340846896,), (1340846932,), (1340846936,), (1340846944,), (1340847033,), (1340847238,), (1340847240,), (1340847245,), (1340847251,), (1340847257,), (1340847262,), (1340847286,), (1340847291,), (1340847297,), (1340847344,), (1340847368,), (1340847448,), (1340848021,), (1340848026,), (1340848031,), (1340848089,), (1340848248,), (1340848252,), (1340848261,), (1340848267,), (1340848272,), (1340848543,), (1340848634,), (1340848638,), (1340848655,), (1340848683,), (1340848802,), (1340848807,), (1340848811,), (1340848872,), (1340848877,), (1340848880,), (1340848887,), (1340848896,), (1340848923,), (1340848927,), (1340848964,), (1340848981,), (1340849156,), (1340849189,), (1340849305,), (1340849310,), (1340849409,), (1340849413,), (1340849416,), (1340849421,), (1340849455,), (1340849605,), (1340849612,), (1340849621,), (1340849626,), (1340849630,), (1340849637,), (1340849639,), (1340849640,), (1340849643,), (1340849644,), (1340849646,), (1340849650,), (1340849652,), (1340849658,), (1340849659,), (1340849681,), (1340852049,), (1340852056,), (1340852114,), (1340852121,), (1340852158,), (1340852165,), (1340852170,), (1340852174,), (1340852178,), (1340852183,), (1340852243,), (1340852641,), (1340853034,), (1340853517,), (1340853562,), (1340853567,), (1340853574,), (1340853580,), (1340853583,), (1340853671,), (1340853656,), (1340853668,), (1340853856,), (1340853908,), (1340853967,), (1340854570,), (1340854579,), (1340854582,), (1340854911,), (1340854935,), (1340854938,), (1340854942,), (1340854947,), (1340855193,), (1340855198,), (1340855230,), (1340857349,), (1340856841,), (1340857079,), (1340857890,), (1340857893,), (1340857896,), (1340857902,), (1340857908,), (1340858242,), (1340858254,), (1340858260,), (1340858265,), (1340858268,), (1340858290,), (1340858293,), (1340858301,), (1340858308,), (1340858541,), (1340858545,), (1340858548,), (1340858603,), (1340858611,), (1340858734,), (1340858742,), (1340858774,), (1340858788,), (1340858794,), (1340858798,), (1340858819,), (1340858824,), (1340858827,), (1340858832,), (1340858874,), (1340858892,), (1340858896,), (1340858903,), (1340859153,), (1340859157,), (1340859160,), (1340859165,), (1340859233,), (1340859245,), (1340859251,), (1340859281,), (1340859283,), (1340859286,), (1340859292,), (1340859298,), (1340859303,), (1340859503,), (1340859509,), (1340859517,), (1340859523,), (1340859527,), (1340859535,), (1340859540,), (1340859544,), (1340859547,), (1340859678,), (1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,), (1340862334,), (1340862338,), (1340862341,), (1340862345,), (1340862375,), (1340862381,), (1340862386,), (1340862390,), (1340862578,), (1340862509,), (1340862513,), (1340862564,), (1340862572,), (1340862610,), (1340862613,), (1340862616,), (1340862621,), (1340862628,), (1340862652,), (1340862947,), (1340862959,), (1340862988,), (1340862994,), (1340863000,), (1340863005,), (1340863116,), (1340863120,), (1340863123,), (1340863128,), (1340863328,), (1340863343,), (1340863388,), (1340863420,), (1340863431,), (1340863434,), (1340863455,), (1340863460,), (1340863463,), (1340863530,), (1340863553,), (1340863563,), (1340863623,), (1340863627,), (1340863632,), (1340863763,), (1340863784,), (1340863815,), (1340863831,), (1340863845,), (1340863923,), (1340863926,), (1340863929,), (1340863934,), (1340863939,), (1340864054,), (1340864058,), (1340864061,), (1340864099,), (1340864102,), (1340864105,), (1340864292,), (1340864347,), (1340864349,), (1340864363,), (1340864366,), (1340864415,), (1340864443,), (1340864511,), (1340864524,), (1340864606,), (1340864610,), (1340864613,), (1340864644,), (1340864648,), (1340864651,), (1340864657,), (1340864663,), (1340864667,), (1340864695,), (1340864700,), (1340864705,), (1340864714,), (1340864720,), (1340864781,), (1340864765,), (1340864768,), (1340864771,), (1340864776,), (1340864921,), (1340864950,), (1340864953,), (1340865261,), (1340865272,), (1340865326,), (1340865329,), (1340865332,), (1340865337,), (1340865376,), (1340865387,), (1340865391,), (1340865399,), (1340865404,), (1340865475,), (1340865567,), (1340865577,), (1340865588,), (1340865624,), (1340865628,), (1340865631,), (1340865636,), (1340865639,), (1340865756,), (1340865763,), (1340865773,), (1340865787,), (1340865790,), (1340865793,), (1340865826,), (1340865830,), (1340865834,), (1340866309,), (1340866366,), (1340866368,), (1340866375,), (1340866575,), (1340866591,), (1340867178,), (1340871088,), (1340871085,), (1340871139,), (1340871733,), (1340872179,), (1340872548,), (1340872556,), (1340872560,), (1340872592,), (1340872598,), (1340872603,), (1340872608,), (1340872612,), (1340872615,), (1340872662,), (1340872666,), (1340872700,), (1340872751,), (1340872754,), (1340872762,), (1340872869,), (1340872874,), (1340872880,), (1340872884,), (1340872924,), (1340872928,), (1340872932,), (1340872937,), (1340872950,), (1340872954,), (1340873143,), (1340873153,), (1340873157,), (1340873161,), (1340873166,), (1340873207,), (1340873255,), (1340873238,), (1340873245,), (1340873250,), (1340873460,), (1340873477,), (1340873481,), (1340873487,), (1340873491,), (1340873494,), (1340873857,), (1340873860,), (1340873946,), (1340873964,), (1340873980,), (1340874116,), (1340874120,), (1340874129,), (1340874144,), (1340874752,), (1340874760,), (1340874764,), (1340874769,), (1340874989,), (1340875032,), (1340875046,), (1340875054,), (1340875095,), (1340875107,), (1340875114,), (1340875119,), (1340875475,), (1340875479,), (1340875540,), (1340875547,), (1340875572,), (1340875632,), (1340875643,), (1340875657,), (1340875663,), (1340875674,), (1340875707,), (1340875710,), (1340875712,), (1340875717,), (1340875773,), (1340875790,), (1340875802,), (1340875821,), (1340875826,), (1340875888,), (1340875892,), (1340875894,), (1340875899,), (1340876258,), (1340876260,), (1340876263,), (1340876270,), (1340876277,), (1340876466,), (1340876471,), (1340876532,), (1340876622,), (1340876797,), (1340876803,), (1340876885,), (1340876856,), (1340876862,), (1340876879,), (1340877063,), (1340877071,), (1340877083,), (1340877169,), (1340877175,), (1340877179,), (1340877184,), (1340877190,), (1340877327,), (1340877341,), (1340877345,), (1340877375,), (1340877401,), (1340877406,), (1340877418,), (1340877465,), (1340877471,), (1340877567,), (1340877656,), (1340877746,), (1340878189,), (1340878193,), (1340878196,), (1340878205,), (1340878210,), (1340878553,), (1340878557,), (1340878560,), (1340878883,), (1340878888,), (1340878915,), (1340879016,), (1340879260,), (1340879276,), (1340879283,), (1340879292,), (1340879298,), (1340879304,), (1340879326,), (1340879330,), (1340879334,), (1340879408,), (1340879419,), (1340879423,), (1340879430,), (1340879436,), (1340879440,), (1340879493,), (1340879516,), (1340879548,), (1340879555,), (1340879574,), (1340879899,), (1340879904,), (1340879908,), (1340879914,), (1340879919,), (1340879925,), (1340879951,), (1340879956,), (1340879961,), (1340880144,), (1340880117,), (1340880124,), (1340880130,), (1340880138,), (1340880216,), (1340880219,), (1340880224,), (1340880230,), (1340880285,), (1340880295,), (1340880410,), (1340880413,), (1340880417,), (1340880423,), (1340880467,), (1340880472,), (1340880479,), (1340880486,), (1340880491,), (1340880652,), (1340880657,), (1340880661,), (1340880667,), (1340880696,), (1340880701,), (1340880705,), (1340880711,), (1340880716,), (1340880898,), (1340880905,), (1340880909,), (1340880917,), (1340880964,), (1340880969,), (1340880976,), (1340880983,), (1340880990,), (1340880994,), (1340881028,), (1340881039,), (1340881045,), (1340881051,), (1340881058,), (1340881063,), (1340881079,), (1340881084,), (1340881088,), (1340881099,), (1340881410,), (1340881416,), (1340881420,), (1340881425,), (1340881431,), (1340881455,), (1340881459,), (1340881467,), (1340881471,), (1340881478,), (1340881517,), (1340881528,), (1340881532,), (1340881721,), (1340881727,), (1340881732,), (1340881737,), (1340881742,), (1340881756,), (1340881760,), (1340881764,), (1340881766,), (1340881769,), (1340881808,), (1340881800,), (1340881804,), (1340881979,), (1340882071,), (1340882074,), (1340882080,), (1340882087,), (1340882092,), (1340882137,), (1340882144,), (1340882157,), (1340882164,), (1340882170,), (1340882190,), (1340882193,), (1340882199,), (1340882403,), (1340882426,), (1340882443,), (1340882460,), (1340882471,), (1340882531,), (1340882535,), (1340882538,), (1340882544,), (1340882552,), (1340882608,), (1340882617,), (1340882626,), (1340882631,), (1340882636,), (1340882659,), (1340882664,), (1340882668,), (1340882683,), (1340882695,), (1340882704,), (1340882780,), (1340882783,), (1340882786,), (1340882951,), (1340882959,), (1340882963,), (1340882979,), (1340882985,), (1340882988,), (1340883014,), (1340883016,), (1340883018,), (1340883071,), (1340883074,), (1340883076,), (1340883081,), (1340883248,), (1340883282,), (1340883292,), (1340883307,), (1340883317,), (1340883331,), (1340883406,), (1340883411,), (1340883425,), (1340883439,), (1340883656,), (1340883657,), (1340883658,), (1340883662,), (1340883724,), (1340883694,), (1340883696,), (1340883697,), (1340883701,), (1340883976,), (1340883979,), (1340883981,), (1340883984,), (1340884045,), (1340884053,), (1340884057,), (1340884061,), (1340884067,), (1340884157,), (1340884317,), (1340884320,), (1340884324,), (1340884334,), (1340884338,), (1340884341,), (1340884368,), (1340884374,), (1340884380,), (1340884385,), (1340884585,), (1340884589,), (1340884650,), (1340884658,), (1340884667,), (1340884708,), (1340884729,), (1340884810,), (1340885102,), (1340885114,), (1340885123,), (1340885127,), (1340885131,), (1340885134,), (1340885166,), (1340885174,), (1340885177,), (1340885180,), (1340885183,), (1340885196,), (1340885216,), (1340885230,), (1340885232,), (1340885236,), (1340885294,), (1340885297,), (1340885302,), (1340885312,), (1340885321,), (1340885358,), (1340885360,), (1340885361,), (1340885365,), (1340885369,), (1340885373,), (1340885417,), (1340885420,), (1340885424,), (1340885449,), (1340885452,), (1340885454,), (1340885459,), (1340885463,), (1340885496,), (1340885500,), (1340885502,), (1340885506,), (1340885510,), (1340885603,), (1340885550,), (1340885557,), (1340885570,), (1340885574,), (1340885599,), (1340885850,), (1340885853,), (1340885877,), (1340885924,), (1340886037,), (1340886182,), (1340886184,), (1340886187,), (1340886197,), (1340886240,), (1340886245,), (1340886251,), (1340886260,), (1340886265,), (1340886318,), (1340886332,), (1340886371,), (1340886388,), (1340886390,), (1340886392,), (1340886557,), (1340886561,), (1340886564,), (1340886613,), (1340886617,), (1340886618,), (1340886622,), (1340886634,), (1340886640,), (1340886673,), (1340886690,), (1340886701,), (1340886706,), (1340886711,), (1340886713,), (1340886816,), (1340886825,), (1340886828,), (1340886834,), (1340886871,), (1340886873,), (1340886875,), (1340886880,), (1340886884,), (1340887221,), (1340887226,), (1340887227,), (1340887317,), (1340887323,), (1340887328,), (1340887334,), (1340887459,), (1340887472,), (1340887485,), (1340887491,), (1340887527,), (1340887547,), (1340887569,), (1340887575,), (1340887582,), (1340887602,), (1340887607,), (1340887612,), (1340887618,), (1340887624,), (1340887876,), (1340887667,), (1340887673,), (1340887719,), (1340887858,), (1340888053,), (1340888065,), (1340888076,), (1340888142,), (1340888148,), (1340888157,), (1340888169,), (1340888236,), (1340888242,), (1340888330,), (1340888386,), (1340888394,), (1340888401,), (1340888488,), (1340888492,), (1340888497,), (1340888511,), (1340888523,), (1340888595,), (1340888605,), (1340888619,), (1340888628,), (1340888655,), (1340888661,), (1340888663,), (1340888668,), (1340888698,), (1340888709,), (1340888830,), (1340888843,), (1340888855,), (1340888886,), (1340888892,), (1340888899,), (1340888934,), (1340888938,), (1340888940,), (1340888950,), (1340888988,), (1340888992,), (1340888996,), (1340889001,), (1340889006,), (1340889010,), (1340889096,), (1340889103,), (1340889114,), (1340889128,), (1340889215,), (1340889227,), (1340889230,), (1340889436,), (1340889441,), (1340889466,), (1340889481,), (1340889492,), (1340889580,), (1340889585,), (1340889589,), (1340889594,), (1340889638,), (1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,), (1340890595,), (1340890602,), (1340890609,), (1340890774,), (1340890782,), (1340890794,), (1340890801,), (1340890825,), (1340890835,), (1340891078,), (1340891098,), (1340891110,), (1340891121,), (1340891135,), (1340891138,), (1340891197,), (1340891201,), (1340891206,), (1340891211,), (1340891244,), (1340891246,), (1340891247,), (1340891253,), (1340891258,), (1340891262,), (1340891305,), (1340891358,), (1340891367,), (1340891428,), (1340891432,), (1340891436,), (1340891571,), (1340891570,), (1340891627,), (1340891637,), (1340891653,), (1340891666,), (1340891676,), (1340891700,), (1340891844,), (1340891894,), (1340891987,), (1340892080,), (1340892084,), (1340892237,), (1340892244,), (1340892246,), (1340892249,), (1340892254,), (1340892353,), (1340892360,), (1340892370,), (1340892426,), (1340892429,), (1340892435,), (1340892440,), (1340892490,), (1340892491,), (1340892493,), (1340892499,), (1340892511,), (1340892704,), (1340892716,), (1340892737,), (1340892755,), (1340893199,), (1340893243,), (1340893303,), (1340893390,), (1340893397,), (1340893597,), (1340893613,), (1340893650,), (1340893699,), (1340893704,), (1340893713,), (1340893719,), (1340893854,), (1340893860,), (1340893863,), (1340893868,), (1340893873,), (1340893878,), (1340893910,), (1340893916,), (1340893921,), (1340893926,), (1340893930,), (1340893935,), (1340893953,), (1340893957,), (1340893964,), (1340893971,), (1340894023,), (1340894327,), (1340894398,), (1340894402,), (1340894407,), (1340894425,), (1340894436,), (1340894510,), (1340894514,), (1340894520,), (1340894529,), (1340894532,), (1340894549,), (1340894556,), (1340894563,), (1340894650,), (1340894660,), (1340894855,), (1340894857,), (1340894861,), (1340894866,), (1340894871,), (1340894874,), (1340894902,), (1340894904,), (1340894907,), (1340894913,), (1340894918,), (1340895029,), (1340895033,), (1340895037,), (1340895042,), (1340895065,), (1340895075,), (1340895079,), (1340895083,), (1340895087,), (1340895091,), (1340895136,), (1340895139,), (1340895141,), (1340895147,), (1340895152,), (1340895171,), (1340895174,), (1340895181,), (1340895216,), (1340895219,), (1340895221,), (1340895230,), (1340895234,), (1340895377,), (1340895380,), (1340895383,), (1340895409,), (1340895656,), (1340895660,), (1340895663,), (1340895667,), (1340895798,), (1340895803,), (1340895807,), (1340895811,), (1340895816,), (1340895820,), (1340895880,), (1340895847,), (1340895851,), (1340895868,), (1340895874,), (1340895877,), (1340896078,), (1340896389,), (1340896434,), (1340896724,), (1340896726,), (1340896728,), (1340896733,), (1340896810,), (1340896853,), (1340896890,), (1340896893,), (1340896959,), (1340896961,), (1340896963,), (1340896968,), (1340896973,), (1340896995,), (1340896998,), (1340897000,), (1340897039,), (1340897042,), (1340897045,), (1340897051,), (1340897108,), (1340897110,), (1340897127,), (1340897212,), (1340897222,), (1340897288,), (1340897294,), (1340897298,), (1340897321,), (1340897423,), (1340897428,), (1340897431,), (1340897436,), (1340897443,), (1340897535,), (1340897540,), (1340897548,), (1340897556,), (1340897560,), (1340897772,), (1340897776,), (1340897780,), (1340897782,), (1340897833,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21032977]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] map_info['map_portfolio_photo'] : {21032977: [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535, 1340897443, 1340897436, 1340897431, 1340897428, 1340897423, 1340897321, 1340897298, 1340897294, 1340897288, 1340897222, 1340897212, 1340897127, 1340897110, 1340897108, 1340897051, 1340897045, 1340897042, 1340897039, 1340897000, 1340896998, 1340896995, 1340896973, 1340896968, 1340896963, 1340896961, 1340896959, 1340896893, 1340896890, 1340896853, 1340896810, 1340896733, 1340896728, 1340896726, 1340896724, 1340896434, 1340896389, 1340896078, 1340895877, 1340895874, 1340895868, 1340895851, 1340895847]} final : True mtd_id 4302 list_pids : [1340897833, 1340897782, 1340897780, 1340897776, 1340897772, 1340897560, 1340897556, 1340897548, 1340897540, 1340897535] Looping around the photos to save general results len do output : 1 /21032977Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649') ('4302', None, None, None, None, None, None, None, '2635649') ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21032977', 'None', None, None, None, None, '2635649'), ('4302', '21032977', '1340897833', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897782', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897780', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897776', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897772', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897560', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897556', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897548', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897540', None, None, None, None, None, '2635649'), ('4302', '21032977', '1340897535', None, None, None, None, None, '2635649')] time used for this insertion : 0.013085603713989258 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.766741037368774 time spend to save output : 0.013316869735717773 total time spend for step 5 : 5.780057907104492 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2635649) 2.37user 2.49system 0:17.81elapsed 27%CPU (0avgtext+0avgdata 160164maxresident)k 440inputs+17408outputs (2major+75084minor)pagefaults 0swaps