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 : 1903209 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 (3251198) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3251198) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726606 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3251198'] with mtr_portfolio_ids : ['24726606'] and first list_photo_ids : [] new path : /proc/1903209/ Name: python3 Umask: 0002 State: R (running) Tgid: 1903209 Ngid: 0 Pid: 1903209 PPid: 1903205 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1903209 NSpid: 1903209 NSpgid: 1902614 NSsid: 1902614 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100500 kB VmRSS: 100500 kB RssAnon: 59800 kB RssFile: 40700 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 38 nonvoluntary_ctxt_switches: 193 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1903209', 'Ngid': '0', 'Pid': '1903209', 'PPid': '1903205', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1903209', 'NSpid': '1903209', 'NSpgid': '1902614', 'NSsid': '1902614', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100500 kB', 'VmRSS': '100500 kB', 'RssAnon': '59800 kB', 'RssFile': '40700 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '38', 'nonvoluntary_ctxt_switches': '193'} ('datou_batch_current', '1903209', '1106864', '0', '1106864', '865616', '100500', b'', 'marlene', '3251198') 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 (24726606) 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 (3251198 ) ) 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 (24726606) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371198066, 'portfolio_id': 24726606}, {'photo_id': 1371197973, 'portfolio_id': 24726606}, {'photo_id': 1371197873, 'portfolio_id': 24726606}, {'photo_id': 1371197781, 'portfolio_id': 24726606}, {'photo_id': 1371197690, 'portfolio_id': 24726606}, {'photo_id': 1371197583, 'portfolio_id': 24726606}, {'photo_id': 1371197082, 'portfolio_id': 24726606}, {'photo_id': 1371197040, 'portfolio_id': 24726606}, {'photo_id': 1371197017, 'portfolio_id': 24726606}, {'photo_id': 1371197015, 'portfolio_id': 24726606}, {'photo_id': 1371197014, 'portfolio_id': 24726606}, {'photo_id': 1371197012, 'portfolio_id': 24726606}, {'photo_id': 1371196910, 'portfolio_id': 24726606}, {'photo_id': 1371196875, 'portfolio_id': 24726606}, {'photo_id': 1371196841, 'portfolio_id': 24726606}, {'photo_id': 1371196806, 'portfolio_id': 24726606}, {'photo_id': 1371196774, 'portfolio_id': 24726606}, {'photo_id': 1371196743, 'portfolio_id': 24726606}, {'photo_id': 1371196620, 'portfolio_id': 24726606}, {'photo_id': 1371196617, 'portfolio_id': 24726606}, {'photo_id': 1371196614, 'portfolio_id': 24726606}, {'photo_id': 1371196611, 'portfolio_id': 24726606}, {'photo_id': 1371196609, 'portfolio_id': 24726606}, {'photo_id': 1371196607, 'portfolio_id': 24726606}, {'photo_id': 1371196587, 'portfolio_id': 24726606}, {'photo_id': 1371196573, 'portfolio_id': 24726606}, {'photo_id': 1371196543, 'portfolio_id': 24726606}, {'photo_id': 1371196541, 'portfolio_id': 24726606}, {'photo_id': 1371196522, 'portfolio_id': 24726606}, {'photo_id': 1371196505, 'portfolio_id': 24726606}, {'photo_id': 1371196415, 'portfolio_id': 24726606}, {'photo_id': 1371196412, 'portfolio_id': 24726606}, {'photo_id': 1371196409, 'portfolio_id': 24726606}, {'photo_id': 1371196406, 'portfolio_id': 24726606}, {'photo_id': 1371196403, 'portfolio_id': 24726606}, {'photo_id': 1371196394, 'portfolio_id': 24726606}, {'photo_id': 1371196189, 'portfolio_id': 24726606}, {'photo_id': 1371196127, 'portfolio_id': 24726606}, {'photo_id': 1371196091, 'portfolio_id': 24726606}, {'photo_id': 1371196057, 'portfolio_id': 24726606}, {'photo_id': 1371196000, 'portfolio_id': 24726606}, {'photo_id': 1371195950, 'portfolio_id': 24726606}, {'photo_id': 1371195735, 'portfolio_id': 24726606}, {'photo_id': 1371195672, 'portfolio_id': 24726606}, {'photo_id': 1371195603, 'portfolio_id': 24726606}, {'photo_id': 1371195519, 'portfolio_id': 24726606}, {'photo_id': 1371195447, 'portfolio_id': 24726606}, {'photo_id': 1371195406, 'portfolio_id': 24726606}, {'photo_id': 1371195298, 'portfolio_id': 24726606}, {'photo_id': 1371195294, 'portfolio_id': 24726606}, {'photo_id': 1371195291, 'portfolio_id': 24726606}, {'photo_id': 1371195289, 'portfolio_id': 24726606}, {'photo_id': 1371195275, 'portfolio_id': 24726606}, {'photo_id': 1371195240, 'portfolio_id': 24726606}] map_portfolio_id_photo_id: {24726606: [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012, 1371196910, 1371196875, 1371196841, 1371196806, 1371196774, 1371196743, 1371196620, 1371196617, 1371196614, 1371196611, 1371196609, 1371196607, 1371196587, 1371196573, 1371196543, 1371196541, 1371196522, 1371196505, 1371196415, 1371196412, 1371196409, 1371196406, 1371196403, 1371196394, 1371196189, 1371196127, 1371196091, 1371196057, 1371196000, 1371195950, 1371195735, 1371195672, 1371195603, 1371195519, 1371195447, 1371195406, 1371195298, 1371195294, 1371195291, 1371195289, 1371195275, 1371195240]} ##### 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.01723790168762207 #### 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 Tue Jul 8 11:40:29 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 (24726606) 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 : 24726606 get user id for portfolio 24726606 get sub ptf for main ptf 24726606, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'flou', 'kraft', 'plastique', 'metal', 'Carton_brun', 'autre_refus', 'Carton_gris', 'mal_croppe', 'cartonnette', 'environnement'] 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`=24726606 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','flou','kraft','plastique','metal','Carton_brun','autre_refus','Carton_gris','mal_croppe','cartonnette','environnement')) 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`=24726606 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','flou','kraft','plastique','metal','Carton_brun','autre_refus','Carton_gris','mal_croppe','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24726606, 'sub_port_id': 24726663, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629598, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24726606, 'sub_port_id': 24726664, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629599, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'environnement': {'main_port_id': 24726606, 'sub_port_id': 24726665, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629600, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'plastique': {'main_port_id': 24726606, 'sub_port_id': 24726666, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629601, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'Carton_brun': {'main_port_id': 24726606, 'sub_port_id': 24726667, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629602, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'cartonnette': {'main_port_id': 24726606, 'sub_port_id': 24726668, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629603, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'kraft': {'main_port_id': 24726606, 'sub_port_id': 24726669, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629604, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'autre_refus': {'main_port_id': 24726606, 'sub_port_id': 24726670, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629605, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'mal_croppe': {'main_port_id': 24726606, 'sub_port_id': 24726671, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629606, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'papier': {'main_port_id': 24726606, 'sub_port_id': 24726672, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629607, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'Carton_gris': {'main_port_id': 24726606, 'sub_port_id': 24726673, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629608, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}, 'flou': {'main_port_id': 24726606, 'sub_port_id': 24726674, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629609, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24726663 , 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=24726606 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 (24726663) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726664 , 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=24726606 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 (24726664) result : ((1371196657,), (1371197172,), (1371197175,), (1371197178,), (1371198462,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726665 , 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=24726606 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 (24726665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726666 , 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=24726606 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 (24726666) result : ((1371197268,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726667 , 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=24726606 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 (24726667) result : ((1371196672,), (1371197250,), (1371197253,), (1371198515,), (1371198518,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726668 , 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=24726606 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 (24726668) result : ((1371197235,), (1371198494,), (1371198497,), (1371198500,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726669 , 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=24726606 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 (24726669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726670 , 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=24726606 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 (24726670) result : ((1371198475,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726671 , 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=24726606 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 (24726671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726672 , 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=24726606 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 (24726672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726673 , 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=24726606 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 (24726673) result : ((1371196421,), (1371196422,), (1371196664,), (1371197206,), (1371197209,), (1371197212,), (1371197215,), (1371197218,), (1371197221,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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 24726674 , 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=24726606 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 (24726674) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24726606) result : ((1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) 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 (1371196000) 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`=24726606 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','flou','kraft','plastique','metal','Carton_brun','autre_refus','Carton_gris','mal_croppe','cartonnette','environnement')) 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`=24726606 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','flou','kraft','plastique','metal','Carton_brun','autre_refus','Carton_gris','mal_croppe','cartonnette','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24726606, 'sub_port_id': 24726675, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629610, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24726606, 'sub_port_id': 24726676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629611, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'environnement': {'main_port_id': 24726606, 'sub_port_id': 24726677, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629612, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'plastique': {'main_port_id': 24726606, 'sub_port_id': 24726679, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629613, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'Carton_brun': {'main_port_id': 24726606, 'sub_port_id': 24726680, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629614, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'cartonnette': {'main_port_id': 24726606, 'sub_port_id': 24726681, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629615, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'kraft': {'main_port_id': 24726606, 'sub_port_id': 24726682, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629616, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'autre_refus': {'main_port_id': 24726606, 'sub_port_id': 24726683, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629617, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'mal_croppe': {'main_port_id': 24726606, 'sub_port_id': 24726684, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629618, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'papier': {'main_port_id': 24726606, 'sub_port_id': 24726685, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629619, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'Carton_gris': {'main_port_id': 24726606, 'sub_port_id': 24726686, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629620, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}, 'flou': {'main_port_id': 24726606, 'sub_port_id': 24726687, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16629621, 'last_updated_at': datetime.datetime(2025, 7, 8, 11, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 11, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 11, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24726687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24726674 lien utilise dans velours : https://www.fotonower.com/velours/24726675,24726676,24726677,24726679,24726680,24726681,24726682,24726683,24726684,24726685,24726686,24726687?tags=metal,Teint_Dans_La_Masse,environnement,plastique,Carton_brun,cartonnette,kraft,autre_refus,mal_croppe,papier,Carton_gris,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24726606]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] map_info['map_portfolio_photo'] : {24726606: [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012, 1371196910, 1371196875, 1371196841, 1371196806, 1371196774, 1371196743, 1371196620, 1371196617, 1371196614, 1371196611, 1371196609, 1371196607, 1371196587, 1371196573, 1371196543, 1371196541, 1371196522, 1371196505, 1371196415, 1371196412, 1371196409, 1371196406, 1371196403, 1371196394, 1371196189, 1371196127, 1371196091, 1371196057, 1371196000, 1371195950, 1371195735, 1371195672, 1371195603, 1371195519, 1371195447, 1371195406, 1371195298, 1371195294, 1371195291, 1371195289, 1371195275, 1371195240]} final : False mtd_id 4302 list_pids : [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] Looping around the photos to save general results len do output : 1 /24726606. 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, '3251198') ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24726606', "{'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674}", None, None, None, None, '3251198'), ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198')] time used for this insertion : 0.016775131225585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4762725830078125 time spend to save output : 0.01711106300354004 total time spend for step 1 : 0.49338364601135254 step2:final Tue Jul 8 11:40:30 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 (24726606) 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 24726606 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371195298,1371195294,1371195291,1371195289,1371195275,1371195240,1371195735,1371195672,1371195603,1371195519,1371195447,1371195406,1371196189,1371196127,1371196091,1371196057,1371196000,1371195950,1371196415,1371196412,1371196409,1371196406,1371196403,1371196394,1371196587,1371196573,1371196543,1371196541,1371196522,1371196505,1371196620,1371196617,1371196614,1371196611,1371196609,1371196607,1371196910,1371196875,1371196841,1371196806,1371196774,1371196743,1371197082,1371197040,1371197017,1371197015,1371197014,1371197012,1371198066,1371197973,1371197873,1371197781,1371197690,1371197583); 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([24726606]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} new output for save of step final : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] map_info['map_portfolio_photo'] : {24726606: [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012, 1371196910, 1371196875, 1371196841, 1371196806, 1371196774, 1371196743, 1371196620, 1371196617, 1371196614, 1371196611, 1371196609, 1371196607, 1371196587, 1371196573, 1371196543, 1371196541, 1371196522, 1371196505, 1371196415, 1371196412, 1371196409, 1371196406, 1371196403, 1371196394, 1371196189, 1371196127, 1371196091, 1371196057, 1371196000, 1371195950, 1371195735, 1371195672, 1371195603, 1371195519, 1371195447, 1371195406, 1371195298, 1371195294, 1371195291, 1371195289, 1371195275, 1371195240]} final : False mtd_id 4302 list_pids : [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] Looping around the photos to save general results len do output : 12 /1371198066.Didn't retrieve data . /1371197973.Didn't retrieve data . /1371197873.Didn't retrieve data . /1371197781.Didn't retrieve data . /1371197690.Didn't retrieve data . /1371197583.Didn't retrieve data . /1371197082.Didn't retrieve data . /1371197040.Didn't retrieve data . /1371197017.Didn't retrieve data . /1371197015.Didn't retrieve data . /1371197014.Didn't retrieve data . /1371197012.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, '3251198') ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24726606', '1371198066', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197973', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197873', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197781', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197690', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197583', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197082', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197040', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197017', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197015', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197014', '0.02272134895932109', None, None, None, None, '3251198'), ('4302', '24726606', '1371197012', '0.02272134895932109', None, None, None, None, '3251198')] time used for this insertion : 0.016539812088012695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0680091381072998 time spend to save output : 0.017136096954345703 total time spend for step 2 : 0.08514523506164551 step3:velours_tree Tue Jul 8 11:40:30 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 : {24726606: [{'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674}]} input_args_next_step : {24726606: ()} output_args : {24726606: [{'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674}]} args : 24726606 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 : ({'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24726606) 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([24726606]) 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.27839088439941406 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.2784407138824463 step4:send_mail_cod Tue Jul 8 11:40:30 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 : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} input_args_next_step : {1371198066: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371198066 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197973 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197873 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197781 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197690 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197583 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197082 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197040 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197017 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197015 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197014 depend.output_id : 0 input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ()} output_args : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',)} args : 1371197012 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 : {24726606: [{'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674}]} input_args_next_step : {1371198066: ('0.02272134895932109',), 1371197973: ('0.02272134895932109',), 1371197873: ('0.02272134895932109',), 1371197781: ('0.02272134895932109',), 1371197690: ('0.02272134895932109',), 1371197583: ('0.02272134895932109',), 1371197082: ('0.02272134895932109',), 1371197040: ('0.02272134895932109',), 1371197017: ('0.02272134895932109',), 1371197015: ('0.02272134895932109',), 1371197014: ('0.02272134895932109',), 1371197012: ('0.02272134895932109',), 24726606: ()} output_args : {24726606: [{'metal': 24726663, 'Teint_Dans_La_Masse': 24726664, 'environnement': 24726665, 'plastique': 24726666, 'Carton_brun': 24726667, 'cartonnette': 24726668, 'kraft': 24726669, 'autre_refus': 24726670, 'mal_croppe': 24726671, 'papier': 24726672, 'Carton_gris': 24726673, 'flou': 24726674}]} args : 24726606 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 :13, first value : ('0.02272134895932109',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24726606) 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 (1371198066,1371197973,1371197873,1371197781,1371197690,1371197583,1371197082,1371197040,1371197017,1371197015,1371197014,1371197012) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371197012 begin to download photo : 1371197017 begin to download photo : 1371197583 begin to download photo : 1371197873 download finish for photo 1371197017 begin to download photo : 1371197040 download finish for photo 1371197873 begin to download photo : 1371197973 download finish for photo 1371197012 begin to download photo : 1371197014 download finish for photo 1371197583 begin to download photo : 1371197690 download finish for photo 1371197040 begin to download photo : 1371197082 download finish for photo 1371197014 begin to download photo : 1371197015 download finish for photo 1371197973 begin to download photo : 1371198066 download finish for photo 1371197690 begin to download photo : 1371197781 download finish for photo 1371197082 download finish for photo 1371197015 download finish for photo 1371198066 download finish for photo 1371197781 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247266631751967631/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24726606_08-07-2025_11_40_31.pdf 24726663 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=24726663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247266631751967631 24726666 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=24726666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371197268: '1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958329_0.png'} change filename to text .imagette247266661751967631/ imagette247266661751967631/1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958329_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0e36bba873e396173333de70a332f15e_9574263.png imagette247266661751967631 24726668 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=24726668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371197235: '1751967488_3253733_1371196587_fc9bd73140126607c57a195ca15caf7e_rle_crop_3875958316_0.png', 1371198494: '1751967565_3949172_1371195603_66394c1452853782d32961f9e933ce35_rle_crop_3875958538_0.png', 1371198497: '1751967565_3949172_1371195519_2661cee8c9e57070055e6a1eebe7a740_rle_crop_3875958549_0.png', 1371198500: '1751967565_3949172_1371195519_2661cee8c9e57070055e6a1eebe7a740_rle_crop_3875958551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6c40fe39c27985ea41ad4191b6f42a0f_76912833.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2db732256f1970dfc37680b62dad4392_54893849.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7d054078be7906fece3e2db5bce0023c_57939184.png change filename to text .imagette247266681751967631/ imagette247266681751967631/1751967488_3253733_1371196587_fc9bd73140126607c57a195ca15caf7e_rle_crop_3875958316_0.png.png imagette247266681751967631/1751967565_3949172_1371195603_66394c1452853782d32961f9e933ce35_rle_crop_3875958538_0.png.png imagette247266681751967631/1751967565_3949172_1371195519_2661cee8c9e57070055e6a1eebe7a740_rle_crop_3875958549_0.png.png imagette247266681751967631/1751967565_3949172_1371195519_2661cee8c9e57070055e6a1eebe7a740_rle_crop_3875958551_0.png.png imagette247266691751967631/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4b3033ddd4926599f72949dfb514c254_67471582.png imagette247266681751967631 24726669 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=24726669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247266691751967631 24726670 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=24726670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371198475: '1751967565_3949172_1371195672_21dd7968b4bb231002577fa7ccf353e6_rle_crop_3875958528_0.png'} change filename to text .imagette247266701751967631/ imagette247266701751967631/1751967565_3949172_1371195672_21dd7968b4bb231002577fa7ccf353e6_rle_crop_3875958528_0.png.png imagette247266711751967631/ imagette247266741751967631/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b1c22a3dc11c2742d68b009d50caaf6d_50833249.png imagette247266701751967631 24726671 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=24726671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247266711751967631 24726674 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=24726674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247266741751967631 24726664 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=24726664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371196657: '1751967367_3246446_1371195950_c6a2a5a2c4a5520356fd5325343d88d2_rle_crop_3875949049_0.png', 1371197172: '1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958347_0.png', 1371197175: '1751967488_3253733_1371196541_08dda2349a36447ff0df7592e55397e0_rle_crop_3875958363_0.png', 1371197178: '1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958373_0.png', 1371198462: '1751967565_3949172_1371195447_87ddc55c58cd141121b424e7f3b35a44_rle_crop_3875958562_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8d1d36083309f938d6c40c6d65661f3b_8966417.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a9006426eb1078c23fc0e33905e83670_21657007.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/10a37eb3725327516037386a66804b8e_56012044.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c27cfe2ae2d2389eaf2373e319c78592_70865089.png change filename to text .imagette247266641751967631/ imagette247266641751967631/1751967488_3253733_1371196541_08dda2349a36447ff0df7592e55397e0_rle_crop_3875958363_0.png.png imagette247266641751967631/1751967367_3246446_1371195950_c6a2a5a2c4a5520356fd5325343d88d2_rle_crop_3875949049_0.png.png imagette247266641751967631/1751967565_3949172_1371195447_87ddc55c58cd141121b424e7f3b35a44_rle_crop_3875958562_0.png.png imagette247266641751967631/1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958347_0.png.png imagette247266641751967631/1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958373_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9c1fa91b5ec49062f0a402035dc414d1_43178275.png imagette247266641751967631 24726667 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=24726667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371196672: '1751967367_3246446_1371196057_97f4cdd75fac49faa76c11bdcaba4c66_rle_crop_3875949029_0.png', 1371197250: '1751967488_3253733_1371196587_fc9bd73140126607c57a195ca15caf7e_rle_crop_3875958317_0.png', 1371197253: '1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958375_0.png', 1371198515: '1751967565_3949172_1371195447_87ddc55c58cd141121b424e7f3b35a44_rle_crop_3875958566_0.png', 1371198518: '1751967565_3949172_1371195406_f1ee2ad749b17e3f13ff6cf8e5c856e7_rle_crop_3875958573_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9989ed2d8b75e418b3bda11a99a372c1_1779593.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c63718bf131f63bfb199199880140fbd_67032957.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7cfeb315990ef2b83a81e7d85b47181e_29751497.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5bf5e7d6ad59c160cba1222fb223b7ba_57934393.png change filename to text .imagette247266671751967631/ imagette247266671751967631/1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958375_0.png.png imagette247266671751967631/1751967565_3949172_1371195406_f1ee2ad749b17e3f13ff6cf8e5c856e7_rle_crop_3875958573_0.png.png imagette247266671751967631/1751967488_3253733_1371196587_fc9bd73140126607c57a195ca15caf7e_rle_crop_3875958317_0.png.png imagette247266671751967631/1751967367_3246446_1371196057_97f4cdd75fac49faa76c11bdcaba4c66_rle_crop_3875949029_0.png.png imagette247266671751967631/1751967565_3949172_1371195447_87ddc55c58cd141121b424e7f3b35a44_rle_crop_3875958566_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d7d4019a80c2e6cb670c7d1795b9c65e_95504581.png imagette247266671751967631 24726673 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=24726673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371196421: '1751967246_3241554_1371195298_de0dda94f94cfdb0eb2819965ba75762_rle_crop_3875941561_0.png', 1371196422: '1751967246_3241554_1371195294_a914f6e4b0f5630d11ac281424210338_rle_crop_3875941847_0.png', 1371196664: '1751967367_3246446_1371196189_47cbd2caf2bdf3e74a7b756029874395_rle_crop_3875946808_0.png', 1371197206: '1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958330_0.png', 1371197209: '1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958327_0.png', 1371197212: '1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958342_0.png', 1371197215: '1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958346_0.png', 1371197218: '1751967488_3253733_1371196541_08dda2349a36447ff0df7592e55397e0_rle_crop_3875958355_0.png', 1371197221: '1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/75590dd61dd79798fd8d9cf7462d4968_41667186.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7bd8ec662c154b98aff8b13d707028c2_17971838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cd6229f8057d8844917567a35110253d_39599739.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9499b2177295e392803d9741b7ff3510_4989033.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/81f5e473a5cd2822b409e3a99109181b_93503589.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fa135144fbb445c4c75045ea5a88e5ba_72697121.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5b28920e323f2d8c3a6cf2e82ddfc97e_61017037.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/db5a6a13f832fd5520a9de1eacdfba64_73339570.png change filename to text .imagette247266731751967632/ imagette247266731751967632/1751967246_3241554_1371195294_a914f6e4b0f5630d11ac281424210338_rle_crop_3875941847_0.png.png imagette247266731751967632/1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958346_0.png.png imagette247266731751967632/1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958327_0.png.png imagette247266731751967632/1751967488_3253733_1371196573_de029950b2b6c45836c843f2e999fb75_rle_crop_3875958330_0.png.png imagette247266731751967632/1751967488_3253733_1371196522_1d80547d3447b22339b9951f3be2ff67_rle_crop_3875958369_0.png.png imagette247266731751967632/1751967488_3253733_1371196543_6faba698c09adc0b4aa2811381f0e79a_rle_crop_3875958342_0.png.png imagette247266731751967632/1751967246_3241554_1371195298_de0dda94f94cfdb0eb2819965ba75762_rle_crop_3875941561_0.png.png imagette247266731751967632/1751967488_3253733_1371196541_08dda2349a36447ff0df7592e55397e0_rle_crop_3875958355_0.png.png imagette247266731751967632/1751967367_3246446_1371196189_47cbd2caf2bdf3e74a7b756029874395_rle_crop_3875946808_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ab2cc6b991ee76b72b0f97018fb1031d_51484136.png imagette247266731751967632 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24726606 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24726675,24726676,24726677,24726679,24726680,24726681,24726682,24726683,24726684,24726685,24726686,24726687?tags=metal,Teint_Dans_La_Masse,environnement,plastique,Carton_brun,cartonnette,kraft,autre_refus,mal_croppe,papier,Carton_gris,flou your option no_mail is active, we will not send the real mail to your client args[1371198066] : ('0.02272134895932109',) no score found for photo 1371198066 We are sending mail with results at report@fotonower.com args[1371197973] : ('0.02272134895932109',) no score found for photo 1371197973 We are sending mail with results at report@fotonower.com args[1371197873] : ('0.02272134895932109',) no score found for photo 1371197873 We are sending mail with results at report@fotonower.com args[1371197781] : ('0.02272134895932109',) no score found for photo 1371197781 We are sending mail with results at report@fotonower.com args[1371197690] : ('0.02272134895932109',) no score found for photo 1371197690 We are sending mail with results at report@fotonower.com args[1371197583] : ('0.02272134895932109',) no score found for photo 1371197583 We are sending mail with results at report@fotonower.com args[1371197082] : ('0.02272134895932109',) no score found for photo 1371197082 We are sending mail with results at report@fotonower.com args[1371197040] : ('0.02272134895932109',) no score found for photo 1371197040 We are sending mail with results at report@fotonower.com args[1371197017] : ('0.02272134895932109',) no score found for photo 1371197017 We are sending mail with results at report@fotonower.com args[1371197015] : ('0.02272134895932109',) no score found for photo 1371197015 We are sending mail with results at report@fotonower.com args[1371197014] : ('0.02272134895932109',) no score found for photo 1371197014 We are sending mail with results at report@fotonower.com args[1371197012] : ('0.02272134895932109',) no score found for photo 1371197012 We are sending mail with results at report@fotonower.com refus_total : 0.02272134895932109 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=24726606 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_P24726606_08-07-2025_11_40_31.pdf results_Auto_P24726606_08-07-2025_11_40_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24726606_08-07-2025_11_40_31.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','24726606','results_Auto_P24726606_08-07-2025_11_40_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24726606_08-07-2025_11_40_31.pdf','pdf','','0.17','0.02272134895932109') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24726606]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] map_info['map_portfolio_photo'] : {24726606: [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012, 1371196910, 1371196875, 1371196841, 1371196806, 1371196774, 1371196743, 1371196620, 1371196617, 1371196614, 1371196611, 1371196609, 1371196607, 1371196587, 1371196573, 1371196543, 1371196541, 1371196522, 1371196505, 1371196415, 1371196412, 1371196409, 1371196406, 1371196403, 1371196394, 1371196189, 1371196127, 1371196091, 1371196057, 1371196000, 1371195950, 1371195735, 1371195672, 1371195603, 1371195519, 1371195447, 1371195406, 1371195298, 1371195294, 1371195291, 1371195289, 1371195275, 1371195240]} final : False mtd_id 4302 list_pids : [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] 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, '3251198') ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24726606', '1371198066', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198')] time used for this insertion : 0.014631271362304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.957242250442505 time spend to save output : 0.014900684356689453 total time spend for step 4 : 2.9721429347991943 step5:split_time_score Tue Jul 8 11:40:33 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 : ['24726606'] 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 : [('24726606',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24726606) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371197017: {'path': 'temp/1751967630_1903209_1371197017_d0d0165add2a97ff3c3e7350c475320f.jpg', 'extension': 'jpg'}, 1371197040: {'path': 'temp/1751967630_1903209_1371197040_a6a33a60654588525d990211541aca57.jpg', 'extension': 'jpg'}, 1371197082: {'path': 'temp/1751967630_1903209_1371197082_f1bd039d12812d1c3499233c9f8a39e6.jpg', 'extension': 'jpg'}, 1371197012: {'path': 'temp/1751967630_1903209_1371197012_45dfe5c582b80890beb2e404625248d7.jpg', 'extension': 'jpg'}, 1371197014: {'path': 'temp/1751967630_1903209_1371197014_a6d2b8f5712c2f7be3ab64deef7def9d.jpg', 'extension': 'jpg'}, 1371197015: {'path': 'temp/1751967630_1903209_1371197015_b1be83ddd61257f8fa2c413523d4da11.jpg', 'extension': 'jpg'}, 1371197873: {'path': 'temp/1751967630_1903209_1371197873_730cd2dcb4fb7309539293b4b4ed0360.jpg', 'extension': 'jpg'}, 1371197973: {'path': 'temp/1751967630_1903209_1371197973_e7b2afe520e5c1eb744266219304ddbd.jpg', 'extension': 'jpg'}, 1371198066: {'path': 'temp/1751967630_1903209_1371198066_37b44da81599819d464e132064674ba8.jpg', 'extension': 'jpg'}, 1371197583: {'path': 'temp/1751967630_1903209_1371197583_7d95916d35e0a7449fdfd9fc843b4a14.jpg', 'extension': 'jpg'}, 1371197690: {'path': 'temp/1751967630_1903209_1371197690_5f39594a3264b42a5324c8eb24c2a382.jpg', 'extension': 'jpg'}, 1371197781: {'path': 'temp/1751967630_1903209_1371197781_4c6c44adb20f7af1949495e0465f5ab3.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 = 24726606; (('arc_en_ciel_jrm_live',), ('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 = 24726606 group by h (('11', 54),) 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=24726606 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 (24726606) 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 (24726606) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24726606 Nombre de photos uploadées : 54 / 23040 (0%) 08072025 24726606 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 08072025 24726606 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1371195298, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/de0dda94f94cfdb0eb2819965ba75762.jpg', 'username': None, 'uploaded_at': 1751967063, 'text': 'image_08072025_11_30_04_010137m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371195294, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a914f6e4b0f5630d11ac281424210338.jpg', 'username': None, 'uploaded_at': 1751967063, 'text': 'image_08072025_11_30_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371195291, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ef3aacb22422c3432b42723ff19c99cd.jpg', 'username': None, 'uploaded_at': 1751967063, 'text': 'image_08072025_11_30_23_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371195289, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e5136dcffc59b949a7b87e824a1b55e8.jpg', 'username': None, 'uploaded_at': 1751967063, 'text': 'image_08072025_11_30_33_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0036420822143554688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24726606, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02834916114807129 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12281771, '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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12281772, '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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12281773, '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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12281774, '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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12281775, '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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12281776, '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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12281777, '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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24705431, 'dashboard_result_id': 12281778, '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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24706018, 'dashboard_result_id': 12281780, '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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24706657, 'dashboard_result_id': 12281781, '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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24707037, 'dashboard_result_id': 12281782, '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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24707471, 'dashboard_result_id': 12281783, '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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24707886, 'dashboard_result_id': 12281784, '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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24708456, 'dashboard_result_id': 12281785, '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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24708864, 'dashboard_result_id': 12281786, '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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24709305, 'dashboard_result_id': 12281787, '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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24709706, 'dashboard_result_id': 12281788, '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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24710277, 'dashboard_result_id': 12281789, '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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24710641, 'dashboard_result_id': 12281790, '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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24711106, 'dashboard_result_id': 12281791, '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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24711540, 'dashboard_result_id': 12281792, '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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24712059, 'dashboard_result_id': 12281794, '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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24712470, 'dashboard_result_id': 12281795, '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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24712908, 'dashboard_result_id': 12281796, '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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24713368, 'dashboard_result_id': 12281797, '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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24713857, 'dashboard_result_id': 12281798, '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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24714245, 'dashboard_result_id': 12281799, '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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24714691, 'dashboard_result_id': 12281800, '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_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24715147, 'dashboard_result_id': 12281801, '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_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24716070, 'dashboard_result_id': 12281802, '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_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24716628, 'dashboard_result_id': 12281803, '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_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24717173, 'dashboard_result_id': 12281804, '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_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24717751, 'dashboard_result_id': 12281805, '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_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24718421, 'dashboard_result_id': 12281806, '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_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24718960, 'dashboard_result_id': 12281807, '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_P24718960_08-07-2025_08_42_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24724113, 'dashboard_result_id': 12281808, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24724129, 'dashboard_result_id': 12281810, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24719537, 'dashboard_result_id': 12281811, '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_P24719537_08-07-2025_10_13_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24719613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719624, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24719541, 'dashboard_result_id': 12281812, '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_P24719541_08-07-2025_10_14_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719674, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24719545, 'dashboard_result_id': 12281813, '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_P24719545_08-07-2025_10_13_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719612, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24719549, 'dashboard_result_id': 12281814, '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_P24719549_08-07-2025_10_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719567, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24720018, 'dashboard_result_id': 12281815, '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_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24721716, 'dashboard_result_id': 12281816, '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_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24723307, 'dashboard_result_id': 12281817, '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_P24723307_08-07-2025_11_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24724280, 'dashboard_result_id': 12281818, '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_P24724280_08-07-2025_11_16_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24724334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24724335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24724336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24724337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24724338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24724339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24724340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24724341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24724342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24724343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24724344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24724345, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24725528, 'dashboard_result_id': 12281819, '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_P24725528_08-07-2025_11_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24725558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24725559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24725560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24725561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24725562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24725563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24725564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24725565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24725566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24725567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24725568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24725569, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969501, 'mtr_portfolio_id': 24726606, 'dashboard_result_id': 12281820, '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_P24726606_08-07-2025_11_36_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24726663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24726664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24726665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24726666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24726667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24726668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24726669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24726670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24726671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24726672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24726673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24726674, '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 = 24702229 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': 3249205, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 39), 'result': '0.03439958030371631', 'result_long': None, 'result_double': None}] Qualite : 0.03439958030371631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1969501 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281771, 0.03439958030371631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3249206, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 59), 'result': '0.029852122284747536', 'result_long': None, 'result_double': None}] Qualite : 0.029852122284747536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1969501 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281772, 0.029852122284747536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3249207, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 27), 'result': '0.036019155894893067', 'result_long': None, 'result_double': None}] Qualite : 0.036019155894893067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1969501 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281773, 0.036019155894893067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3249208, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 56), 'result': '0.03227754957319547', 'result_long': None, 'result_double': None}] Qualite : 0.03227754957319547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1969501 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281774, 0.03227754957319547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3249209, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 6, 22, 31), 'result': '0.054244446119892195', 'result_long': None, 'result_double': None}] Qualite : 0.054244446119892195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1969501 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281775, 0.054244446119892195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3249210, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 31), 'result': '0.0511404306075878', 'result_long': None, 'result_double': None}] Qualite : 0.0511404306075878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1969501 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281776, 0.0511404306075878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3249211, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 58), 'result': '0.05021798049816016', 'result_long': None, 'result_double': None}] Qualite : 0.05021798049816016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1969501 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281777, 0.05021798049816016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24705431 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': 3249212, 'mtr_portfolio_id': 24705431, 'created_at': datetime.datetime(2025, 7, 8, 6, 24, 57), 'result': '0.035253266256025644', 'result_long': None, 'result_double': None}] Qualite : 0.035253266256025644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705431 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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}" where mtr_portfolio_id = 24705431 and dashboard_run_id = 1969501 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`=24705431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281778, 0.035253266256025644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, '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 = 24706018 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': 3249213, 'mtr_portfolio_id': 24706018, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 27), 'result': '0.04718973249228311', 'result_long': None, 'result_double': None}] Qualite : 0.04718973249228311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706018 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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}" where mtr_portfolio_id = 24706018 and dashboard_run_id = 1969501 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`=24706018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281780, 0.04718973249228311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, '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 = 24706657 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': 3249214, 'mtr_portfolio_id': 24706657, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 38), 'result': '0.05936192136152819', 'result_long': None, 'result_double': None}] Qualite : 0.05936192136152819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706657 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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}" where mtr_portfolio_id = 24706657 and dashboard_run_id = 1969501 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`=24706657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281781, 0.05936192136152819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, '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 = 24707037 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': 3249215, 'mtr_portfolio_id': 24707037, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 57), 'result': '0.047344868686948', 'result_long': None, 'result_double': None}] Qualite : 0.047344868686948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707037 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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}" where mtr_portfolio_id = 24707037 and dashboard_run_id = 1969501 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`=24707037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281782, 0.047344868686948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, '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 = 24707471 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': 3249216, 'mtr_portfolio_id': 24707471, 'created_at': datetime.datetime(2025, 7, 8, 6, 26, 27), 'result': '0.04386404503174259', 'result_long': None, 'result_double': None}] Qualite : 0.04386404503174259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707471 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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}" where mtr_portfolio_id = 24707471 and dashboard_run_id = 1969501 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`=24707471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281783, 0.04386404503174259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, '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 = 24707886 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': 3249217, 'mtr_portfolio_id': 24707886, 'created_at': datetime.datetime(2025, 7, 8, 6, 27, 28), 'result': '0.03575609201014095', 'result_long': None, 'result_double': None}] Qualite : 0.03575609201014095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707886 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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}" where mtr_portfolio_id = 24707886 and dashboard_run_id = 1969501 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`=24707886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281784, 0.03575609201014095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, '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 = 24708456 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': 3249218, 'mtr_portfolio_id': 24708456, 'created_at': datetime.datetime(2025, 7, 8, 6, 28), 'result': '0.040077296222902986', 'result_long': None, 'result_double': None}] Qualite : 0.040077296222902986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708456 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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}" where mtr_portfolio_id = 24708456 and dashboard_run_id = 1969501 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`=24708456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281785, 0.040077296222902986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 = 24708864 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': 3249219, 'mtr_portfolio_id': 24708864, 'created_at': datetime.datetime(2025, 7, 8, 6, 28, 28), 'result': '0.05241112392920958', 'result_long': None, 'result_double': None}] Qualite : 0.05241112392920958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708864 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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}" where mtr_portfolio_id = 24708864 and dashboard_run_id = 1969501 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`=24708864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281786, 0.05241112392920958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, '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 = 24709305 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': 3249220, 'mtr_portfolio_id': 24709305, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 30), 'result': '0.027266168628190587', 'result_long': None, 'result_double': None}] Qualite : 0.027266168628190587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709305 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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}" where mtr_portfolio_id = 24709305 and dashboard_run_id = 1969501 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`=24709305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281787, 0.027266168628190587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, '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 = 24709706 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': 3249221, 'mtr_portfolio_id': 24709706, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 59), 'result': '0.039416608539746385', 'result_long': None, 'result_double': None}] Qualite : 0.039416608539746385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709706 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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}" where mtr_portfolio_id = 24709706 and dashboard_run_id = 1969501 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`=24709706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281788, 0.039416608539746385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, '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 = 24710277 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': 3249222, 'mtr_portfolio_id': 24710277, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 30), 'result': '0.029166659610018672', 'result_long': None, 'result_double': None}] Qualite : 0.029166659610018672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710277 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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}" where mtr_portfolio_id = 24710277 and dashboard_run_id = 1969501 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`=24710277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281789, 0.029166659610018672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, '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 = 24710641 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': 3249223, 'mtr_portfolio_id': 24710641, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 38), 'result': '0.022723499448938', 'result_long': None, 'result_double': None}] Qualite : 0.022723499448938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710641 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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}" where mtr_portfolio_id = 24710641 and dashboard_run_id = 1969501 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`=24710641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281790, 0.022723499448938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, '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 = 24711106 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': 3249224, 'mtr_portfolio_id': 24711106, 'created_at': datetime.datetime(2025, 7, 8, 6, 31, 29), 'result': '0.022118563344150313', 'result_long': None, 'result_double': None}] Qualite : 0.022118563344150313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711106 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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}" where mtr_portfolio_id = 24711106 and dashboard_run_id = 1969501 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`=24711106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281791, 0.022118563344150313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, '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 = 24711540 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': 3249034, 'mtr_portfolio_id': 24711540, 'created_at': datetime.datetime(2025, 7, 8, 5, 16, 57), 'result': '0.018584028979821202', 'result_long': None, 'result_double': None}] Qualite : 0.018584028979821202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711540 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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}" where mtr_portfolio_id = 24711540 and dashboard_run_id = 1969501 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`=24711540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281792, 0.018584028979821202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, '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 = 24712059 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': 3249226, 'mtr_portfolio_id': 24712059, 'created_at': datetime.datetime(2025, 7, 8, 5, 40, 38), 'result': '0.025199203532719025', 'result_long': None, 'result_double': None}] Qualite : 0.025199203532719025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712059 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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}" where mtr_portfolio_id = 24712059 and dashboard_run_id = 1969501 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`=24712059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281794, 0.025199203532719025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, '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 = 24712470 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': 3249123, 'mtr_portfolio_id': 24712470, 'created_at': datetime.datetime(2025, 7, 8, 5, 46, 59), 'result': '0.0402626252856137', 'result_long': None, 'result_double': None}] Qualite : 0.0402626252856137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712470 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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}" where mtr_portfolio_id = 24712470 and dashboard_run_id = 1969501 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`=24712470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281795, 0.0402626252856137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, '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 = 24712908 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': 3249291, 'mtr_portfolio_id': 24712908, 'created_at': datetime.datetime(2025, 7, 8, 6, 3, 29), 'result': '0.044108307242809924', 'result_long': None, 'result_double': None}] Qualite : 0.044108307242809924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712908 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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}" where mtr_portfolio_id = 24712908 and dashboard_run_id = 1969501 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`=24712908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281796, 0.044108307242809924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, '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 = 24713368 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': 3249342, 'mtr_portfolio_id': 24713368, 'created_at': datetime.datetime(2025, 7, 8, 6, 16, 59), 'result': '0.03768009568978376', 'result_long': None, 'result_double': None}] Qualite : 0.03768009568978376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713368 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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}" where mtr_portfolio_id = 24713368 and dashboard_run_id = 1969501 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`=24713368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281797, 0.03768009568978376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, '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 = 24713857 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': 3249389, 'mtr_portfolio_id': 24713857, 'created_at': datetime.datetime(2025, 7, 8, 6, 33, 29), 'result': '0.03252529549769295', 'result_long': None, 'result_double': None}] Qualite : 0.03252529549769295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713857 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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}" where mtr_portfolio_id = 24713857 and dashboard_run_id = 1969501 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`=24713857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281798, 0.03252529549769295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, '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 = 24714245 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': 3249426, 'mtr_portfolio_id': 24714245, 'created_at': datetime.datetime(2025, 7, 8, 6, 46, 59), 'result': '0.030573826947748812', 'result_long': None, 'result_double': None}] Qualite : 0.030573826947748812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714245 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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}" where mtr_portfolio_id = 24714245 and dashboard_run_id = 1969501 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`=24714245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281799, 0.030573826947748812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, '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 = 24714691 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': 3249475, 'mtr_portfolio_id': 24714691, 'created_at': datetime.datetime(2025, 7, 8, 7, 1, 1), 'result': '0.03704878342817047', 'result_long': None, 'result_double': None}] Qualite : 0.03704878342817047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_07_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714691 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_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, 'pht': 3726}}" where mtr_portfolio_id = 24714691 and dashboard_run_id = 1969501 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`=24714691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281800, 0.03704878342817047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, '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 = 24715147 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': 3249546, 'mtr_portfolio_id': 24715147, 'created_at': datetime.datetime(2025, 7, 8, 7, 16, 56), 'result': '0.030669028573050795', 'result_long': None, 'result_double': None}] Qualite : 0.030669028573050795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24715147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24715147_08-07-2025_07_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24715147 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_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, 'pht': 3726}}" where mtr_portfolio_id = 24715147 and dashboard_run_id = 1969501 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`=24715147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281801, 0.030669028573050795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, '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 = 24716070 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': 3249599, 'mtr_portfolio_id': 24716070, 'created_at': datetime.datetime(2025, 7, 8, 7, 32, 56), 'result': '0.04159461346647092', 'result_long': None, 'result_double': None}] Qualite : 0.04159461346647092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24716070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716070_08-07-2025_07_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24716070 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_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, 'pht': 3726}}" where mtr_portfolio_id = 24716070 and dashboard_run_id = 1969501 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`=24716070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281802, 0.04159461346647092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, '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 = 24716628 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': 3249652, 'mtr_portfolio_id': 24716628, 'created_at': datetime.datetime(2025, 7, 8, 7, 46, 58), 'result': '0.034737307175583196', 'result_long': None, 'result_double': None}] Qualite : 0.034737307175583196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24716628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716628_08-07-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24716628 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_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, 'pht': 3726}}" where mtr_portfolio_id = 24716628 and dashboard_run_id = 1969501 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`=24716628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281803, 0.034737307175583196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, '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 = 24717173 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': 3249718, 'mtr_portfolio_id': 24717173, 'created_at': datetime.datetime(2025, 7, 8, 8, 2, 58), 'result': '0.05152290195866409', 'result_long': None, 'result_double': None}] Qualite : 0.05152290195866409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24717173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717173_08-07-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24717173 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_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, 'pht': 3726}}" where mtr_portfolio_id = 24717173 and dashboard_run_id = 1969501 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`=24717173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281804, 0.05152290195866409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, '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 = 24717751 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': 3249781, 'mtr_portfolio_id': 24717751, 'created_at': datetime.datetime(2025, 7, 8, 8, 16, 31), 'result': '0.030953575259441816', 'result_long': None, 'result_double': None}] Qualite : 0.030953575259441816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24717751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717751_08-07-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24717751 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_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, 'pht': 3726}}" where mtr_portfolio_id = 24717751 and dashboard_run_id = 1969501 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`=24717751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281805, 0.030953575259441816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, '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 = 24718421 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': 3249836, 'mtr_portfolio_id': 24718421, 'created_at': datetime.datetime(2025, 7, 8, 8, 32, 59), 'result': '0.0453973099380386', 'result_long': None, 'result_double': None}] Qualite : 0.0453973099380386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24718421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718421_08-07-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24718421 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_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, 'pht': 3726}}" where mtr_portfolio_id = 24718421 and dashboard_run_id = 1969501 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`=24718421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281806, 0.0453973099380386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, '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 = 24718960 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': 3249887, 'mtr_portfolio_id': 24718960, 'created_at': datetime.datetime(2025, 7, 8, 11, 0, 59), 'result': '0.09298034117503652', 'result_long': None, 'result_double': None}] Qualite : 0.09298034117503652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24718960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718960_08-07-2025_11_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24718960 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_P24718960_08-07-2025_11_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, 'pht': 3726}}" where mtr_portfolio_id = 24718960 and dashboard_run_id = 1969501 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`=24718960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281807, 0.09298034117503652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718960_08-07-2025_11_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, '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 = 24724113 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24724113 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24724113 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24724113 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24724113 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24724113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24724113_08-07-2025_11_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24724113 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_P24724113_08-07-2025_11_01_32.pdf'}" where mtr_portfolio_id = 24724113 and dashboard_run_id = 1969501 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 = 24724129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24724129 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24724129 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24724129 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24724129 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24724129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24724129_08-07-2025_11_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24724129 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_P24724129_08-07-2025_11_00_32.pdf'}" where mtr_portfolio_id = 24724129 and dashboard_run_id = 1969501 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 = 24719537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24719537 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24719537 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719537 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719537 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24719537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24719537_08-07-2025_10_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24719537 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_P24719537_08-07-2025_10_13_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24719613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719624, 'pht': 3726}}" where mtr_portfolio_id = 24719537 and dashboard_run_id = 1969501 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 = 24719541 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24719541 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24719541 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719541 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719541 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24719541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24719541_08-07-2025_10_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24719541 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_P24719541_08-07-2025_10_14_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719674, 'pht': 3726}}" where mtr_portfolio_id = 24719541 and dashboard_run_id = 1969501 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 = 24719545 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24719545 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24719545 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719545 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719545 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24719545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24719545_08-07-2025_10_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24719545 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_P24719545_08-07-2025_10_13_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719612, 'pht': 3726}}" where mtr_portfolio_id = 24719545 and dashboard_run_id = 1969501 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 = 24719549 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24719549 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24719549 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719549 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719549 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24719549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24719549_08-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24719549 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_P24719549_08-07-2025_10_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719567, 'pht': 3726}}" where mtr_portfolio_id = 24719549 and dashboard_run_id = 1969501 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 = 24720018 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': 3250123, 'mtr_portfolio_id': 24720018, 'created_at': datetime.datetime(2025, 7, 8, 10, 32, 59), 'result': '0.022558512357531067', 'result_long': None, 'result_double': None}] Qualite : 0.022558512357531067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24720018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24720018_08-07-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24720018 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_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, 'pht': 3726}}" where mtr_portfolio_id = 24720018 and dashboard_run_id = 1969501 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`=24720018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281815, 0.022558512357531067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, '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 = 24721716 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': 3250507, 'mtr_portfolio_id': 24721716, 'created_at': datetime.datetime(2025, 7, 8, 10, 46, 58), 'result': '0.05586964368489518', 'result_long': None, 'result_double': None}] Qualite : 0.05586964368489518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24721716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24721716_08-07-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24721716 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_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, 'pht': 3726}}" where mtr_portfolio_id = 24721716 and dashboard_run_id = 1969501 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`=24721716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281816, 0.05586964368489518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, '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 = 24723307 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': 3250806, 'mtr_portfolio_id': 24723307, 'created_at': datetime.datetime(2025, 7, 8, 11, 3), 'result': '0.023033487783108653', 'result_long': None, 'result_double': None}] Qualite : 0.023033487783108653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24723307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24723307 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_P24723307_08-07-2025_11_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, 'pht': 3726}}" where mtr_portfolio_id = 24723307 and dashboard_run_id = 1969501 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`=24723307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281817, 0.023033487783108653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_11_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, '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 = 24724280 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': 3251007, 'mtr_portfolio_id': 24724280, 'created_at': datetime.datetime(2025, 7, 8, 11, 16, 31), 'result': '0.05044002083092085', 'result_long': None, 'result_double': None}] Qualite : 0.05044002083092085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24724280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24724280_08-07-2025_11_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24724280 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_P24724280_08-07-2025_11_16_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24724334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24724335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24724336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24724337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24724338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24724339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24724340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24724341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24724342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24724343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24724344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24724345, 'pht': 3726}}" where mtr_portfolio_id = 24724280 and dashboard_run_id = 1969501 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`=24724280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281818, 0.05044002083092085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24724280_08-07-2025_11_16_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24724334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24724335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24724336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24724337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24724338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24724339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24724340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24724341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24724342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24724343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24724344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24724345, '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 = 24725528 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': 3251107, 'mtr_portfolio_id': 24725528, 'created_at': datetime.datetime(2025, 7, 8, 11, 33), 'result': '0.040017459349721486', 'result_long': None, 'result_double': None}] Qualite : 0.040017459349721486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24725528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24725528_08-07-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24725528 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_P24725528_08-07-2025_11_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24725558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24725559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24725560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24725561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24725562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24725563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24725564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24725565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24725566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24725567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24725568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24725569, 'pht': 3726}}" where mtr_portfolio_id = 24725528 and dashboard_run_id = 1969501 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`=24725528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281819, 0.040017459349721486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24725528_08-07-2025_11_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24725558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24725559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24725560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24725561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24725562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24725563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24725564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24725565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24725566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24725567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24725568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24725569, '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 = 24726606 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': 3251198, 'mtr_portfolio_id': 24726606, 'created_at': datetime.datetime(2025, 7, 8, 11, 40, 30), 'result': '0.02272134895932109', 'result_long': None, 'result_double': None}] Qualite : 0.02272134895932109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24726606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24726606_08-07-2025_11_40_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24726606 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_P24726606_08-07-2025_11_40_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24726663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24726664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24726665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24726666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24726667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24726668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24726669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24726670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24726671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24726672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24726673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24726674, 'pht': 3726}}" where mtr_portfolio_id = 24726606 and dashboard_run_id = 1969501 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`=24726606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12281820, 0.02272134895932109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24726606_08-07-2025_11_40_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24726663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24726664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24726665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24726666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24726667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24726668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24726669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24726670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24726671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24726672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24726673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24726674, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055,24705431,24706018,24706657,24707037,24707471,24707886,24708456,24708864,24709305,24709706,24710277,24710641,24711106,24711540,24712059,24712470,24712908,24713368,24713857,24714245,24714691,24715147,24716070,24716628,24717173,24717751,24718421,24718960,24724113,24724129,24719537,24719541,24719545,24719549,24720018,24721716,24723307,24724280,24725528,24726606) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,), (1371111008,), (1371111012,), (1371111015,), (1371111019,), (1371111022,), (1371111024,), (1371111038,), (1371111044,), (1371111048,), (1371111055,), (1371111061,), (1371111062,), (1371111078,), (1371111083,), (1371111087,), (1371111089,), (1371111096,), (1371111099,), (1371111110,), (1371111112,), (1371111115,), (1371111118,), (1371111122,), (1371111126,), (1371111135,), (1371111138,), (1371111143,), (1371111148,), (1371111152,), (1371111155,), (1371111176,), (1371111179,), (1371111181,), (1371111184,), (1371111186,), (1371111190,), (1371111214,), (1371111218,), (1371111224,), (1371111229,), (1371111233,), (1371111236,), (1371111256,), (1371111261,), (1371111265,), (1371111269,), (1371111271,), (1371111272,), (1371111312,), (1371111316,), (1371111321,), (1371111331,), (1371111337,), (1371111342,), (1371111357,), (1371111364,), (1371111370,), (1371111381,), (1371111385,), (1371111386,), (1371111398,), (1371111403,), (1371111406,), (1371111408,), (1371111410,), (1371111411,), (1371111436,), (1371111441,), (1371111443,), (1371111446,), (1371111449,), (1371111450,), (1371111800,), (1371111869,), (1371111935,), (1371112005,), (1371112071,), (1371112141,), (1371113397,), (1371113435,), (1371113473,), (1371113512,), (1371113544,), (1371113576,), (1371113821,), (1371113891,), (1371113964,), (1371114061,), (1371114131,), (1371114262,), (1371114298,), (1371114422,), (1371114493,), (1371114565,), (1371114632,), (1371114816,), (1371114822,), (1371114855,), (1371114866,), (1371114894,), (1371114914,), (1371115019,), (1371115052,), (1371115065,), (1371115067,), (1371115072,), (1371115106,), (1371115167,), (1371115171,), (1371115176,), (1371115180,), (1371115183,), (1371115184,), (1371115208,), (1371115212,), (1371115216,), (1371115218,), (1371115221,), (1371115223,), (1371115244,), (1371115246,), (1371115248,), (1371115250,), (1371115252,), (1371115254,), (1371115289,), (1371115292,), (1371115294,), (1371115295,), (1371115296,), (1371115299,), (1371115313,), (1371115315,), (1371115318,), (1371115320,), (1371115324,), (1371115326,), (1371115343,), (1371115344,), (1371115345,), (1371115347,), (1371115348,), (1371115350,), (1371115371,), (1371115375,), (1371115378,), (1371115381,), (1371115384,), (1371115385,), (1371115410,), (1371115418,), (1371115422,), (1371115426,), (1371115428,), (1371115429,), (1371115459,), (1371115462,), (1371115465,), (1371115468,), (1371115470,), (1371115472,), (1371115491,), (1371115494,), (1371115496,), (1371115498,), (1371115500,), (1371115503,), (1371115525,), (1371115528,), (1371115531,), (1371115538,), (1371115540,), (1371115542,), (1371115559,), (1371115560,), (1371115562,), (1371115563,), (1371115565,), (1371115568,), (1371115585,), (1371115587,), (1371115597,), (1371115602,), (1371115607,), (1371115609,), (1371115616,), (1371115618,), (1371115620,), (1371115623,), (1371115624,), (1371115628,), (1371115643,), (1371115645,), (1371115648,), (1371115650,), (1371115652,), (1371115653,), (1371115661,), (1371115665,), (1371115667,), (1371115671,), (1371115674,), (1371115676,), (1371115704,), (1371115708,), (1371115712,), (1371115714,), (1371115716,), (1371115717,), (1371115727,), (1371115730,), (1371115734,), (1371115736,), (1371115738,), (1371115739,), (1371115747,), (1371115752,), (1371115755,), (1371115758,), (1371115761,), (1371115762,), (1371115772,), (1371115775,), (1371115778,), (1371115780,), (1371115783,), (1371115784,), (1371115799,), (1371115803,), (1371115806,), (1371115808,), (1371115811,), (1371115813,), (1371115819,), (1371115821,), (1371115823,), (1371115825,), (1371115828,), (1371115830,), (1371115846,), (1371115848,), (1371115851,), (1371115853,), (1371115856,), (1371115864,), (1371115878,), (1371115880,), (1371115883,), (1371115885,), (1371115888,), (1371115890,), (1371115901,), (1371115903,), (1371115906,), (1371115908,), (1371115910,), (1371115911,), (1371115925,), (1371115928,), (1371115931,), (1371115934,), (1371115938,), (1371115947,), (1371115958,), (1371115961,), (1371115964,), (1371115966,), (1371115970,), (1371115973,), (1371115989,), (1371115993,), (1371115996,), (1371116000,), (1371116003,), (1371116005,), (1371116017,), (1371116025,), (1371116029,), (1371116032,), (1371116034,), (1371116035,), (1371116053,), (1371116057,), (1371116061,), (1371116063,), (1371116065,), (1371116066,), (1371116077,), (1371116082,), (1371116087,), (1371116091,), (1371116093,), (1371116094,), (1371116101,), (1371116105,), (1371116109,), (1371116113,), (1371116115,), (1371116117,), (1371116129,), (1371116132,), (1371116134,), (1371116137,), (1371116140,), (1371116142,), (1371116160,), (1371116163,), (1371116165,), (1371116169,), (1371116172,), (1371116174,), (1371116193,), (1371116198,), (1371116200,), (1371116203,), (1371116205,), (1371116206,), (1371116212,), (1371116216,), (1371116220,), (1371116225,), (1371116228,), (1371116229,), (1371116240,), (1371116244,), (1371116248,), (1371116251,), (1371116253,), (1371116254,), (1371116286,), (1371116290,), (1371116293,), (1371116296,), (1371116298,), (1371116299,), (1371116305,), (1371116308,), (1371116319,), (1371116323,), (1371116325,), (1371116326,), (1371116342,), (1371116346,), (1371116349,), (1371116352,), (1371116354,), (1371116356,), (1371116366,), (1371116371,), (1371116373,), (1371116375,), (1371116377,), (1371116378,), (1371116405,), (1371116410,), (1371116414,), (1371116417,), (1371116419,), (1371116421,), (1371116437,), (1371116444,), (1371116450,), (1371116453,), (1371116455,), (1371116456,), (1371116464,), (1371116468,), (1371116471,), (1371116474,), (1371116476,), (1371116477,), (1371116487,), (1371116490,), (1371116493,), (1371116496,), (1371116498,), (1371116499,), (1371116520,), (1371116525,), (1371116528,), (1371116531,), (1371116533,), (1371116534,), (1371116551,), (1371116557,), (1371116560,), (1371116563,), (1371116565,), (1371116566,), (1371116596,), (1371116600,), (1371116603,), (1371116607,), (1371116609,), (1371116610,), (1371116624,), (1371116632,), (1371116634,), (1371116636,), (1371116638,), (1371116640,), (1371116653,), (1371116656,), (1371116660,), (1371116663,), (1371116665,), (1371116666,), (1371116677,), (1371116681,), (1371116683,), (1371116685,), (1371116688,), (1371116690,), (1371116697,), (1371116699,), (1371116702,), (1371116704,), (1371116706,), (1371116709,), (1371116717,), (1371116721,), (1371116724,), (1371116726,), (1371116729,), (1371116731,), (1371116747,), (1371116750,), (1371116753,), (1371116755,), (1371116758,), (1371116760,), (1371116835,), (1371116878,), (1371116915,), (1371116949,), (1371116983,), (1371117016,), (1371117526,), (1371117562,), (1371117600,), (1371117638,), (1371117676,), (1371117710,), (1371117976,), (1371118016,), (1371118052,), (1371118089,), (1371118127,), (1371118432,), (1371118475,), (1371118510,), (1371118545,), (1371118582,), (1371118633,), (1371119054,), (1371119090,), (1371119148,), (1371119219,), (1371119266,), (1371119318,), (1371119429,), (1371119433,), (1371119438,), (1371119442,), (1371119448,), (1371119481,), (1371119661,), (1371119687,), (1371119690,), (1371119724,), (1371119732,), (1371119734,), (1371119757,), (1371119759,), (1371119761,), (1371119765,), (1371119768,), (1371119771,), (1371119785,), (1371119789,), (1371119794,), (1371119798,), (1371119801,), (1371119802,), (1371119822,), (1371119829,), (1371119835,), (1371119839,), (1371119843,), (1371119844,), (1371119865,), (1371119869,), (1371119872,), (1371119875,), (1371119877,), (1371119880,), (1371119898,), (1371119900,), (1371119902,), (1371119904,), (1371119907,), (1371119910,), (1371119961,), (1371119965,), (1371119967,), (1371119970,), (1371119974,), (1371119975,), (1371119992,), (1371119996,), (1371119999,), (1371120001,), (1371120004,), (1371120006,), (1371120031,), (1371120034,), (1371120037,), (1371120040,), (1371120044,), (1371120047,), (1371120077,), (1371120080,), (1371120082,), (1371120084,), (1371120087,), (1371120089,), (1371120124,), (1371120128,), (1371120132,), (1371120133,), (1371120141,), (1371120142,), (1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,), (1371120558,), (1371120562,), (1371120563,), (1371120565,), (1371120568,), (1371120570,), (1371120598,), (1371120600,), (1371120602,), (1371120605,), (1371120608,), (1371120610,), (1371120631,), (1371120633,), (1371120634,), (1371120636,), (1371120638,), (1371120641,), (1371120659,), (1371120664,), (1371120665,), (1371120667,), (1371120669,), (1371120671,), (1371120689,), (1371120693,), (1371120697,), (1371120701,), (1371120704,), (1371120706,), (1371120760,), (1371120762,), (1371120765,), (1371120767,), (1371120769,), (1371120771,), (1371120803,), (1371120807,), (1371120810,), (1371120811,), (1371120812,), (1371120813,), (1371120827,), (1371120832,), (1371120835,), (1371120845,), (1371120855,), (1371120859,), (1371120885,), (1371120895,), (1371120897,), (1371120899,), (1371120900,), (1371120901,), (1371120910,), (1371120913,), (1371120915,), (1371120917,), (1371120919,), (1371120922,), (1371120949,), (1371120958,), (1371120961,), (1371120964,), (1371120969,), (1371120972,), (1371120991,), (1371120996,), (1371120999,), (1371121002,), (1371121004,), (1371121006,), (1371121028,), (1371121032,), (1371121035,), (1371121037,), (1371121039,), (1371121041,), (1371121064,), (1371121070,), (1371121076,), (1371121081,), (1371121086,), (1371121087,), (1371121097,), (1371121101,), (1371121106,), (1371121109,), (1371121111,), (1371121112,), (1371121153,), (1371121158,), (1371121163,), (1371121166,), (1371121168,), (1371121169,), (1371121189,), (1371121192,), (1371121199,), (1371121202,), (1371121206,), (1371121208,), (1371121226,), (1371121232,), (1371121238,), (1371121241,), (1371121245,), (1371121247,), (1371121258,), (1371121261,), (1371121266,), (1371121269,), (1371121273,), (1371121276,), (1371121284,), (1371121286,), (1371121289,), (1371121292,), (1371121296,), (1371121300,), (1371121322,), (1371121325,), (1371121328,), (1371121331,), (1371121333,), (1371121335,), (1371121351,), (1371121355,), (1371121360,), (1371121364,), (1371121367,), (1371121369,), (1371121387,), (1371121392,), (1371121397,), (1371121402,), (1371121404,), (1371121405,), (1371121431,), (1371121437,), (1371121441,), (1371121444,), (1371121446,), (1371121447,), (1371121464,), (1371121471,), (1371121475,), (1371121479,), (1371121482,), (1371121484,), (1371121520,), (1371121525,), (1371121527,), (1371121529,), (1371121531,), (1371121533,), (1371121544,), (1371121549,), (1371121554,), (1371121558,), (1371121561,), (1371121562,), (1371121576,), (1371121580,), (1371121583,), (1371121586,), (1371121589,), (1371121593,), (1371121614,), (1371121621,), (1371121625,), (1371121630,), (1371121633,), (1371121634,), (1371121638,), (1371121641,), (1371121643,), (1371121646,), (1371121651,), (1371121654,), (1371121676,), (1371121680,), (1371121685,), (1371121689,), (1371121693,), (1371121696,), (1371121708,), (1371121711,), (1371121713,), (1371121716,), (1371121721,), (1371121725,), (1371121745,), (1371121751,), (1371121756,), (1371121759,), (1371121762,), (1371121764,), (1371122659,), (1371122729,), (1371122796,), (1371122863,), (1371122949,), (1371123040,), (1371123314,), (1371123426,), (1371123487,), (1371123552,), (1371123618,), (1371123816,), (1371123849,), (1371123882,), (1371123915,), (1371123948,), (1371123981,), (1371124176,), (1371124229,), (1371124263,), (1371124293,), (1371124324,), (1371124344,), (1371124452,), (1371124487,), (1371124520,), (1371124552,), (1371124586,), (1371124616,), (1371124724,), (1371124729,), (1371124761,), (1371124782,), (1371124786,), (1371124788,), (1371124819,), (1371124822,), (1371124826,), (1371124828,), (1371124830,), (1371124834,), (1371124865,), (1371124870,), (1371124874,), (1371124877,), (1371124880,), (1371124882,), (1371124902,), (1371124909,), (1371124915,), (1371124918,), (1371124921,), (1371124923,), (1371124933,), (1371124939,), (1371124944,), (1371124950,), (1371124967,), (1371124970,), (1371124995,), (1371124999,), (1371125003,), (1371125008,), (1371125012,), (1371125016,), (1371125037,), (1371125043,), (1371125048,), (1371125050,), (1371125053,), (1371125054,), (1371125115,), (1371125122,), (1371125127,), (1371125131,), (1371125134,), (1371125136,), (1371125152,), (1371125158,), (1371125163,), (1371125170,), (1371125171,), (1371125173,), (1371125188,), (1371125194,), (1371125200,), (1371125203,), (1371125207,), (1371125208,), (1371125226,), (1371125229,), (1371125233,), (1371125236,), (1371125240,), (1371125243,), (1371125267,), (1371125272,), (1371125277,), (1371125280,), (1371125285,), (1371125289,), (1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,), (1371125777,), (1371125788,), (1371125795,), (1371125798,), (1371125801,), (1371125804,), (1371125842,), (1371125849,), (1371125854,), (1371125857,), (1371125859,), (1371125860,), (1371125872,), (1371125878,), (1371125884,), (1371125887,), (1371125891,), (1371125892,), (1371125925,), (1371125929,), (1371125933,), (1371125937,), (1371125940,), (1371125943,), (1371125974,), (1371125984,), (1371125989,), (1371125994,), (1371125997,), (1371125999,), (1371126027,), (1371126034,), (1371126040,), (1371126046,), (1371126050,), (1371126052,), (1371126066,), (1371126080,), (1371126084,), (1371126088,), (1371126094,), (1371126098,), (1371126171,), (1371126176,), (1371126180,), (1371126184,), (1371126187,), (1371126189,), (1371126208,), (1371126216,), (1371126221,), (1371126225,), (1371126229,), (1371126231,), (1371126251,), (1371126255,), (1371126259,), (1371126262,), (1371126266,), (1371126268,), (1371126283,), (1371126289,), (1371126296,), (1371126299,), (1371126302,), (1371126304,), (1371126328,), (1371126332,), (1371126335,), (1371126340,), (1371126344,), (1371126346,), (1371126366,), (1371126372,), (1371126377,), (1371126380,), (1371126384,), (1371126388,), (1371126406,), (1371126410,), (1371126416,), (1371126420,), (1371126424,), (1371126428,), (1371126455,), (1371126460,), (1371126463,), (1371126469,), (1371126473,), (1371126475,), (1371126508,), (1371126514,), (1371126520,), (1371126523,), (1371126526,), (1371126528,), (1371126552,), (1371126556,), (1371126561,), (1371126565,), (1371126569,), (1371126571,), (1371126636,), (1371126644,), (1371126649,), (1371126653,), (1371126656,), (1371126658,), (1371126676,), (1371126682,), (1371126688,), (1371126692,), (1371126697,), (1371126699,), (1371126718,), (1371126723,), (1371126727,), (1371126731,), (1371126735,), (1371126739,), (1371126761,), (1371126767,), (1371126773,), (1371126776,), (1371126779,), (1371126781,), (1371126798,), (1371126802,), (1371126806,), (1371126809,), (1371126814,), (1371126818,), (1371126842,), (1371126848,), (1371126861,), (1371126863,), (1371126865,), (1371126867,), (1371126886,), (1371126891,), (1371126898,), (1371126902,), (1371126905,), (1371126907,), (1371126930,), (1371126938,), (1371126945,), (1371126949,), (1371126953,), (1371126954,), (1371126972,), (1371126976,), (1371126981,), (1371126986,), (1371126989,), (1371126994,), (1371127011,), (1371127016,), (1371127021,), (1371127024,), (1371127029,), (1371127031,), (1371127057,), (1371127061,), (1371127065,), (1371127068,), (1371127072,), (1371127075,), (1371127097,), (1371127103,), (1371127107,), (1371127109,), (1371127111,), (1371127114,), (1371127135,), (1371127140,), (1371127144,), (1371127147,), (1371127152,), (1371127155,), (1371127167,), (1371127178,), (1371127182,), (1371127187,), (1371127192,), (1371127196,), (1371127217,), (1371127220,), (1371127223,), (1371127229,), (1371127234,), (1371127238,), (1371127248,), (1371127253,), (1371127256,), (1371127260,), (1371127264,), (1371127267,), (1371127285,), (1371127290,), (1371127295,), (1371127300,), (1371127319,), (1371127352,), (1371127554,), (1371127588,), (1371127619,), (1371127657,), (1371127690,), (1371127722,), (1371128590,), (1371128657,), (1371128738,), (1371128799,), (1371128866,), (1371128938,), (1371129132,), (1371129168,), (1371129212,), (1371129248,), (1371129284,), (1371129576,), (1371129597,), (1371129603,), (1371129630,), (1371129636,), (1371129640,), (1371129659,), (1371129664,), (1371129668,), (1371129671,), (1371129674,), (1371129678,), (1371129707,), (1371129711,), (1371129715,), (1371129720,), (1371129724,), (1371129728,), (1371129742,), (1371129746,), (1371129750,), (1371129754,), (1371129758,), (1371129762,), (1371129784,), (1371129792,), (1371129797,), (1371129800,), (1371129805,), (1371129808,), (1371129824,), (1371129828,), (1371129830,), (1371129832,), (1371129835,), (1371129838,), (1371129859,), (1371129862,), (1371129864,), (1371129866,), (1371129869,), (1371129870,), (1371129885,), (1371129889,), (1371129892,), (1371129895,), (1371129898,), (1371129902,), (1371129922,), (1371129927,), (1371129933,), (1371129936,), (1371129938,), (1371129940,), (1371129962,), (1371129967,), (1371129972,), (1371129977,), (1371129982,), (1371129984,), (1371130007,), (1371130013,), (1371130019,), (1371130022,), (1371130025,), (1371130028,), (1371130042,), (1371130049,), (1371130055,), (1371130059,), (1371130063,), (1371130065,), (1371130080,), (1371130085,), (1371130091,), (1371130094,), (1371130095,), (1371130096,), (1371130105,), (1371130110,), (1371130115,), (1371130119,), (1371130124,), (1371130126,), (1371130140,), (1371130145,), (1371130148,), (1371130151,), (1371130153,), (1371130155,), (1371130176,), (1371130180,), (1371130185,), (1371130188,), (1371130191,), (1371130193,), (1371130209,), (1371130216,), (1371130223,), (1371130228,), (1371130233,), (1371130235,), (1371130245,), (1371130248,), (1371130253,), (1371130258,), (1371130262,), (1371130265,), (1371130279,), (1371130285,), (1371130291,), (1371130293,), (1371130295,), (1371130296,), (1371130311,), (1371130318,), (1371130323,), (1371130326,), (1371130331,), (1371130332,), (1371130348,), (1371130353,), (1371130357,), (1371130361,), (1371130371,), (1371130373,), (1371130386,), (1371130394,), (1371130399,), (1371130403,), (1371130406,), (1371130408,), (1371130422,), (1371130429,), (1371130435,), (1371130439,), (1371130444,), (1371130446,), (1371130462,), (1371130465,), (1371130468,), (1371130473,), (1371130478,), (1371130482,), (1371130495,), (1371130500,), (1371130505,), (1371130508,), (1371130513,), (1371130515,), (1371130537,), (1371130539,), (1371130541,), (1371130545,), (1371130549,), (1371130552,), (1371130565,), (1371130570,), (1371130573,), (1371130576,), (1371130578,), (1371130579,), (1371130596,), (1371130602,), (1371130606,), (1371130611,), (1371130616,), (1371130620,), (1371130631,), (1371130643,), (1371130652,), (1371130655,), (1371130658,), (1371130659,), (1371130690,), (1371130696,), (1371130700,), (1371130710,), (1371130718,), (1371130719,), (1371130739,), (1371130751,), (1371130753,), (1371130757,), (1371130760,), (1371130763,), (1371130775,), (1371130778,), (1371130783,), (1371130786,), (1371130788,), (1371130791,), (1371130802,), (1371130814,), (1371130819,), (1371130823,), (1371130827,), (1371130828,), (1371130843,), (1371130849,), (1371130851,), (1371130853,), (1371130856,), (1371130858,), (1371130874,), (1371130878,), (1371130882,), (1371130886,), (1371130891,), (1371130893,), (1371130916,), (1371130921,), (1371130925,), (1371130927,), (1371130930,), (1371130932,), (1371130950,), (1371130954,), (1371130958,), (1371130962,), (1371130965,), (1371130966,), (1371130973,), (1371130977,), (1371130981,), (1371130985,), (1371130991,), (1371130994,), (1371131007,), (1371131011,), (1371131014,), (1371131018,), (1371131022,), (1371131025,), (1371131050,), (1371131052,), (1371131054,), (1371131058,), (1371131061,), (1371131064,), (1371131084,), (1371131088,), (1371131094,), (1371131096,), (1371131098,), (1371131105,), (1371131126,), (1371131131,), (1371131137,), (1371131141,), (1371131146,), (1371131147,), (1371131173,), (1371131179,), (1371131183,), (1371131186,), (1371131190,), (1371131192,), (1371131208,), (1371131212,), (1371131216,), (1371131218,), (1371131222,), (1371131224,), (1371131248,), (1371131252,), (1371131266,), (1371131275,), (1371131280,), (1371131283,), (1371131294,), (1371131296,), (1371131299,), (1371131302,), (1371131307,), (1371131309,), (1371131334,), (1371131342,), (1371131345,), (1371131348,), (1371131351,), (1371131353,), (1371131372,), (1371131376,), (1371131381,), (1371131384,), (1371131387,), (1371131389,), (1371131410,), (1371131414,), (1371131418,), (1371131421,), (1371131423,), (1371131425,), (1371131456,), (1371131459,), (1371131462,), (1371131465,), (1371131467,), (1371131470,), (1371131492,), (1371131497,), (1371131499,), (1371131500,), (1371131501,), (1371131502,), (1371131518,), (1371131522,), (1371131525,), (1371131527,), (1371131530,), (1371131531,), (1371131545,), (1371131559,), (1371131567,), (1371131569,), (1371131570,), (1371131572,), (1371131598,), (1371131601,), (1371131604,), (1371131607,), (1371131611,), (1371131612,), (1371131628,), (1371131632,), (1371131633,), (1371131634,), (1371131636,), (1371131638,), (1371131663,), (1371131668,), (1371131670,), (1371131672,), (1371131705,), (1371131736,), (1371131946,), (1371131985,), (1371132026,), (1371132060,), (1371132094,), (1371132126,), (1371132798,), (1371132805,), (1371132829,), (1371132863,), (1371132898,), (1371132929,), (1371133276,), (1371133328,), (1371133371,), (1371133409,), (1371133471,), (1371133702,), (1371133735,), (1371133773,), (1371133805,), (1371133835,), (1371133862,), (1371133882,), (1371133886,), (1371133888,), (1371133894,), (1371133933,), (1371133962,), (1371134141,), (1371134144,), (1371134146,), (1371134153,), (1371134187,), (1371134219,), (1371134305,), (1371134309,), (1371134312,), (1371134313,), (1371134315,), (1371134317,), (1371134335,), (1371134340,), (1371134343,), (1371134346,), (1371134351,), (1371134353,), (1371134368,), (1371134370,), (1371134373,), (1371134376,), (1371134380,), (1371134382,), (1371134404,), (1371134407,), (1371134411,), (1371134415,), (1371134418,), (1371134421,), (1371134453,), (1371134457,), (1371134462,), (1371134466,), (1371134470,), (1371134476,), (1371134496,), (1371134505,), (1371134512,), (1371134515,), (1371134521,), (1371134523,), (1371134554,), (1371134560,), (1371134564,), (1371134567,), (1371134572,), (1371134574,), (1371134598,), (1371134609,), (1371134615,), (1371134618,), (1371134621,), (1371134623,), (1371134654,), (1371134658,), (1371134661,), (1371134663,), (1371134667,), (1371134671,), (1371134684,), (1371134690,), (1371134693,), (1371134698,), (1371134703,), (1371134706,), (1371134722,), (1371134725,), (1371134729,), (1371134732,), (1371134739,), (1371134743,), (1371134757,), (1371134766,), (1371134770,), (1371134776,), (1371134788,), (1371134791,), (1371134823,), (1371134826,), (1371134828,), (1371134831,), (1371134835,), (1371134837,), (1371134852,), (1371134860,), (1371134871,), (1371134875,), (1371134879,), (1371134882,), (1371134910,), (1371134917,), (1371134923,), (1371134928,), (1371134934,), (1371134937,), (1371134956,), (1371134964,), (1371134968,), (1371134972,), (1371134975,), (1371134977,), (1371134999,), (1371135003,), (1371135008,), (1371135012,), (1371135015,), (1371135019,), (1371135037,), (1371135041,), (1371135045,), (1371135048,), (1371135052,), (1371135056,), (1371135088,), (1371135092,), (1371135096,), (1371135099,), (1371135102,), (1371135104,), (1371135123,), (1371135128,), (1371135133,), (1371135136,), (1371135141,), (1371135143,), (1371135168,), (1371135172,), (1371135176,), (1371135180,), (1371135183,), (1371135188,), (1371135215,), (1371135226,), (1371135233,), (1371135237,), (1371135240,), (1371135241,), (1371135258,), (1371135264,), (1371135270,), (1371135274,), (1371135278,), (1371135281,), (1371135293,), (1371135307,), (1371135311,), (1371135315,), (1371135318,), (1371135320,), (1371135342,), (1371135348,), (1371135353,), (1371135360,), (1371135365,), (1371135368,), (1371135376,), (1371135382,), (1371135387,), (1371135391,), (1371135395,), (1371135398,), (1371135422,), (1371135428,), (1371135433,), (1371135438,), (1371135445,), (1371135449,), (1371135467,), (1371135475,), (1371135482,), (1371135485,), (1371135489,), (1371135492,), (1371135523,), (1371135535,), (1371135542,), (1371135545,), (1371135550,), (1371135558,), (1371135575,), (1371135578,), (1371135582,), (1371135588,), (1371135592,), (1371135595,), (1371135616,), (1371135620,), (1371135623,), (1371135629,), (1371135634,), (1371135638,), (1371135657,), (1371135667,), (1371135671,), (1371135673,), (1371135677,), (1371135680,), (1371135697,), (1371135701,), (1371135704,), (1371135708,), (1371135712,), (1371135716,), (1371135734,), (1371135740,), (1371135752,), (1371135755,), (1371135757,), (1371135758,), (1371135788,), (1371135793,), (1371135797,), (1371135799,), (1371135800,), (1371135801,), (1371135812,), (1371135817,), (1371135821,), (1371135828,), (1371135832,), (1371135836,), (1371135864,), (1371135868,), (1371135874,), (1371135877,), (1371135880,), (1371135882,), (1371135899,), (1371135907,), (1371135912,), (1371135914,), (1371135916,), (1371135917,), (1371135944,), (1371135950,), (1371135954,), (1371135958,), (1371135961,), (1371135962,), (1371135979,), (1371135989,), (1371135999,), (1371136005,), (1371136007,), (1371136008,), (1371136030,), (1371136034,), (1371136035,), (1371136036,), (1371136039,), (1371136040,), (1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,), (1371136558,), (1371136602,), (1371136638,), (1371136670,), (1371136708,), (1371136740,), (1371137589,), (1371137653,), (1371137718,), (1371137751,), (1371137810,), (1371137870,), (1371138114,), (1371138155,), (1371138188,), (1371138221,), (1371138255,), (1371138680,), (1371138712,), (1371138780,), (1371138856,), (1371138973,), (1371139039,), (1371139136,), (1371139143,), (1371139176,), (1371139202,), (1371139243,), (1371139275,), (1371139427,), (1371139438,), (1371139455,), (1371139488,), (1371139519,), (1371139529,), (1371139608,), (1371139633,), (1371139638,), (1371139642,), (1371139646,), (1371139648,), (1371139692,), (1371139704,), (1371139712,), (1371139719,), (1371139722,), (1371139724,), (1371139738,), (1371139749,), (1371139789,), (1371139807,), (1371139837,), (1371139848,), (1371139856,), (1371139860,), (1371139862,), (1371139865,), (1371139869,), (1371139871,), (1371139904,), (1371139908,), (1371139911,), (1371139917,), (1371139921,), (1371139926,), (1371139947,), (1371139952,), (1371139956,), (1371139961,), (1371139964,), (1371139967,), (1371140000,), (1371140009,), (1371140019,), (1371140027,), (1371140055,), (1371140065,), (1371140184,), (1371140216,), (1371140262,), (1371140292,), (1371140295,), (1371140298,), (1371140311,), (1371140317,), (1371140321,), (1371140325,), (1371140328,), (1371140330,), (1371140376,), (1371140413,), (1371140475,), (1371140520,), (1371140562,), (1371140600,), (1371140801,), (1371140804,), (1371140810,), (1371140814,), (1371140821,), (1371140827,), (1371140844,), (1371140848,), (1371140851,), (1371140860,), (1371140866,), (1371140871,), (1371140906,), (1371140911,), (1371140915,), (1371140922,), (1371140927,), (1371140930,), (1371140947,), (1371140951,), (1371140955,), (1371140959,), (1371140964,), (1371140974,), (1371140981,), (1371140986,), (1371140990,), (1371140995,), (1371141001,), (1371141009,), (1371141123,), (1371141130,), (1371141135,), (1371141142,), (1371141148,), (1371141152,), (1371141183,), (1371141187,), (1371141192,), (1371141196,), (1371141200,), (1371141202,), (1371141219,), (1371141224,), (1371141228,), (1371141233,), (1371141237,), (1371141243,), (1371141259,), (1371141276,), (1371141280,), (1371141285,), (1371141290,), (1371141294,), (1371141306,), (1371141310,), (1371141311,), (1371141315,), (1371141330,), (1371141337,), (1371141349,), (1371141365,), (1371141371,), (1371141374,), (1371141379,), (1371141382,), (1371141395,), (1371141398,), (1371141403,), (1371141407,), (1371141420,), (1371141425,), (1371141441,), (1371141444,), (1371141449,), (1371141452,), (1371141458,), (1371141462,), (1371141473,), (1371141476,), (1371141479,), (1371141484,), (1371141487,), (1371141492,), (1371141507,), (1371141513,), (1371141516,), (1371141520,), (1371141525,), (1371141529,), (1371141548,), (1371141552,), (1371141557,), (1371141561,), (1371141567,), (1371141570,), (1371141595,), (1371141600,), (1371141604,), (1371141607,), (1371141610,), (1371141613,), (1371141644,), (1371141649,), (1371141654,), (1371141659,), (1371141664,), (1371141666,), (1371141676,), (1371141682,), (1371141689,), (1371141693,), (1371141697,), (1371141701,), (1371141709,), (1371141714,), (1371141719,), (1371141722,), (1371141726,), (1371141730,), (1371141744,), (1371141749,), (1371141753,), (1371141759,), (1371141763,), (1371141767,), (1371141780,), (1371141783,), (1371141786,), (1371141789,), (1371141793,), (1371141797,), (1371141807,), (1371141810,), (1371141815,), (1371141819,), (1371141827,), (1371141834,), (1371141886,), (1371141896,), (1371141898,), (1371141905,), (1371141909,), (1371141912,), (1371141917,), (1371141923,), (1371141927,), (1371141932,), (1371141937,), (1371141942,), (1371141954,), (1371141964,), (1371141971,), (1371141975,), (1371141979,), (1371141982,), (1371142007,), (1371142011,), (1371142014,), (1371142021,), (1371142028,), (1371142031,), (1371142049,), (1371142054,), (1371142058,), (1371142061,), (1371142064,), (1371142067,), (1371142097,), (1371142103,), (1371142107,), (1371142111,), (1371142114,), (1371142117,), (1371142138,), (1371142144,), (1371142150,), (1371142154,), (1371142159,), (1371142161,), (1371142170,), (1371142175,), (1371142180,), (1371142184,), (1371142192,), (1371142199,), (1371142219,), (1371142222,), (1371142225,), (1371142228,), (1371142235,), (1371142239,), (1371142258,), (1371142261,), (1371142263,), (1371142266,), (1371142277,), (1371142285,), (1371142303,), (1371142305,), (1371142309,), (1371142312,), (1371142316,), (1371142318,), (1371142328,), (1371142333,), (1371142338,), (1371142345,), (1371142352,), (1371142358,), (1371142372,), (1371142376,), (1371142381,), (1371142385,), (1371142390,), (1371142393,), (1371142420,), (1371142426,), (1371142429,), (1371142432,), (1371142438,), (1371142441,), (1371142464,), (1371142470,), (1371142485,), (1371142490,), (1371142496,), (1371142500,), (1371142513,), (1371142518,), (1371142523,), (1371142529,), (1371142533,), (1371142537,), (1371142567,), (1371142585,), (1371142614,), (1371142628,), (1371142638,), (1371142642,), (1371142712,), (1371142714,), (1371142718,), (1371142721,), (1371142728,), (1371142732,), (1371142755,), (1371142763,), (1371142766,), (1371142771,), (1371142777,), (1371142780,), (1371142801,), (1371142804,), (1371142808,), (1371142811,), (1371142814,), (1371142817,), (1371142967,), (1371143002,), (1371143033,), (1371143064,), (1371143100,), (1371143132,), (1371143420,), (1371143424,), (1371143437,), (1371143442,), (1371143450,), (1371143453,), (1371143575,), (1371143637,), (1371143698,), (1371143761,), (1371143825,), (1371144071,), (1371144131,), (1371144215,), (1371144306,), (1371144406,), (1371144473,), (1371144722,), (1371144810,), (1371144872,), (1371144938,), (1371145025,), (1371145087,), (1371145273,), (1371145298,), (1371145301,), (1371145346,), (1371145397,), (1371145444,), (1371145870,), (1371145892,), (1371145920,), (1371145922,), (1371145972,), (1371146029,), (1371146091,), (1371146094,), (1371146098,), (1371146101,), (1371146105,), (1371146108,), (1371146123,), (1371146128,), (1371146131,), (1371146135,), (1371146139,), (1371146143,), (1371146160,), (1371146173,), (1371146207,), (1371146241,), (1371146275,), (1371146310,), (1371146540,), (1371146578,), (1371146609,), (1371146643,), (1371146679,), (1371146712,), (1371146924,), (1371146957,), (1371146989,), (1371147016,), (1371147020,), (1371147026,), (1371147043,), (1371147066,), (1371147102,), (1371147139,), (1371147176,), (1371147211,), (1371147338,), (1371147341,), (1371147345,), (1371147379,), (1371147417,), (1371147454,), (1371147483,), (1371147485,), (1371147487,), (1371147489,), (1371147492,), (1371147497,), (1371147691,), (1371147725,), (1371147759,), (1371147797,), (1371147827,), (1371147834,), (1371147853,), (1371147855,), (1371147858,), (1371147860,), (1371147871,), (1371147877,), (1371147898,), (1371147902,), (1371147905,), (1371147909,), (1371147915,), (1371147920,), (1371147934,), (1371147938,), (1371147946,), (1371147957,), (1371147966,), (1371147971,), (1371147993,), (1371147996,), (1371147999,), (1371148001,), (1371148005,), (1371148010,), (1371148028,), (1371148033,), (1371148035,), (1371148039,), (1371148044,), (1371148049,), (1371148075,), (1371148079,), (1371148082,), (1371148085,), (1371148089,), (1371148093,), (1371148117,), (1371148126,), (1371148138,), (1371148142,), (1371148146,), (1371148149,), (1371148176,), (1371148180,), (1371148184,), (1371148188,), (1371148192,), (1371148199,), (1371148222,), (1371148229,), (1371148235,), (1371148251,), (1371148286,), (1371148289,), (1371148310,), (1371148315,), (1371148319,), (1371148324,), (1371148329,), (1371148333,), (1371148349,), (1371148355,), (1371148360,), (1371148365,), (1371148368,), (1371148372,), (1371148405,), (1371148410,), (1371148415,), (1371148419,), (1371148424,), (1371148426,), (1371148450,), (1371148454,), (1371148460,), (1371148463,), (1371148467,), (1371148471,), (1371148488,), (1371148493,), (1371148498,), (1371148503,), (1371148508,), (1371148510,), (1371148531,), (1371148543,), (1371148549,), (1371148553,), (1371148559,), (1371148563,), (1371148590,), (1371148596,), (1371148601,), (1371148605,), (1371148609,), (1371148613,), (1371148630,), (1371148643,), (1371148654,), (1371148659,), (1371148663,), (1371148668,), (1371148711,), (1371148720,), (1371148727,), (1371148730,), (1371148733,), (1371148736,), (1371148747,), (1371148760,), (1371148770,), (1371148774,), (1371148784,), (1371148788,), (1371148815,), (1371148818,), (1371148821,), (1371148825,), (1371148829,), (1371148833,), (1371148843,), (1371148851,), (1371148860,), (1371148864,), (1371148867,), (1371148869,), (1371148886,), (1371148888,), (1371148892,), (1371148897,), (1371148900,), (1371148902,), (1371148921,), (1371148929,), (1371148933,), (1371148937,), (1371148941,), (1371148944,), (1371148972,), (1371148977,), (1371148982,), (1371148986,), (1371148990,), (1371148992,), (1371149001,), (1371149006,), (1371149011,), (1371149015,), (1371149020,), (1371149023,), (1371149046,), (1371149049,), (1371149055,), (1371149059,), (1371149063,), (1371149067,), (1371149083,), (1371149090,), (1371149098,), (1371149100,), (1371149102,), (1371149105,), (1371149139,), (1371149141,), (1371149143,), (1371149145,), (1371149147,), (1371149150,), (1371149170,), (1371149173,), (1371149174,), (1371149176,), (1371149179,), (1371149181,), (1371149200,), (1371149203,), (1371149205,), (1371149207,), (1371149209,), (1371149212,), (1371149232,), (1371149234,), (1371149236,), (1371149238,), (1371149242,), (1371149244,), (1371149266,), (1371149268,), (1371149271,), (1371149273,), (1371149277,), (1371149280,), (1371150147,), (1371150150,), (1371150152,), (1371150154,), (1371150157,), (1371150160,), (1371150172,), (1371150175,), (1371150177,), (1371150179,), (1371150183,), (1371150186,), (1371150199,), (1371150200,), (1371150202,), (1371150204,), (1371150207,), (1371150210,), (1371150222,), (1371150224,), (1371150226,), (1371150228,), (1371150231,), (1371150233,), (1371150252,), (1371150255,), (1371150257,), (1371150259,), (1371150262,), (1371150266,), (1371150282,), (1371150285,), (1371150287,), (1371150290,), (1371150293,), (1371150297,), (1371150310,), (1371150314,), (1371150317,), (1371150320,), (1371150322,), (1371150324,), (1371150336,), (1371150341,), (1371150344,), (1371150347,), (1371150350,), (1371150354,), (1371150360,), (1371150363,), (1371150365,), (1371150368,), (1371150372,), (1371150377,), (1371150386,), (1371150389,), (1371150391,), (1371150394,), (1371150399,), (1371150405,), (1371150418,), (1371150419,), (1371150421,), (1371150423,), (1371150428,), (1371150432,), (1371150444,), (1371150445,), (1371150447,), (1371150449,), (1371150453,), (1371150458,), (1371150472,), (1371150473,), (1371150476,), (1371150479,), (1371150481,), (1371150485,), (1371150499,), (1371150503,), (1371150506,), (1371150509,), (1371150513,), (1371150518,), (1371150530,), (1371150535,), (1371150540,), (1371150542,), (1371150546,), (1371150550,), (1371150562,), (1371150567,), (1371150571,), (1371150575,), (1371150579,), (1371150582,), (1371150593,), (1371150597,), (1371150600,), (1371150603,), (1371150606,), (1371150609,), (1371150622,), (1371150625,), (1371150629,), (1371150632,), (1371150634,), (1371150636,), (1371150651,), (1371150654,), (1371150656,), (1371150659,), (1371150661,), (1371150663,), (1371150674,), (1371150676,), (1371150679,), (1371150683,), (1371150685,), (1371150689,), (1371150709,), (1371150712,), (1371150714,), (1371150716,), (1371150719,), (1371150723,), (1371150735,), (1371150737,), (1371150739,), (1371150741,), (1371150744,), (1371150747,), (1371150769,), (1371150774,), (1371150775,), (1371150777,), (1371150781,), (1371150784,), (1371150792,), (1371150796,), (1371150799,), (1371150803,), (1371150808,), (1371150810,), (1371150819,), (1371150822,), (1371150824,), (1371150826,), (1371150828,), (1371150831,), (1371150842,), (1371150845,), (1371150848,), (1371150851,), (1371150854,), (1371150857,), (1371150865,), (1371150867,), (1371150870,), (1371150872,), (1371150876,), (1371150879,), (1371150891,), (1371150894,), (1371150897,), (1371150899,), (1371150901,), (1371150904,), (1371150919,), (1371150922,), (1371150924,), (1371150926,), (1371150929,), (1371150933,), (1371150938,), (1371150941,), (1371150942,), (1371150944,), (1371150947,), (1371150952,), (1371150970,), (1371150973,), (1371150975,), (1371150977,), (1371150980,), (1371150984,), (1371150993,), (1371150995,), (1371150998,), (1371151000,), (1371151002,), (1371151005,), (1371151019,), (1371151022,), (1371151024,), (1371151026,), (1371151029,), (1371151033,), (1371151043,), (1371151045,), (1371151048,), (1371151050,), (1371151052,), (1371151054,), (1371151067,), (1371151072,), (1371151076,), (1371151080,), (1371151083,), (1371151086,), (1371151095,), (1371151098,), (1371151101,), (1371151102,), (1371151105,), (1371151108,), (1371151128,), (1371151131,), (1371151133,), (1371151135,), (1371151139,), (1371151142,), (1371151153,), (1371151156,), (1371151158,), (1371151160,), (1371151162,), (1371151164,), (1371151174,), (1371151177,), (1371151179,), (1371151181,), (1371151184,), (1371151188,), (1371151201,), (1371151204,), (1371151206,), (1371151208,), (1371151211,), (1371151213,), (1371151229,), (1371151231,), (1371151234,), (1371151236,), (1371151240,), (1371151243,), (1371151255,), (1371151258,), (1371151260,), (1371151262,), (1371151265,), (1371151269,), (1371151291,), (1371151295,), (1371151298,), (1371151300,), (1371151302,), (1371151305,), (1371151328,), (1371151334,), (1371151340,), (1371151347,), (1371151351,), (1371151354,), (1371151367,), (1371151372,), (1371151376,), (1371151380,), (1371151383,), (1371151395,), (1371151398,), (1371151401,), (1371151405,), (1371151408,), (1371151411,), (1371151421,), (1371151425,), (1371151428,), (1371151432,), (1371151435,), (1371151437,), (1371151448,), (1371151452,), (1371151455,), (1371151458,), (1371151461,), (1371151464,), (1371151475,), (1371151479,), (1371151482,), (1371151485,), (1371151488,), (1371151491,), (1371151505,), (1371151510,), (1371151513,), (1371151516,), (1371151519,), (1371151524,), (1371151543,), (1371151547,), (1371151551,), (1371151555,), (1371151559,), (1371151563,), (1371151571,), (1371151574,), (1371151576,), (1371151579,), (1371151583,), (1371151586,), (1371151597,), (1371151601,), (1371151604,), (1371151608,), (1371151612,), (1371151617,), (1371151629,), (1371151631,), (1371151634,), (1371151636,), (1371151639,), (1371151643,), (1371151656,), (1371151659,), (1371151661,), (1371151663,), (1371151665,), (1371151668,), (1371151681,), (1371151684,), (1371151686,), (1371151688,), (1371151691,), (1371151694,), (1371151711,), (1371151714,), (1371151717,), (1371151720,), (1371151722,), (1371151726,), (1371151738,), (1371151749,), (1371151757,), (1371151761,), (1371151764,), (1371151767,), (1371151786,), (1371151789,), (1371151790,), (1371151792,), (1371151796,), (1371151801,), (1371151847,), (1371151857,), (1371151862,), (1371151870,), (1371151890,), (1371151916,), (1371152010,), (1371152077,), (1371152107,), (1371152109,), (1371152116,), (1371152126,), (1371152176,), (1371152180,), (1371152181,), (1371152183,), (1371152187,), (1371152201,), (1371152229,), (1371152231,), (1371152246,), (1371152271,), (1371152278,), (1371152292,), (1371152549,), (1371152653,), (1371152721,), (1371152788,), (1371152890,), (1371152958,), (1371153263,), (1371153267,), (1371153270,), (1371153278,), (1371153285,), (1371153288,), (1371153466,), (1371153512,), (1371153574,), (1371153644,), (1371153726,), (1371153786,), (1371154126,), (1371154221,), (1371154308,), (1371154371,), (1371154480,), (1371154581,), (1371154913,), (1371154982,), (1371154988,), (1371155009,), (1371155052,), (1371155103,), (1371155496,), (1371155554,), (1371155630,), (1371155656,), (1371155665,), (1371155673,), (1371155805,), (1371155845,), (1371155887,), (1371155920,), (1371155936,), (1371155983,), (1371156206,), (1371156260,), (1371156279,), (1371156320,), (1371156351,), (1371156408,), (1371157148,), (1371157176,), (1371157253,), (1371157284,), (1371157299,), (1371157302,), (1371157457,), (1371157548,), (1371157666,), (1371157758,), (1371157868,), (1371157944,), (1371158196,), (1371158218,), (1371158281,), (1371158326,), (1371158365,), (1371158396,), (1371158806,), (1371158816,), (1371158820,), (1371158825,), (1371158858,), (1371158916,), (1371159225,), (1371159272,), (1371159311,), (1371159374,), (1371159422,), (1371159454,), (1371159909,), (1371160017,), (1371160122,), (1371160192,), (1371160228,), (1371160291,), (1371160500,), (1371160559,), (1371160592,), (1371160625,), (1371160663,), (1371160714,), (1371160978,), (1371161024,), (1371161088,), (1371161175,), (1371161270,), (1371161345,), (1371161607,), (1371161612,), (1371161676,), (1371161728,), (1371161776,), (1371161827,), (1371162501,), (1371162609,), (1371162697,), (1371162778,), (1371162832,), (1371162891,), (1371163043,), (1371163112,), (1371163197,), (1371163278,), (1371163357,), (1371163396,), (1371163692,), (1371163774,), (1371163864,), (1371163980,), (1371164091,), (1371164175,), (1371164550,), (1371164577,), (1371164580,), (1371164584,), (1371164598,), (1371164634,), (1371165070,), (1371165126,), (1371165210,), (1371165277,), (1371165335,), (1371165376,), (1371165721,), (1371165852,), (1371165937,), (1371165977,), (1371166039,), (1371166104,), (1371166455,), (1371166488,), (1371166520,), (1371166553,), (1371166595,), (1371166628,), (1371166800,), (1371166838,), (1371166871,), (1371166908,), (1371166947,), (1371167002,), (1371167383,), (1371167418,), (1371167452,), (1371167477,), (1371167496,), (1371167559,), (1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,), (1371172566,), (1371172606,), (1371172632,), (1371172700,), (1371172786,), (1371172881,), (1371173320,), (1371173363,), (1371173413,), (1371173462,), (1371173526,), (1371173581,), (1371173803,), (1371173854,), (1371173920,), (1371174006,), (1371174105,), (1371174194,), (1371175510,), (1371175639,), (1371175769,), (1371175907,), (1371176034,), (1371176156,), (1371149288,), (1371149291,), (1371149293,), (1371149295,), (1371149297,), (1371149300,), (1371149311,), (1371149314,), (1371149317,), (1371149321,), (1371149326,), (1371149330,), (1371149340,), (1371149342,), (1371149344,), (1371149347,), (1371149351,), (1371149354,), (1371149365,), (1371149367,), (1371149369,), (1371149371,), (1371149374,), (1371149376,), (1371149389,), (1371149392,), (1371149394,), (1371149396,), (1371149399,), (1371149403,), (1371149429,), (1371149432,), (1371149434,), (1371149436,), (1371149439,), (1371149444,), (1371149460,), (1371149464,), (1371149467,), (1371149468,), (1371149471,), (1371149473,), (1371149486,), (1371149491,), (1371149495,), (1371149497,), (1371149499,), (1371149502,), (1371149520,), (1371149524,), (1371149527,), (1371149529,), (1371149531,), (1371149533,), (1371149543,), (1371149545,), (1371149548,), (1371149552,), (1371149555,), (1371149558,), (1371149568,), (1371149571,), (1371149573,), (1371149576,), (1371149579,), (1371149583,), (1371149596,), (1371149599,), (1371149601,), (1371149604,), (1371149607,), (1371149611,), (1371149633,), (1371149638,), (1371149642,), (1371149645,), (1371149648,), (1371149650,), (1371149675,), (1371149679,), (1371149685,), (1371149689,), (1371149693,), (1371149698,), (1371149706,), (1371149710,), (1371149712,), (1371149715,), (1371149717,), (1371149721,), (1371149725,), (1371149728,), (1371149735,), (1371149739,), (1371149742,), (1371149744,), (1371149747,), (1371149751,), (1371149756,), (1371149761,), (1371149763,), (1371149771,), (1371149772,), (1371149774,), (1371149778,), (1371149782,), (1371149787,), (1371149802,), (1371149804,), (1371149806,), (1371149809,), (1371149814,), (1371149820,), (1371149834,), (1371149836,), (1371149837,), (1371149839,), (1371149843,), (1371149846,), (1371149855,), (1371149859,), (1371149862,), (1371149866,), (1371149871,), (1371149876,), (1371149892,), (1371149895,), (1371149897,), (1371149900,), (1371149902,), (1371149905,), (1371149923,), (1371149926,), (1371149928,), (1371149931,), (1371149934,), (1371149938,), (1371149949,), (1371149953,), (1371149955,), (1371149957,), (1371149960,), (1371149964,), (1371149977,), (1371149980,), (1371149983,), (1371149985,), (1371149988,), (1371149992,), (1371150003,), (1371150005,), (1371150007,), (1371150009,), (1371150012,), (1371150016,), (1371150029,), (1371150032,), (1371150034,), (1371150036,), (1371150039,), (1371150043,), (1371150055,), (1371150058,), (1371150060,), (1371150063,), (1371150065,), (1371150069,), (1371150088,), (1371150092,), (1371150094,), (1371150096,), (1371150098,), (1371150102,), (1371150110,), (1371150111,), (1371150113,), (1371150115,), (1371150118,), (1371150124,), (1371176856,), (1371176967,), (1371177061,), (1371177155,), (1371177282,), (1371177893,), (1371177956,), (1371178017,), (1371178106,), (1371178231,), (1371178347,), (1371178885,), (1371178971,), (1371179041,), (1371179108,), (1371179148,), (1371179183,), (1371179468,), (1371179489,), (1371179513,), (1371179547,), (1371179610,), (1371179672,), (1371180236,), (1371180354,), (1371180458,), (1371180550,), (1371180650,), (1371180746,), (1371181295,), (1371181388,), (1371181507,), (1371181651,), (1371181770,), (1371181895,), (1371182708,), (1371182835,), (1371182923,), (1371183004,), (1371183120,), (1371183224,), (1371184070,), (1371184190,), (1371184325,), (1371184481,), (1371184520,), (1371184585,), (1371184832,), (1371184904,), (1371184971,), (1371185008,), (1371185052,), (1371185119,), (1371185386,), (1371185415,), (1371185447,), (1371185481,), (1371185513,), (1371185546,), (1371185816,), (1371185887,), (1371185953,), (1371186002,), (1371186033,), (1371186090,), (1371186236,), (1371186259,), (1371186305,), (1371186367,), (1371186444,), (1371186565,), (1371187249,), (1371187292,), (1371187333,), (1371187408,), (1371187501,), (1371187606,), (1371188085,), (1371188177,), (1371188248,), (1371188313,), (1371188347,), (1371188397,), (1371188799,), (1371188804,), (1371188805,), (1371188835,), (1371188905,), (1371188978,), (1371189255,), (1371189285,), (1371189323,), (1371189359,), (1371189392,), (1371189413,), (1371189526,), (1371189585,), (1371189620,), (1371189685,), (1371189755,), (1371189852,), (1371190463,), (1371190533,), (1371190566,), (1371190599,), (1371190644,), (1371190696,), (1371190898,), (1371190930,), (1371191009,), (1371191050,), (1371191061,), (1371191064,), (1371191077,), (1371191081,), (1371191086,), (1371191093,), (1371191105,), (1371191109,), (1371191282,), (1371191316,), (1371191347,), (1371191381,), (1371191442,), (1371191476,), (1371191690,), (1371191702,), (1371191752,), (1371191765,), (1371191794,), (1371191835,), (1371191909,), (1371191940,), (1371191974,), (1371191993,), (1371192050,), (1371192090,), (1371192402,), (1371192459,), (1371192491,), (1371192549,), (1371192603,), (1371192638,), (1371192844,), (1371192874,), (1371192909,), (1371192940,), (1371192986,), (1371193021,), (1371193190,), (1371193238,), (1371193306,), (1371193372,), (1371193401,), (1371193413,), (1371193718,), (1371193751,), (1371193787,), (1371193820,), (1371193868,), (1371193911,), (1371194157,), (1371194185,), (1371194219,), (1371194231,), (1371194235,), (1371194237,), (1371194480,), (1371194542,), (1371194628,), (1371194691,), (1371194724,), (1371194731,), (1371194923,), (1371194975,), (1371195012,), (1371195046,), (1371195078,), (1371195111,), (1371195240,), (1371195275,), (1371195289,), (1371195291,), (1371195294,), (1371195298,), (1371195406,), (1371195447,), (1371195519,), (1371195603,), (1371195672,), (1371195735,), (1371195950,), (1371196000,), (1371196057,), (1371196091,), (1371196127,), (1371196189,), (1371196394,), (1371196403,), (1371196406,), (1371196409,), (1371196412,), (1371196415,), (1371196505,), (1371196522,), (1371196541,), (1371196543,), (1371196573,), (1371196587,), (1371196607,), (1371196609,), (1371196611,), (1371196614,), (1371196617,), (1371196620,), (1371196743,), (1371196774,), (1371196806,), (1371196841,), (1371196875,), (1371196910,), (1371197012,), (1371197014,), (1371197015,), (1371197017,), (1371197040,), (1371197082,), (1371197583,), (1371197690,), (1371197781,), (1371197873,), (1371197973,), (1371198066,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24726606]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] map_info['map_portfolio_photo'] : {24726606: [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012, 1371196910, 1371196875, 1371196841, 1371196806, 1371196774, 1371196743, 1371196620, 1371196617, 1371196614, 1371196611, 1371196609, 1371196607, 1371196587, 1371196573, 1371196543, 1371196541, 1371196522, 1371196505, 1371196415, 1371196412, 1371196409, 1371196406, 1371196403, 1371196394, 1371196189, 1371196127, 1371196091, 1371196057, 1371196000, 1371195950, 1371195735, 1371195672, 1371195603, 1371195519, 1371195447, 1371195406, 1371195298, 1371195294, 1371195291, 1371195289, 1371195275, 1371195240]} final : True mtd_id 4302 list_pids : [1371198066, 1371197973, 1371197873, 1371197781, 1371197690, 1371197583, 1371197082, 1371197040, 1371197017, 1371197015, 1371197014, 1371197012] Looping around the photos to save general results len do output : 1 /24726606Didn'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, '3251198') ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198') ('4302', None, None, None, None, None, None, None, '3251198') ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24726606', 'None', None, None, None, None, '3251198'), ('4302', '24726606', '1371198066', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197973', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197873', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197781', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197690', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197583', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197082', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197040', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197017', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197015', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197014', None, None, None, None, None, '3251198'), ('4302', '24726606', '1371197012', None, None, None, None, None, '3251198')] time used for this insertion : 0.014380455017089844 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.621297836303711 time spend to save output : 0.014597892761230469 total time spend for step 5 : 2.6358957290649414 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 (3251198) 2.79user 2.09system 0:11.22elapsed 43%CPU (0avgtext+0avgdata 161572maxresident)k 272inputs+9312outputs (0major+78687minor)pagefaults 0swaps