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 : 2540237 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 (3650915) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3650915) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432175 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3650915'] with mtr_portfolio_ids : ['26432175'] and first list_photo_ids : [] new path : /proc/2540237/ Name: python3 Umask: 0002 State: R (running) Tgid: 2540237 Ngid: 0 Pid: 2540237 PPid: 2540236 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2540237 NSpid: 2540237 NSpgid: 2538153 NSsid: 2538153 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99188 kB VmRSS: 99188 kB RssAnon: 60164 kB RssFile: 39024 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 77 nonvoluntary_ctxt_switches: 110 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2540237', 'Ngid': '0', 'Pid': '2540237', 'PPid': '2540236', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2540237', 'NSpid': '2540237', 'NSpgid': '2538153', 'NSsid': '2538153', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99188 kB', 'VmRSS': '99188 kB', 'RssAnon': '60164 kB', 'RssFile': '39024 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '77', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '2540237', '1107252', '0', '1107252', '866004', '99188', b'', 'marlene', '3650915') 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 (26432175) 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 (3650915 ) ) 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 (26432175) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380804348, 'portfolio_id': 26432175}, {'photo_id': 1380804346, 'portfolio_id': 26432175}, {'photo_id': 1380804344, 'portfolio_id': 26432175}, {'photo_id': 1380804342, 'portfolio_id': 26432175}, {'photo_id': 1380804340, 'portfolio_id': 26432175}, {'photo_id': 1380803975, 'portfolio_id': 26432175}, {'photo_id': 1380803972, 'portfolio_id': 26432175}, {'photo_id': 1380803967, 'portfolio_id': 26432175}, {'photo_id': 1380803963, 'portfolio_id': 26432175}, {'photo_id': 1380803959, 'portfolio_id': 26432175}, {'photo_id': 1380803902, 'portfolio_id': 26432175}, {'photo_id': 1380803901, 'portfolio_id': 26432175}, {'photo_id': 1380803900, 'portfolio_id': 26432175}, {'photo_id': 1380803898, 'portfolio_id': 26432175}, {'photo_id': 1380803897, 'portfolio_id': 26432175}, {'photo_id': 1380803896, 'portfolio_id': 26432175}, {'photo_id': 1380803734, 'portfolio_id': 26432175}, {'photo_id': 1380803732, 'portfolio_id': 26432175}, {'photo_id': 1380803730, 'portfolio_id': 26432175}, {'photo_id': 1380803728, 'portfolio_id': 26432175}, {'photo_id': 1380803726, 'portfolio_id': 26432175}, {'photo_id': 1380803724, 'portfolio_id': 26432175}, {'photo_id': 1380803604, 'portfolio_id': 26432175}, {'photo_id': 1380803603, 'portfolio_id': 26432175}, {'photo_id': 1380803602, 'portfolio_id': 26432175}, {'photo_id': 1380803556, 'portfolio_id': 26432175}, {'photo_id': 1380803555, 'portfolio_id': 26432175}, {'photo_id': 1380803554, 'portfolio_id': 26432175}, {'photo_id': 1380803553, 'portfolio_id': 26432175}, {'photo_id': 1380803552, 'portfolio_id': 26432175}, {'photo_id': 1380803551, 'portfolio_id': 26432175}, {'photo_id': 1380803503, 'portfolio_id': 26432175}, {'photo_id': 1380803502, 'portfolio_id': 26432175}, {'photo_id': 1380803501, 'portfolio_id': 26432175}, {'photo_id': 1380803443, 'portfolio_id': 26432175}, {'photo_id': 1380803442, 'portfolio_id': 26432175}, {'photo_id': 1380803441, 'portfolio_id': 26432175}, {'photo_id': 1380803440, 'portfolio_id': 26432175}, {'photo_id': 1380803439, 'portfolio_id': 26432175}, {'photo_id': 1380803391, 'portfolio_id': 26432175}, {'photo_id': 1380803390, 'portfolio_id': 26432175}, {'photo_id': 1380803389, 'portfolio_id': 26432175}, {'photo_id': 1380803388, 'portfolio_id': 26432175}, {'photo_id': 1380803387, 'portfolio_id': 26432175}, {'photo_id': 1380803386, 'portfolio_id': 26432175}, {'photo_id': 1380803292, 'portfolio_id': 26432175}, {'photo_id': 1380803290, 'portfolio_id': 26432175}, {'photo_id': 1380803289, 'portfolio_id': 26432175}, {'photo_id': 1380803288, 'portfolio_id': 26432175}, {'photo_id': 1380803287, 'portfolio_id': 26432175}, {'photo_id': 1380803029, 'portfolio_id': 26432175}, {'photo_id': 1380803026, 'portfolio_id': 26432175}, {'photo_id': 1380803023, 'portfolio_id': 26432175}, {'photo_id': 1380803018, 'portfolio_id': 26432175}, {'photo_id': 1380803015, 'portfolio_id': 26432175}, {'photo_id': 1380802936, 'portfolio_id': 26432175}, {'photo_id': 1380802853, 'portfolio_id': 26432175}, {'photo_id': 1380802851, 'portfolio_id': 26432175}, {'photo_id': 1380802850, 'portfolio_id': 26432175}, {'photo_id': 1380802849, 'portfolio_id': 26432175}, {'photo_id': 1380802848, 'portfolio_id': 26432175}, {'photo_id': 1380802726, 'portfolio_id': 26432175}, {'photo_id': 1380802725, 'portfolio_id': 26432175}, {'photo_id': 1380802724, 'portfolio_id': 26432175}, {'photo_id': 1380802723, 'portfolio_id': 26432175}, {'photo_id': 1380802689, 'portfolio_id': 26432175}, {'photo_id': 1380802688, 'portfolio_id': 26432175}, {'photo_id': 1380802687, 'portfolio_id': 26432175}, {'photo_id': 1380802686, 'portfolio_id': 26432175}, {'photo_id': 1380802684, 'portfolio_id': 26432175}, {'photo_id': 1380802683, 'portfolio_id': 26432175}, {'photo_id': 1380802522, 'portfolio_id': 26432175}, {'photo_id': 1380802520, 'portfolio_id': 26432175}, {'photo_id': 1380802518, 'portfolio_id': 26432175}, {'photo_id': 1380802516, 'portfolio_id': 26432175}, {'photo_id': 1380802514, 'portfolio_id': 26432175}] map_portfolio_id_photo_id: {26432175: [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896, 1380803734, 1380803732, 1380803730, 1380803728, 1380803726, 1380803724, 1380803604, 1380803603, 1380803602, 1380803556, 1380803555, 1380803554, 1380803553, 1380803552, 1380803551, 1380803503, 1380803502, 1380803501, 1380803443, 1380803442, 1380803441, 1380803440, 1380803439, 1380803391, 1380803390, 1380803389, 1380803388, 1380803387, 1380803386, 1380803292, 1380803290, 1380803289, 1380803288, 1380803287, 1380803029, 1380803026, 1380803023, 1380803018, 1380803015, 1380802936, 1380802853, 1380802851, 1380802850, 1380802849, 1380802848, 1380802726, 1380802725, 1380802724, 1380802723, 1380802689, 1380802688, 1380802687, 1380802686, 1380802684, 1380802683, 1380802522, 1380802520, 1380802518, 1380802516, 1380802514]} ##### 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.015775680541992188 #### 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 Sep 2 10:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26432175) 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 : 26432175 get user id for portfolio 26432175 get sub ptf for main ptf 26432175, type 3726 and hashtags ['flou', 'metal', 'autre_refus', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'kraft', 'papier', 'Carton_gris', 'Carton_brun'] 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`=26432175 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','autre_refus','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','cartonnette','kraft','papier','Carton_gris','Carton_brun')) 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`=26432175 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','autre_refus','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','cartonnette','kraft','papier','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26432175, 'sub_port_id': 26432194, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788291, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'environnement': {'main_port_id': 26432175, 'sub_port_id': 26432195, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788292, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'flou': {'main_port_id': 26432175, 'sub_port_id': 26432196, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788293, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'mal_croppe': {'main_port_id': 26432175, 'sub_port_id': 26432197, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788294, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'cartonnette': {'main_port_id': 26432175, 'sub_port_id': 26432198, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788295, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'metal': {'main_port_id': 26432175, 'sub_port_id': 26432199, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788296, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'Carton_gris': {'main_port_id': 26432175, 'sub_port_id': 26432200, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788297, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'Carton_brun': {'main_port_id': 26432175, 'sub_port_id': 26432201, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788298, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'plastique': {'main_port_id': 26432175, 'sub_port_id': 26432202, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788299, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'kraft': {'main_port_id': 26432175, 'sub_port_id': 26432203, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788300, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'papier': {'main_port_id': 26432175, 'sub_port_id': 26432204, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788301, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}, 'autre_refus': {'main_port_id': 26432175, 'sub_port_id': 26432205, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788302, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26432194 , 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=26432175 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 (26432194) result : ((1380803264,), (1380803266,), (1380803268,), (1380803445,), (1380803446,), (1380803447,), (1380803448,), (1380803449,), (1380803450,), (1380803620,), (1380804051,), (1380804196,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432195 , 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=26432175 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 (26432195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432196 , 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=26432175 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 (26432196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432197 , 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=26432175 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 (26432197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432198 , 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=26432175 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 (26432198) result : ((1380803272,), (1380803454,), (1380803455,), (1380803623,), (1380803624,), (1380804059,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432199 , 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=26432175 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 (26432199) result : ((1380803413,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432200 , 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=26432175 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 (26432200) result : ((1380803271,), (1380803411,), (1380803451,), (1380803452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432201 , 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=26432175 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 (26432201) result : ((1380804066,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432202 , 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=26432175 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 (26432202) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432203 , 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=26432175 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 (26432203) result : ((1380803273,), (1380803457,), (1380803459,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432204 , 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=26432175 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 (26432204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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 26432205 , 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=26432175 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 (26432205) result : ((1380803410,), (1380803638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26432175) result : ((1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) 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 (1380803900) 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`=26432175 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','autre_refus','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','cartonnette','kraft','papier','Carton_gris','Carton_brun')) 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`=26432175 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','autre_refus','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','cartonnette','kraft','papier','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26432175, 'sub_port_id': 26432206, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788303, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'environnement': {'main_port_id': 26432175, 'sub_port_id': 26432207, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788304, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'flou': {'main_port_id': 26432175, 'sub_port_id': 26432208, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788305, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'mal_croppe': {'main_port_id': 26432175, 'sub_port_id': 26432209, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788306, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'cartonnette': {'main_port_id': 26432175, 'sub_port_id': 26432210, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788307, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'metal': {'main_port_id': 26432175, 'sub_port_id': 26432211, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788308, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'Carton_gris': {'main_port_id': 26432175, 'sub_port_id': 26432212, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788309, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'Carton_brun': {'main_port_id': 26432175, 'sub_port_id': 26432213, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788310, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'plastique': {'main_port_id': 26432175, 'sub_port_id': 26432214, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788311, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'kraft': {'main_port_id': 26432175, 'sub_port_id': 26432215, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788312, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'papier': {'main_port_id': 26432175, 'sub_port_id': 26432216, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788313, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}, 'autre_refus': {'main_port_id': 26432175, 'sub_port_id': 26432217, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17788314, 'last_updated_at': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 10, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 10, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26432217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26432205 lien utilise dans velours : https://marlene.fotonower.com/velours/26432206,26432207,26432208,26432209,26432210,26432211,26432212,26432213,26432214,26432215,26432216,26432217?tags=Teint_Dans_La_Masse,environnement,flou,mal_croppe,cartonnette,metal,Carton_gris,Carton_brun,plastique,kraft,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26432175]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] map_info['map_portfolio_photo'] : {26432175: [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896, 1380803734, 1380803732, 1380803730, 1380803728, 1380803726, 1380803724, 1380803604, 1380803603, 1380803602, 1380803556, 1380803555, 1380803554, 1380803553, 1380803552, 1380803551, 1380803503, 1380803502, 1380803501, 1380803443, 1380803442, 1380803441, 1380803440, 1380803439, 1380803391, 1380803390, 1380803389, 1380803388, 1380803387, 1380803386, 1380803292, 1380803290, 1380803289, 1380803288, 1380803287, 1380803029, 1380803026, 1380803023, 1380803018, 1380803015, 1380802936, 1380802853, 1380802851, 1380802850, 1380802849, 1380802848, 1380802726, 1380802725, 1380802724, 1380802723, 1380802689, 1380802688, 1380802687, 1380802686, 1380802684, 1380802683, 1380802522, 1380802520, 1380802518, 1380802516, 1380802514]} final : False mtd_id 4302 list_pids : [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] Looping around the photos to save general results len do output : 1 /26432175. 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, '3650915') ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '26432175', "{'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205}", None, None, None, None, '3650915'), ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915')] time used for this insertion : 0.017891645431518555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46212148666381836 time spend to save output : 0.01833319664001465 total time spend for step 1 : 0.480454683303833 step2:final Tue Sep 2 10:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (26432175) 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 26432175 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380802726,1380802522,1380802520,1380802725,1380802518,1380802724,1380802516,1380802723,1380802689,1380802514,1380802688,1380802687,1380802686,1380802684,1380802683,1380802853,1380802851,1380802850,1380802849,1380802848,1380803029,1380803026,1380803023,1380803018,1380803015,1380803292,1380802936,1380803290,1380803289,1380803288,1380803287,1380803391,1380803390,1380803389,1380803388,1380803387,1380803386,1380803443,1380803442,1380803441,1380803440,1380803439,1380803503,1380803502,1380803501,1380803556,1380803555,1380803554,1380803553,1380803552,1380803551,1380803604,1380803603,1380803602,1380803975,1380803734,1380803972,1380803732,1380803730,1380803967,1380803728,1380803963,1380803959,1380803726,1380803902,1380803724,1380803901,1380803900,1380803898,1380803897,1380803896,1380804348,1380804346,1380804344,1380804342,1380804340); 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([26432175]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} new output for save of step final : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] map_info['map_portfolio_photo'] : {26432175: [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896, 1380803734, 1380803732, 1380803730, 1380803728, 1380803726, 1380803724, 1380803604, 1380803603, 1380803602, 1380803556, 1380803555, 1380803554, 1380803553, 1380803552, 1380803551, 1380803503, 1380803502, 1380803501, 1380803443, 1380803442, 1380803441, 1380803440, 1380803439, 1380803391, 1380803390, 1380803389, 1380803388, 1380803387, 1380803386, 1380803292, 1380803290, 1380803289, 1380803288, 1380803287, 1380803029, 1380803026, 1380803023, 1380803018, 1380803015, 1380802936, 1380802853, 1380802851, 1380802850, 1380802849, 1380802848, 1380802726, 1380802725, 1380802724, 1380802723, 1380802689, 1380802688, 1380802687, 1380802686, 1380802684, 1380802683, 1380802522, 1380802520, 1380802518, 1380802516, 1380802514]} final : False mtd_id 4302 list_pids : [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] Looping around the photos to save general results len do output : 16 /1380804348.Didn't retrieve data . /1380804346.Didn't retrieve data . /1380804344.Didn't retrieve data . /1380804342.Didn't retrieve data . /1380804340.Didn't retrieve data . /1380803975.Didn't retrieve data . /1380803972.Didn't retrieve data . /1380803967.Didn't retrieve data . /1380803963.Didn't retrieve data . /1380803959.Didn't retrieve data . /1380803902.Didn't retrieve data . /1380803901.Didn't retrieve data . /1380803900.Didn't retrieve data . /1380803898.Didn't retrieve data . /1380803897.Didn't retrieve data . /1380803896.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, '3650915') ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '26432175', '1380804348', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380804346', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380804344', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380804342', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380804340', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803975', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803972', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803967', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803963', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803959', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803902', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803901', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803900', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803898', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803897', '0.02188517164423511', None, None, None, None, '3650915'), ('4302', '26432175', '1380803896', '0.02188517164423511', None, None, None, None, '3650915')] time used for this insertion : 0.014112234115600586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06968545913696289 time spend to save output : 0.014931201934814453 total time spend for step 2 : 0.08461666107177734 step3:velours_tree Tue Sep 2 10:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26432175: [{'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205}]} input_args_next_step : {26432175: ()} output_args : {26432175: [{'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205}]} args : 26432175 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 : ({'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26432175) 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([26432175]) 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.3957812786102295 time spend to save output : 8.344650268554688e-05 total time spend for step 3 : 0.39586472511291504 step4:send_mail_cod Tue Sep 2 10:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} input_args_next_step : {1380804348: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380804348 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380804346 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380804344 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380804342 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380804340 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803975 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803972 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803967 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803963 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803959 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803902 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803901 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803900 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803898 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803897 depend.output_id : 0 input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ()} output_args : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',)} args : 1380803896 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 : {26432175: [{'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205}]} input_args_next_step : {1380804348: ('0.02188517164423511',), 1380804346: ('0.02188517164423511',), 1380804344: ('0.02188517164423511',), 1380804342: ('0.02188517164423511',), 1380804340: ('0.02188517164423511',), 1380803975: ('0.02188517164423511',), 1380803972: ('0.02188517164423511',), 1380803967: ('0.02188517164423511',), 1380803963: ('0.02188517164423511',), 1380803959: ('0.02188517164423511',), 1380803902: ('0.02188517164423511',), 1380803901: ('0.02188517164423511',), 1380803900: ('0.02188517164423511',), 1380803898: ('0.02188517164423511',), 1380803897: ('0.02188517164423511',), 1380803896: ('0.02188517164423511',), 26432175: ()} output_args : {26432175: [{'Teint_Dans_La_Masse': 26432194, 'environnement': 26432195, 'flou': 26432196, 'mal_croppe': 26432197, 'cartonnette': 26432198, 'metal': 26432199, 'Carton_gris': 26432200, 'Carton_brun': 26432201, 'plastique': 26432202, 'kraft': 26432203, 'papier': 26432204, 'autre_refus': 26432205}]} args : 26432175 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 :17, first value : ('0.02188517164423511',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26432175) 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 (1380804348,1380804346,1380804344,1380804342,1380804340,1380803975,1380803972,1380803967,1380803963,1380803959,1380803902,1380803901,1380803900,1380803898,1380803897,1380803896) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380803896 begin to download photo : 1380803901 begin to download photo : 1380803967 begin to download photo : 1380804342 download finish for photo 1380803901 begin to download photo : 1380803902 download finish for photo 1380803896 begin to download photo : 1380803897 download finish for photo 1380804342 begin to download photo : 1380804344 download finish for photo 1380803967 begin to download photo : 1380803972 download finish for photo 1380803972 begin to download photo : 1380803975 download finish for photo 1380803902 begin to download photo : 1380803959 download finish for photo 1380803897 begin to download photo : 1380803898 download finish for photo 1380804344 begin to download photo : 1380804346 download finish for photo 1380803959 begin to download photo : 1380803963 download finish for photo 1380804346 begin to download photo : 1380804348 download finish for photo 1380803975 begin to download photo : 1380804340 download finish for photo 1380804348 download finish for photo 1380803963 download finish for photo 1380804340 download finish for photo 1380803898 begin to download photo : 1380803900 download finish for photo 1380803900 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette264321961756801740/ imagette264321971756801740/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P26432175_02-09-2025_10_29_00.pdf 26432196 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=26432196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264321961756801740 26432197 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=26432197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264321971756801740 26432198 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=26432198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803272: '1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229686_0.png', 1380803454: '1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232217_0.png', 1380803455: '1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229686_0.png', 1380803623: '1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237290_0.png', 1380803624: '1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237291_0.png', 1380804059: '1756801627_2927369_1380803551_613b1ac35083577ddc259e674d0b9410_43521774_rle_crop_3940238991_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a20602def7a059795238b9ac78f4e1de_67591279.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a20602def7a059795238b9ac78f4e1de_59171201.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a20602def7a059795238b9ac78f4e1de_10676585.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/eb20e7a6f5e01b30c659b1c1b8a94c66_58823836.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/ab9ed66775945d8440e91b89fedd1855_13678958.png change filename to text .imagette264321981756801740/ imagette264321981756801740/1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237290_0.png.png imagette264321981756801740/1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237291_0.png.png imagette264321981756801740/1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229686_0.png.png imagette264321981756801740/1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232217_0.png.png imagette264321981756801740/1756801627_2927369_1380803551_613b1ac35083577ddc259e674d0b9410_43521774_rle_crop_3940238991_0.png.png imagette264321981756801740/1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229686_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a523e2c373d2cdaf16a11a019d18563b_93038743.png imagette264321981756801740 26432199 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=26432199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803413: '1756801266_2906817_1380802850_3c6d7564cd7e8807b4cfd57598712507_50393898_rle_crop_3940231657_0.png'} change filename to text .imagette264321991756801740/ imagette264321991756801740/1756801266_2906817_1380802850_3c6d7564cd7e8807b4cfd57598712507_50393898_rle_crop_3940231657_0.png.png imagette264322021756801740/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/dadf34c7ed9182fcef41379759ae6649_38678724.png imagette264321991756801740 26432202 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=26432202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264322021756801740 26432203 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=26432203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803273: '1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229698_0.png', 1380803457: '1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232229_0.png', 1380803459: '1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8b26456e06f175606d78b38e3cded356_14222832.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8b26456e06f175606d78b38e3cded356_98249893.png change filename to text .imagette264322031756801740/ imagette264322031756801740/1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229698_0.png.png imagette264322031756801740/1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229698_0.png.png imagette264322031756801740/1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232229_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8b26456e06f175606d78b38e3cded356_78088578.png imagette264322031756801740 26432205 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=26432205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803410: '1756801266_2906817_1380802850_3c6d7564cd7e8807b4cfd57598712507_50393898_rle_crop_3940231655_0.png', 1380803638: '1756801524_2920608_1380803391_82181cbfabb538e23260eac7ef25de87_89650256_rle_crop_3940237429_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/38a765fe33a2ab4307cc0a89588ba681_88890265.png change filename to text .imagette264322051756801741/ imagette264322051756801741/1756801524_2920608_1380803391_82181cbfabb538e23260eac7ef25de87_89650256_rle_crop_3940237429_0.png.png imagette264322051756801741/1756801266_2906817_1380802850_3c6d7564cd7e8807b4cfd57598712507_50393898_rle_crop_3940231655_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/73824c9165fc6aeb0d2df22f2e9e52f5_89178731.png imagette264322051756801741 26432194 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=26432194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803264: '1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229692_0.png', 1380803266: '1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229690_0.png', 1380803268: '1756801165_2901307_1380802518_74ed18cb710bb56bb9d117038493d4bb_63587933_rle_crop_3940229711_0.png', 1380803445: '1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232223_0.png', 1380803446: '1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232221_0.png', 1380803447: '1756801287_2907411_1380802724_74ed18cb710bb56bb9d117038493d4bb_34516610_rle_crop_3940232242_0.png', 1380803448: '1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229692_0.png', 1380803449: '1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229690_0.png', 1380803450: '1756801287_2907411_1380802518_74ed18cb710bb56bb9d117038493d4bb_63587933_rle_crop_3940229711_0.png', 1380803620: '1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237298_0.png', 1380804051: '1756801627_2927369_1380803551_613b1ac35083577ddc259e674d0b9410_43521774_rle_crop_3940238992_0.png', 1380804196: '1756801646_2927708_1380803501_699db97c87e1d2c58bf023ad4e937f7b_37288940_rle_crop_3940239316_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b63ed2aa1773d8ef3bdbd95066dcf041_28830723.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c7d7ed2950e6757628e1bd4d9cebbaa9_38683345.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/45ef92ef08eb6d1f8fdaf221a431bfcc_60328224.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b63ed2aa1773d8ef3bdbd95066dcf041_33162959.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c7d7ed2950e6757628e1bd4d9cebbaa9_90613230.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/45ef92ef08eb6d1f8fdaf221a431bfcc_65040608.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b63ed2aa1773d8ef3bdbd95066dcf041_69631664.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c7d7ed2950e6757628e1bd4d9cebbaa9_68915402.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/45ef92ef08eb6d1f8fdaf221a431bfcc_89461690.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/08a2d9a134d80a4b1f25e039660144ab_57743094.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2ce67d67d697cb1c283ce695fc6237f1_73806096.png change filename to text .imagette264321941756801741/ imagette264321941756801741/1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229690_0.png.png imagette264321941756801741/1756801287_2907411_1380802518_74ed18cb710bb56bb9d117038493d4bb_63587933_rle_crop_3940229711_0.png.png imagette264321941756801741/1756801627_2927369_1380803551_613b1ac35083577ddc259e674d0b9410_43521774_rle_crop_3940238992_0.png.png imagette264321941756801741/1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232221_0.png.png imagette264321941756801741/1756801287_2907411_1380802724_74ed18cb710bb56bb9d117038493d4bb_34516610_rle_crop_3940232242_0.png.png imagette264321941756801741/1756801646_2927708_1380803501_699db97c87e1d2c58bf023ad4e937f7b_37288940_rle_crop_3940239316_0.png.png imagette264321941756801741/1756801165_2901307_1380802518_74ed18cb710bb56bb9d117038493d4bb_63587933_rle_crop_3940229711_0.png.png imagette264321941756801741/1756801287_2907411_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229692_0.png.png imagette264321941756801741/1756801506_2920218_1380803442_afe4b4b7df0e4d6720d8f64ce012008f_99130461_rle_crop_3940237298_0.png.png imagette264321941756801741/1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229690_0.png.png imagette264321941756801741/1756801165_2901307_1380802520_22d9152a3b508ec1f57e1ff42ace0447_13915451_rle_crop_3940229692_0.png.png imagette264321941756801741/1756801287_2907411_1380802725_22d9152a3b508ec1f57e1ff42ace0447_31658533_rle_crop_3940232223_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/58a33f6592585053ed871297883b46fb_56779518.png imagette264321941756801741 26432200 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=26432200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380803271: '1756801165_2901307_1380802516_9e8bf7ba486a73b326e5a996343fb179_88210276_rle_crop_3940229720_0.png', 1380803411: '1756801266_2906817_1380802851_6d6a84523005e7c0193f97802fda7d22_28948189_rle_crop_3940231645_0.png', 1380803451: '1756801287_2907411_1380802723_9e8bf7ba486a73b326e5a996343fb179_80012933_rle_crop_3940232251_0.png', 1380803452: '1756801287_2907411_1380802516_9e8bf7ba486a73b326e5a996343fb179_88210276_rle_crop_3940229720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/cc3433fdd7e4c7c34736734360232679_76822403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/3f13e6862629de26f69c1baed1889d27_33995214.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/cc3433fdd7e4c7c34736734360232679_38272721.png change filename to text .imagette264322001756801742/ imagette264322001756801742/1756801165_2901307_1380802516_9e8bf7ba486a73b326e5a996343fb179_88210276_rle_crop_3940229720_0.png.png imagette264322001756801742/1756801266_2906817_1380802851_6d6a84523005e7c0193f97802fda7d22_28948189_rle_crop_3940231645_0.png.png imagette264322001756801742/1756801287_2907411_1380802723_9e8bf7ba486a73b326e5a996343fb179_80012933_rle_crop_3940232251_0.png.png imagette264322001756801742/1756801287_2907411_1380802516_9e8bf7ba486a73b326e5a996343fb179_88210276_rle_crop_3940229720_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/cc3433fdd7e4c7c34736734360232679_76763661.png imagette264322001756801742 26432201 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=26432201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380804066: '1756801627_2927369_1380803555_e960d4d4ebda8a1cf2859fcf22cebffa_13863107_rle_crop_3940238946_0.png'} change filename to text .imagette264322011756801742/ imagette264322011756801742/1756801627_2927369_1380803555_e960d4d4ebda8a1cf2859fcf22cebffa_13863107_rle_crop_3940238946_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a5d3ed81c1d60c70d5cfb9b28d339281_45355226.png imagette264322011756801742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26432175 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26432206,26432207,26432208,26432209,26432210,26432211,26432212,26432213,26432214,26432215,26432216,26432217?tags=Teint_Dans_La_Masse,environnement,flou,mal_croppe,cartonnette,metal,Carton_gris,Carton_brun,plastique,kraft,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1380804348] : ('0.02188517164423511',) no score found for photo 1380804348 We are sending mail with results at report@fotonower.com args[1380804346] : ('0.02188517164423511',) no score found for photo 1380804346 We are sending mail with results at report@fotonower.com args[1380804344] : ('0.02188517164423511',) no score found for photo 1380804344 We are sending mail with results at report@fotonower.com args[1380804342] : ('0.02188517164423511',) no score found for photo 1380804342 We are sending mail with results at report@fotonower.com args[1380804340] : ('0.02188517164423511',) no score found for photo 1380804340 We are sending mail with results at report@fotonower.com args[1380803975] : ('0.02188517164423511',) no score found for photo 1380803975 We are sending mail with results at report@fotonower.com args[1380803972] : ('0.02188517164423511',) no score found for photo 1380803972 We are sending mail with results at report@fotonower.com args[1380803967] : ('0.02188517164423511',) no score found for photo 1380803967 We are sending mail with results at report@fotonower.com args[1380803963] : ('0.02188517164423511',) no score found for photo 1380803963 We are sending mail with results at report@fotonower.com args[1380803959] : ('0.02188517164423511',) no score found for photo 1380803959 We are sending mail with results at report@fotonower.com args[1380803902] : ('0.02188517164423511',) no score found for photo 1380803902 We are sending mail with results at report@fotonower.com args[1380803901] : ('0.02188517164423511',) no score found for photo 1380803901 We are sending mail with results at report@fotonower.com args[1380803900] : ('0.02188517164423511',) no score found for photo 1380803900 We are sending mail with results at report@fotonower.com args[1380803898] : ('0.02188517164423511',) no score found for photo 1380803898 We are sending mail with results at report@fotonower.com args[1380803897] : ('0.02188517164423511',) no score found for photo 1380803897 We are sending mail with results at report@fotonower.com args[1380803896] : ('0.02188517164423511',) no score found for photo 1380803896 We are sending mail with results at report@fotonower.com refus_total : 0.02188517164423511 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=26432175 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_P26432175_02-09-2025_10_29_00.pdf results_Auto_P26432175_02-09-2025_10_29_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_29_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26432175','results_Auto_P26432175_02-09-2025_10_29_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_29_00.pdf','pdf','','0.18','0.02188517164423511') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26432175]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] map_info['map_portfolio_photo'] : {26432175: [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896, 1380803734, 1380803732, 1380803730, 1380803728, 1380803726, 1380803724, 1380803604, 1380803603, 1380803602, 1380803556, 1380803555, 1380803554, 1380803553, 1380803552, 1380803551, 1380803503, 1380803502, 1380803501, 1380803443, 1380803442, 1380803441, 1380803440, 1380803439, 1380803391, 1380803390, 1380803389, 1380803388, 1380803387, 1380803386, 1380803292, 1380803290, 1380803289, 1380803288, 1380803287, 1380803029, 1380803026, 1380803023, 1380803018, 1380803015, 1380802936, 1380802853, 1380802851, 1380802850, 1380802849, 1380802848, 1380802726, 1380802725, 1380802724, 1380802723, 1380802689, 1380802688, 1380802687, 1380802686, 1380802684, 1380802683, 1380802522, 1380802520, 1380802518, 1380802516, 1380802514]} final : False mtd_id 4302 list_pids : [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] 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, '3650915') ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '26432175', '1380804348', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915')] time used for this insertion : 0.020594358444213867 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9447824954986572 time spend to save output : 0.020983219146728516 total time spend for step 4 : 3.9657657146453857 step5:split_time_score Tue Sep 2 10:29:03 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 : ['26432175'] 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 : [('26432175',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26432175) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380804342: {'path': 'temp/1756801739_2540237_1380804342_d9ee628b39db694d4d3640dda09bfa14_62892486.jpg', 'extension': 'jpg'}, 1380804344: {'path': 'temp/1756801739_2540237_1380804344_c425a0ba3760f43205afdd35e1ea6102_82895336.jpg', 'extension': 'jpg'}, 1380804346: {'path': 'temp/1756801739_2540237_1380804346_7f70b62596ae4103ee2da66ffe7176b1_35655686.jpg', 'extension': 'jpg'}, 1380804348: {'path': 'temp/1756801739_2540237_1380804348_80e189391f84ee0dbd63b56ef1206370_9867163.jpg', 'extension': 'jpg'}, 1380803901: {'path': 'temp/1756801739_2540237_1380803901_0e83b1cb193481b1998faaefe49c1ea4_43502882.jpg', 'extension': 'jpg'}, 1380803902: {'path': 'temp/1756801739_2540237_1380803902_0c786563d30b6e55c012de4c9e4caab8_29302359.jpg', 'extension': 'jpg'}, 1380803959: {'path': 'temp/1756801739_2540237_1380803959_5b4e3900098ecd93c4f0955275cc4ced_94292425.jpg', 'extension': 'jpg'}, 1380803963: {'path': 'temp/1756801739_2540237_1380803963_a6d46f50f767791499d26a6cc39df809_89278811.jpg', 'extension': 'jpg'}, 1380803967: {'path': 'temp/1756801739_2540237_1380803967_f47128bfb6717e115dd1402288ed5a23_70890453.jpg', 'extension': 'jpg'}, 1380803972: {'path': 'temp/1756801739_2540237_1380803972_721bd1eabbddee4f98aa4700de166841_41627864.jpg', 'extension': 'jpg'}, 1380803975: {'path': 'temp/1756801739_2540237_1380803975_d282fefd83be99cf30b67c6851e1a9fd_13777765.jpg', 'extension': 'jpg'}, 1380804340: {'path': 'temp/1756801739_2540237_1380804340_1ae9fac724fac47a6be0df82caaeddf6_83041249.jpg', 'extension': 'jpg'}, 1380803896: {'path': 'temp/1756801739_2540237_1380803896_b5c82027e56e6fce61f4fa2d8153d9cb_60424743.jpg', 'extension': 'jpg'}, 1380803897: {'path': 'temp/1756801739_2540237_1380803897_d30a51f074da43f2254ace19893b0056_66097157.jpg', 'extension': 'jpg'}, 1380803898: {'path': 'temp/1756801739_2540237_1380803898_72fc24d41bb28c33274febba77a6f5f7_3044526.jpg', 'extension': 'jpg'}, 1380803900: {'path': 'temp/1756801739_2540237_1380803900_05af30b4d69a8fa40e27f0e63994aa7c_48037158.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 = 26432175; (('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 = 26432175 group by h (('10', 76),) 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=26432175 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 (26432175) 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 (26432175) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02092025 26432175 Nombre de photos uploadées : 76 / 23040 (0%) 02092025 26432175 Nombre de photos taguées (types de déchets): 0 / 76 (0%) 02092025 26432175 Nombre de photos taguées (volume) : 0 / 76 (0%) [{'photo_id': 1380802726, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/6c19a8a90618418a784fccfa06a55e02_76999943.jpg', 'username': None, 'uploaded_at': 1756801048, 'text': 'image_02092025_10_15_04_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380802522, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/6c19a8a90618418a784fccfa06a55e02_37698903.jpg', 'username': None, 'uploaded_at': 1756800972, 'text': 'image_02092025_10_15_04_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380802520, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/22d9152a3b508ec1f57e1ff42ace0447_13915451.jpg', 'username': None, 'uploaded_at': 1756800972, 'text': 'image_02092025_10_15_14_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380802725, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/22d9152a3b508ec1f57e1ff42ace0447_31658533.jpg', 'username': None, 'uploaded_at': 1756801048, 'text': 'image_02092025_10_15_14_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 2.3603439331054688e-05 ???????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0052661895751953125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26432175, '2025-09-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2213047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2291579246520996 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= 2213047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26419800, 'dashboard_result_id': 14579793, '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_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26420091, 'dashboard_result_id': 14579794, '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_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26420215, 'dashboard_result_id': 14579795, '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_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26420269, 'dashboard_result_id': 14579796, '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_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26420665, 'dashboard_result_id': 14579797, '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_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26420821, 'dashboard_result_id': 14579798, '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_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26421082, 'dashboard_result_id': 14579799, '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_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26421275, 'dashboard_result_id': 14579800, '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_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26421697, 'dashboard_result_id': 14579801, '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_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26421773, 'dashboard_result_id': 14579802, '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_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26421852, 'dashboard_result_id': 14579803, '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_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26422348, 'dashboard_result_id': 14579804, '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_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26422569, 'dashboard_result_id': 14579805, '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_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26422847, 'dashboard_result_id': 14579806, '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_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26423247, 'dashboard_result_id': 14579807, '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_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26423697, 'dashboard_result_id': 14579808, '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_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26425366, 'dashboard_result_id': 14579809, '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_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26425367, 'dashboard_result_id': 14579810, '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_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26425368, 'dashboard_result_id': 14579811, '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_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26426242, 'dashboard_result_id': 14579812, '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_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26426742, 'dashboard_result_id': 14579813, '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_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26426922, 'dashboard_result_id': 14579814, '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_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26427649, 'dashboard_result_id': 14579815, '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_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26427997, 'dashboard_result_id': 14579816, '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_P26427997_02-09-2025_09_01_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26429064, 'dashboard_result_id': 14579817, '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_P26429064_02-09-2025_09_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26429066, 'dashboard_result_id': 14579818, '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_P26429066_02-09-2025_09_00_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26429069, 'dashboard_result_id': 14579819, '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_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26430560, 'dashboard_result_id': 14579820, '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_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26431021, 'dashboard_result_id': 14579821, '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_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26431877, 'dashboard_result_id': 14579822, '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_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2223125, 'mtr_portfolio_id': 26432175, 'dashboard_result_id': 14579823, '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_P26432175_02-09-2025_10_26_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, '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 = 26419800 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': 3649621, 'mtr_portfolio_id': 26419800, 'created_at': datetime.datetime(2025, 9, 2, 6, 10, 40), 'result': '0.03686026602506332', 'result_long': None, 'result_double': None}] Qualite : 0.03686026602506332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26419800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26419800 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_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}" where mtr_portfolio_id = 26419800 and dashboard_run_id = 2223125 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`=26419800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579793, 0.03686026602506332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, '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 = 26420091 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': 3649622, 'mtr_portfolio_id': 26420091, 'created_at': datetime.datetime(2025, 9, 2, 6, 11), 'result': '0.0030135671054280005', 'result_long': None, 'result_double': None}] Qualite : 0.0030135671054280005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420091 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_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}" where mtr_portfolio_id = 26420091 and dashboard_run_id = 2223125 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`=26420091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579794, 0.0030135671054280005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, '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 = 26420215 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': 3649623, 'mtr_portfolio_id': 26420215, 'created_at': datetime.datetime(2025, 9, 2, 6, 11, 30), 'result': '0.021580946659637567', 'result_long': None, 'result_double': None}] Qualite : 0.021580946659637567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420215 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_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}" where mtr_portfolio_id = 26420215 and dashboard_run_id = 2223125 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`=26420215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579795, 0.021580946659637567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, '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 = 26420269 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': 3649624, 'mtr_portfolio_id': 26420269, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 1), 'result': '0.024971925645642143', 'result_long': None, 'result_double': None}] Qualite : 0.024971925645642143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420269 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_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}" where mtr_portfolio_id = 26420269 and dashboard_run_id = 2223125 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`=26420269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579796, 0.024971925645642143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, '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 = 26420665 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': 3649625, 'mtr_portfolio_id': 26420665, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 29), 'result': '0.11729822377686816', 'result_long': None, 'result_double': None}] Qualite : 0.11729822377686816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420665 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_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}" where mtr_portfolio_id = 26420665 and dashboard_run_id = 2223125 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`=26420665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579797, 0.11729822377686816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, '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 = 26420821 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': 3649626, 'mtr_portfolio_id': 26420821, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 58), 'result': '0.017734543541633403', 'result_long': None, 'result_double': None}] Qualite : 0.017734543541633403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420821 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_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}" where mtr_portfolio_id = 26420821 and dashboard_run_id = 2223125 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`=26420821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579798, 0.017734543541633403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, '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 = 26421082 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': 3649627, 'mtr_portfolio_id': 26421082, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 30), 'result': '0.047804041156876025', 'result_long': None, 'result_double': None}] Qualite : 0.047804041156876025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421082 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_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}" where mtr_portfolio_id = 26421082 and dashboard_run_id = 2223125 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`=26421082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579799, 0.047804041156876025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, '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 = 26421275 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': 3649628, 'mtr_portfolio_id': 26421275, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 59), 'result': '0.02803459362490644', 'result_long': None, 'result_double': None}] Qualite : 0.02803459362490644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421275 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_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}" where mtr_portfolio_id = 26421275 and dashboard_run_id = 2223125 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`=26421275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579800, 0.02803459362490644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, '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 = 26421697 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': 3649629, 'mtr_portfolio_id': 26421697, 'created_at': datetime.datetime(2025, 9, 2, 6, 14, 28), 'result': '0.032193565636688314', 'result_long': None, 'result_double': None}] Qualite : 0.032193565636688314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421697 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_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}" where mtr_portfolio_id = 26421697 and dashboard_run_id = 2223125 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`=26421697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579801, 0.032193565636688314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, '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 = 26421773 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': 3649630, 'mtr_portfolio_id': 26421773, 'created_at': datetime.datetime(2025, 9, 2, 6, 15), 'result': '0.041312166364478355', 'result_long': None, 'result_double': None}] Qualite : 0.041312166364478355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421773 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_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}" where mtr_portfolio_id = 26421773 and dashboard_run_id = 2223125 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`=26421773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579802, 0.041312166364478355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, '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 = 26421852 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': 3649631, 'mtr_portfolio_id': 26421852, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 28), 'result': '0.011354407159164243', 'result_long': None, 'result_double': None}] Qualite : 0.011354407159164243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421852 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_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}" where mtr_portfolio_id = 26421852 and dashboard_run_id = 2223125 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`=26421852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579803, 0.011354407159164243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, '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 = 26422348 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': 3649634, 'mtr_portfolio_id': 26422348, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 40), 'result': '0.06504504754248332', 'result_long': None, 'result_double': None}] Qualite : 0.06504504754248332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422348 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_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}" where mtr_portfolio_id = 26422348 and dashboard_run_id = 2223125 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`=26422348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579804, 0.06504504754248332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, '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 = 26422569 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': 3649635, 'mtr_portfolio_id': 26422569, 'created_at': datetime.datetime(2025, 9, 2, 5, 40, 39), 'result': '0.05665505530903546', 'result_long': None, 'result_double': None}] Qualite : 0.05665505530903546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422569 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_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}" where mtr_portfolio_id = 26422569 and dashboard_run_id = 2223125 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`=26422569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579805, 0.05665505530903546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, '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 = 26422847 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': 3649554, 'mtr_portfolio_id': 26422847, 'created_at': datetime.datetime(2025, 9, 2, 5, 49), 'result': '0.050945077666736796', 'result_long': None, 'result_double': None}] Qualite : 0.050945077666736796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422847 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_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}" where mtr_portfolio_id = 26422847 and dashboard_run_id = 2223125 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`=26422847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579806, 0.050945077666736796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, '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 = 26423247 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': 3649728, 'mtr_portfolio_id': 26423247, 'created_at': datetime.datetime(2025, 9, 2, 6, 3, 28), 'result': '0.04732348082075002', 'result_long': None, 'result_double': None}] Qualite : 0.04732348082075002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423247 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_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}" where mtr_portfolio_id = 26423247 and dashboard_run_id = 2223125 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`=26423247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579807, 0.04732348082075002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, '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 = 26423697 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': 3649799, 'mtr_portfolio_id': 26423697, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 41), 'result': '0.09345634243956515', 'result_long': None, 'result_double': None}] Qualite : 0.09345634243956515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423697 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_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}" where mtr_portfolio_id = 26423697 and dashboard_run_id = 2223125 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`=26423697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579808, 0.09345634243956515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, '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 = 26425366 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': 3650072, 'mtr_portfolio_id': 26425366, 'created_at': datetime.datetime(2025, 9, 2, 7, 1, 3), 'result': '0.051827515755475985', 'result_long': None, 'result_double': None}] Qualite : 0.051827515755475985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425366 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_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}" where mtr_portfolio_id = 26425366 and dashboard_run_id = 2223125 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`=26425366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579809, 0.051827515755475985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, '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 = 26425367 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': 3650073, 'mtr_portfolio_id': 26425367, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 33), 'result': '0.04827498812658768', 'result_long': None, 'result_double': None}] Qualite : 0.04827498812658768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425367 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_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}" where mtr_portfolio_id = 26425367 and dashboard_run_id = 2223125 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`=26425367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579810, 0.04827498812658768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, '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 = 26425368 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': 3650074, 'mtr_portfolio_id': 26425368, 'created_at': datetime.datetime(2025, 9, 2, 7, 16, 58), 'result': '0.0630449193859071', 'result_long': None, 'result_double': None}] Qualite : 0.0630449193859071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425368 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_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}" where mtr_portfolio_id = 26425368 and dashboard_run_id = 2223125 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`=26425368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579811, 0.0630449193859071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, '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 = 26426242 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': 3650197, 'mtr_portfolio_id': 26426242, 'created_at': datetime.datetime(2025, 9, 2, 7, 24, 57), 'result': '0.04403825290894583', 'result_long': None, 'result_double': None}] Qualite : 0.04403825290894583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426242 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_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}" where mtr_portfolio_id = 26426242 and dashboard_run_id = 2223125 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`=26426242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579812, 0.04403825290894583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, '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 = 26426742 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': 3650241, 'mtr_portfolio_id': 26426742, 'created_at': datetime.datetime(2025, 9, 2, 7, 33), 'result': '0.06966086867563821', 'result_long': None, 'result_double': None}] Qualite : 0.06966086867563821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426742 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_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}" where mtr_portfolio_id = 26426742 and dashboard_run_id = 2223125 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`=26426742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579813, 0.06966086867563821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, '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 = 26426922 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': 3650264, 'mtr_portfolio_id': 26426922, 'created_at': datetime.datetime(2025, 9, 2, 7, 48, 58), 'result': '0.07815691925885802', 'result_long': None, 'result_double': None}] Qualite : 0.07815691925885802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426922 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_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}" where mtr_portfolio_id = 26426922 and dashboard_run_id = 2223125 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`=26426922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579814, 0.07815691925885802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, '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 = 26427649 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': 3650333, 'mtr_portfolio_id': 26427649, 'created_at': datetime.datetime(2025, 9, 2, 8, 3, 1), 'result': '0.0064983107930800255', 'result_long': None, 'result_double': None}] Qualite : 0.0064983107930800255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427649 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_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}" where mtr_portfolio_id = 26427649 and dashboard_run_id = 2223125 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`=26427649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579815, 0.0064983107930800255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, '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 = 26427997 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 = 26427997 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 = 26427997 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 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 = 26427997 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 = 26427997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_09_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427997 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_P26427997_02-09-2025_09_01_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}" where mtr_portfolio_id = 26427997 and dashboard_run_id = 2223125 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 = 26429064 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 = 26429064 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 = 26429064 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 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 = 26429064 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 = 26429064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_09_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429064 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_P26429064_02-09-2025_09_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}" where mtr_portfolio_id = 26429064 and dashboard_run_id = 2223125 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 = 26429066 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 = 26429066 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 = 26429066 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 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 = 26429066 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 = 26429066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_09_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429066 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_P26429066_02-09-2025_09_00_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}" where mtr_portfolio_id = 26429066 and dashboard_run_id = 2223125 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 = 26429069 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': 3650450, 'mtr_portfolio_id': 26429069, 'created_at': datetime.datetime(2025, 9, 2, 9, 32, 57), 'result': '0.08166377855555111', 'result_long': None, 'result_double': None}] Qualite : 0.08166377855555111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429069 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_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}" where mtr_portfolio_id = 26429069 and dashboard_run_id = 2223125 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`=26429069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579819, 0.08166377855555111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, '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 = 26430560 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': 3650688, 'mtr_portfolio_id': 26430560, 'created_at': datetime.datetime(2025, 9, 2, 9, 49), 'result': '0.06947375716795579', 'result_long': None, 'result_double': None}] Qualite : 0.06947375716795579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26430560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26430560 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_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}" where mtr_portfolio_id = 26430560 and dashboard_run_id = 2223127 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`=26430560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579820, 0.06947375716795579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, '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 = 26431021 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': 3650737, 'mtr_portfolio_id': 26431021, 'created_at': datetime.datetime(2025, 9, 2, 10, 3, 28), 'result': '0.04648616721703691', 'result_long': None, 'result_double': None}] Qualite : 0.04648616721703691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431021 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_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}" where mtr_portfolio_id = 26431021 and dashboard_run_id = 2223127 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`=26431021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579821, 0.04648616721703691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, '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 = 26431877 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': 3650867, 'mtr_portfolio_id': 26431877, 'created_at': datetime.datetime(2025, 9, 2, 10, 18, 29), 'result': '0.029112940950147572', 'result_long': None, 'result_double': None}] Qualite : 0.029112940950147572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431877 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_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}" where mtr_portfolio_id = 26431877 and dashboard_run_id = 2223127 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`=26431877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579822, 0.029112940950147572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, '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 = 26432175 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': 3650915, 'mtr_portfolio_id': 26432175, 'created_at': datetime.datetime(2025, 9, 2, 10, 28, 59), 'result': '0.02188517164423511', 'result_long': None, 'result_double': None}] Qualite : 0.02188517164423511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26432175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26432175 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_P26432175_02-09-2025_10_29_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}" where mtr_portfolio_id = 26432175 and dashboard_run_id = 2223127 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`=26432175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14579823, 0.02188517164423511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_29_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, '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 (26419800,26420091,26420215,26420269,26420665,26420821,26421082,26421275,26421697,26421773,26421852,26422348,26422569,26422847,26423247,26423697,26425366,26425367,26425368,26426242,26426742,26426922,26427649,26427997,26429064,26429066,26429069,26430560,26431021,26431877,26432175) result : ((1380746927,), (1380746929,), (1380747076,), (1380747077,), (1380747078,), (1380747090,), (1380747136,), (1380747157,), (1380747158,), (1380747673,), (1380747675,), (1380747677,), (1380747745,), (1380747808,), (1380748022,), (1380747872,), (1380748234,), (1380748235,), (1380748316,), (1380748660,), (1380748661,), (1380748801,), (1380748822,), (1380748859,), (1380748919,), (1380748922,), (1380748976,), (1380749079,), (1380749223,), (1380749240,), (1380749270,), (1380749336,), (1380749439,), (1380749491,), (1380749492,), (1380750502,), (1380750974,), (1380750975,), (1380751018,), (1380751029,), (1380754439,), (1380754438,), (1380754608,), (1380754609,), (1380754648,), (1380754649,), (1380754650,), (1380754672,), (1380754674,), (1380754675,), (1380754676,), (1380754744,), (1380754745,), (1380754788,), (1380754789,), (1380754811,), (1380754832,), (1380754849,), (1380754871,), (1380754892,), (1380754909,), (1380754959,), (1380754956,), (1380755028,), (1380755060,), (1380755121,), (1380755186,), (1380755282,), (1380755347,), (1380755348,), (1380755349,), (1380755585,), (1380755586,), (1380755587,), (1380756011,), (1380756763,), (1380756970,), (1380756971,), (1380757095,), (1380757478,), (1380757480,), (1380757482,), (1380757690,), (1380757702,), (1380757716,), (1380757728,), (1380757770,), (1380757771,), (1380757772,), (1380757830,), (1380757855,), (1380757876,), (1380757877,), (1380757906,), (1380757957,), (1380757979,), (1380757992,), (1380758050,), (1380758101,), (1380758102,), (1380758103,), (1380758233,), (1380761735,), (1380761817,), (1380761818,), (1380761819,), (1380761902,), (1380761964,), (1380761985,), (1380762007,), (1380762099,), (1380762149,), (1380762258,), (1380762259,), (1380762275,), (1380762316,), (1380762355,), (1380762416,), (1380762417,), (1380762472,), (1380762590,), (1380762650,), (1380762651,), (1380762792,), (1380762847,), (1380762848,), (1380762849,), (1380763516,), (1380763636,), (1380763697,), (1380769131,), (1380769132,), (1380769133,), (1380769203,), (1380769204,), (1380769205,), (1380769244,), (1380769245,), (1380769313,), (1380769314,), (1380769343,), (1380769344,), (1380769345,), (1380769372,), (1380769373,), (1380769405,), (1380769406,), (1380769407,), (1380769408,), (1380769409,), (1380769436,), (1380769471,), (1380769486,), (1380769502,), (1380769522,), (1380769523,), (1380769524,), (1380769525,), (1380769550,), (1380769552,), (1380769553,), (1380769554,), (1380769614,), (1380769615,), (1380769616,), (1380769617,), (1380769618,), (1380769644,), (1380769645,), (1380769646,), (1380769647,), (1380769648,), (1380769649,), (1380769700,), (1380769701,), (1380769702,), (1380769703,), (1380769730,), (1380769731,), (1380769732,), (1380769758,), (1380769759,), (1380769760,), (1380769761,), (1380769784,), (1380769785,), (1380769786,), (1380769787,), (1380769807,), (1380769808,), (1380769809,), (1380769810,), (1380769811,), (1380769812,), (1380769816,), (1380769828,), (1380769829,), (1380769830,), (1380769831,), (1380769855,), (1380769856,), (1380769857,), (1380769858,), (1380769859,), (1380769860,), (1380769883,), (1380769884,), (1380769885,), (1380769886,), (1380769887,), (1380769888,), (1380769916,), (1380769912,), (1380769913,), (1380769914,), (1380769915,), (1380769934,), (1380769935,), (1380769936,), (1380769937,), (1380769938,), (1380769939,), (1380769979,), (1380769980,), (1380769981,), (1380769982,), (1380770014,), (1380770015,), (1380770016,), (1380770017,), (1380770018,), (1380770019,), (1380770052,), (1380770053,), (1380770054,), (1380770055,), (1380770056,), (1380770057,), (1380770083,), (1380770085,), (1380770086,), (1380770087,), (1380770088,), (1380770089,), (1380770113,), (1380770114,), (1380770115,), (1380770116,), (1380770117,), (1380770149,), (1380770151,), (1380770152,), (1380770153,), (1380770154,), (1380770155,), (1380770182,), (1380770183,), (1380770184,), (1380770185,), (1380770218,), (1380770219,), (1380770220,), (1380770221,), (1380770223,), (1380770225,), (1380770246,), (1380770247,), (1380770248,), (1380770249,), (1380770320,), (1380770321,), (1380770322,), (1380770323,), (1380770324,), (1380770325,), (1380770351,), (1380770352,), (1380770353,), (1380770354,), (1380770386,), (1380770424,), (1380770382,), (1380770383,), (1380770384,), (1380770385,), (1380770407,), (1380770408,), (1380770409,), (1380770410,), (1380770412,), (1380770413,), (1380770420,), (1380770421,), (1380770422,), (1380770423,), (1380770444,), (1380770445,), (1380770446,), (1380770447,), (1380770476,), (1380770477,), (1380770478,), (1380770479,), (1380770480,), (1380770481,), (1380770506,), (1380770507,), (1380770508,), (1380770509,), (1380770510,), (1380770511,), (1380770555,), (1380770556,), (1380770557,), (1380770558,), (1380770587,), (1380770588,), (1380770589,), (1380770590,), (1380770592,), (1380770629,), (1380770630,), (1380770631,), (1380770653,), (1380770661,), (1380770662,), (1380770664,), (1380770665,), (1380770666,), (1380770688,), (1380770689,), (1380770690,), (1380770691,), (1380770692,), (1380770693,), (1380770712,), (1380770713,), (1380770714,), (1380770744,), (1380770746,), (1380770748,), (1380770749,), (1380770750,), (1380770751,), (1380770755,), (1380770756,), (1380770757,), (1380771045,), (1380771047,), (1380771049,), (1380771051,), (1380771053,), (1380771569,), (1380771571,), (1380771575,), (1380771578,), (1380771581,), (1380771641,), (1380771643,), (1380771646,), (1380771648,), (1380771650,), (1380772008,), (1380772002,), (1380772004,), (1380772006,), (1380772369,), (1380772371,), (1380772373,), (1380772375,), (1380772377,), (1380772755,), (1380772757,), (1380772759,), (1380772761,), (1380772938,), (1380772940,), (1380772942,), (1380772944,), (1380773103,), (1380773104,), (1380773105,), (1380773106,), (1380773107,), (1380773138,), (1380773139,), (1380773140,), (1380773141,), (1380773142,), (1380773143,), (1380773176,), (1380773177,), (1380773178,), (1380773179,), (1380773180,), (1380773181,), (1380773186,), (1380773187,), (1380773215,), (1380773249,), (1380773291,), (1380773392,), (1380773414,), (1380773415,), (1380773416,), (1380773417,), (1380773418,), (1380773454,), (1380773479,), (1380773450,), (1380773451,), (1380773452,), (1380773453,), (1380773468,), (1380773469,), (1380773470,), (1380773471,), (1380773472,), (1380773473,), (1380773477,), (1380773513,), (1380773514,), (1380773515,), (1380773517,), (1380773519,), (1380773547,), (1380773548,), (1380773549,), (1380773550,), (1380773551,), (1380773588,), (1380773589,), (1380773590,), (1380773591,), (1380773592,), (1380773618,), (1380773619,), (1380773656,), (1380773657,), (1380773658,), (1380773659,), (1380773660,), (1380773682,), (1380773683,), (1380773684,), (1380773685,), (1380773686,), (1380773687,), (1380773785,), (1380773786,), (1380773787,), (1380773788,), (1380773818,), (1380773819,), (1380773820,), (1380773821,), (1380773846,), (1380773847,), (1380773894,), (1380773895,), (1380773896,), (1380773897,), (1380773898,), (1380773935,), (1380773936,), (1380773937,), (1380773938,), (1380773939,), (1380773955,), (1380773956,), (1380773957,), (1380773958,), (1380773959,), (1380773995,), (1380773996,), (1380773997,), (1380773998,), (1380774020,), (1380774014,), (1380774018,), (1380774019,), (1380774056,), (1380774057,), (1380774058,), (1380774059,), (1380774060,), (1380774079,), (1380774080,), (1380774119,), (1380774121,), (1380774123,), (1380774124,), (1380774160,), (1380774161,), (1380774162,), (1380774163,), (1380774200,), (1380774201,), (1380774202,), (1380774203,), (1380774217,), (1380774219,), (1380774220,), (1380774221,), (1380774222,), (1380774223,), (1380774226,), (1380774227,), (1380774253,), (1380774254,), (1380774255,), (1380774256,), (1380774283,), (1380774284,), (1380774311,), (1380774312,), (1380774313,), (1380774314,), (1380774315,), (1380774336,), (1380774337,), (1380774338,), (1380774339,), (1380774340,), (1380774341,), (1380774383,), (1380774384,), (1380774385,), (1380774386,), (1380774387,), (1380774405,), (1380774406,), (1380774407,), (1380774408,), (1380774447,), (1380774448,), (1380774449,), (1380774450,), (1380774451,), (1380774475,), (1380774476,), (1380774478,), (1380774480,), (1380774541,), (1380774567,), (1380774537,), (1380774538,), (1380774539,), (1380774540,), (1380774556,), (1380774557,), (1380774558,), (1380774559,), (1380774560,), (1380774561,), (1380774565,), (1380774585,), (1380774586,), (1380774587,), (1380774588,), (1380774589,), (1380774609,), (1380774612,), (1380774613,), (1380774614,), (1380774615,), (1380774616,), (1380774648,), (1380774649,), (1380774650,), (1380774669,), (1380774670,), (1380774671,), (1380774672,), (1380774700,), (1380774701,), (1380774702,), (1380774703,), (1380774704,), (1380774719,), (1380774720,), (1380774721,), (1380774722,), (1380774749,), (1380774750,), (1380774751,), (1380774752,), (1380774753,), (1380774781,), (1380774782,), (1380774783,), (1380774784,), (1380774785,), (1380774786,), (1380774823,), (1380774824,), (1380774825,), (1380774847,), (1380774848,), (1380774849,), (1380774850,), (1380774851,), (1380774852,), (1380774875,), (1380774879,), (1380774880,), (1380774881,), (1380774882,), (1380775553,), (1380775557,), (1380775561,), (1380775565,), (1380775569,), (1380775712,), (1380775716,), (1380776439,), (1380776431,), (1380776433,), (1380776435,), (1380776437,), (1380776936,), (1380776938,), (1380776940,), (1380776942,), (1380776944,), (1380777177,), (1380777178,), (1380777179,), (1380777180,), (1380777181,), (1380777212,), (1380777213,), (1380777214,), (1380777215,), (1380777238,), (1380777239,), (1380777241,), (1380777242,), (1380777281,), (1380777282,), (1380777283,), (1380777297,), (1380777298,), (1380777299,), (1380777300,), (1380777301,), (1380777303,), (1380777312,), (1380777343,), (1380777344,), (1380777345,), (1380777346,), (1380777347,), (1380777374,), (1380777375,), (1380777376,), (1380777377,), (1380777430,), (1380777431,), (1380778686,), (1380778732,), (1380778733,), (1380778734,), (1380778735,), (1380778838,), (1380778839,), (1380778840,), (1380778841,), (1380779077,), (1380779080,), (1380779083,), (1380779086,), (1380779090,), (1380779093,), (1380779160,), (1380779162,), (1380779261,), (1380779262,), (1380779263,), (1380779264,), (1380779301,), (1380779302,), (1380779303,), (1380779304,), (1380779305,), (1380779306,), (1380779338,), (1380779339,), (1380779340,), (1380779342,), (1380779343,), (1380779372,), (1380779370,), (1380779371,), (1380779466,), (1380779467,), (1380779468,), (1380779469,), (1380779470,), (1380779471,), (1380779491,), (1380779492,), (1380779493,), (1380779494,), (1380779540,), (1380779541,), (1380779542,), (1380779619,), (1380779620,), (1380779622,), (1380779723,), (1380779725,), (1380779726,), (1380779727,), (1380779899,), (1380779900,), (1380779901,), (1380779902,), (1380779903,), (1380779904,), (1380779908,), (1380779910,), (1380779930,), (1380779931,), (1380779932,), (1380779933,), (1380779934,), (1380779935,), (1380780002,), (1380780003,), (1380780004,), (1380780005,), (1380780006,), (1380780007,), (1380780030,), (1380780031,), (1380780032,), (1380780086,), (1380780089,), (1380780091,), (1380780092,), (1380780254,), (1380780256,), (1380780258,), (1380780260,), (1380780394,), (1380780395,), (1380780396,), (1380780397,), (1380780398,), (1380780425,), (1380780426,), (1380780484,), (1380780486,), (1380780549,), (1380780712,), (1380780708,), (1380780709,), (1380780711,), (1380781186,), (1380781235,), (1380781330,), (1380781359,), (1380781360,), (1380781361,), (1380781387,), (1380781389,), (1380781390,), (1380781391,), (1380781422,), (1380781423,), (1380781424,), (1380781938,), (1380781940,), (1380782059,), (1380782060,), (1380782061,), (1380782057,), (1380782058,), (1380782093,), (1380782095,), (1380782096,), (1380782115,), (1380782116,), (1380782149,), (1380782151,), (1380782152,), (1380782176,), (1380782214,), (1380782215,), (1380782216,), (1380782217,), (1380782218,), (1380782234,), (1380782235,), (1380782236,), (1380782237,), (1380782238,), (1380782239,), (1380782243,), (1380782275,), (1380782276,), (1380782277,), (1380782278,), (1380782298,), (1380782299,), (1380782300,), (1380782327,), (1380782328,), (1380782344,), (1380782346,), (1380782347,), (1380782563,), (1380782565,), (1380782567,), (1380782569,), (1380782916,), (1380782918,), (1380783225,), (1380783226,), (1380783228,), (1380783230,), (1380783232,), (1380783234,), (1380783523,), (1380783527,), (1380783530,), (1380783533,), (1380783536,), (1380783539,), (1380783963,), (1380784309,), (1380783962,), (1380784126,), (1380784130,), (1380784134,), (1380784138,), (1380784144,), (1380784148,), (1380784305,), (1380784456,), (1380784457,), (1380784458,), (1380784459,), (1380784461,), (1380784887,), (1380784889,), (1380784891,), (1380784893,), (1380785264,), (1380785383,), (1380785386,), (1380785874,), (1380785877,), (1380785880,), (1380785883,), (1380785886,), (1380785889,), (1380786078,), (1380786079,), (1380786080,), (1380786081,), (1380786082,), (1380786519,), (1380786521,), (1380786523,), (1380786680,), (1380786681,), (1380786682,), (1380786735,), (1380786736,), (1380786737,), (1380786785,), (1380786786,), (1380786787,), (1380786788,), (1380786878,), (1380786879,), (1380786881,), (1380786882,), (1380786883,), (1380786884,), (1380786889,), (1380786890,), (1380786911,), (1380786913,), (1380786915,), (1380786917,), (1380787050,), (1380787051,), (1380787052,), (1380787207,), (1380787208,), (1380787209,), (1380787210,), (1380787211,), (1380787353,), (1380787351,), (1380787352,), (1380787432,), (1380787433,), (1380787434,), (1380787557,), (1380787559,), (1380787561,), (1380787563,), (1380787565,), (1380787567,), (1380787990,), (1380787992,), (1380787994,), (1380787996,), (1380788336,), (1380788337,), (1380788338,), (1380788339,), (1380788409,), (1380788410,), (1380788460,), (1380788461,), (1380788462,), (1380788463,), (1380788464,), (1380788532,), (1380788533,), (1380788534,), (1380788589,), (1380788590,), (1380788591,), (1380788804,), (1380788840,), (1380788841,), (1380788959,), (1380789017,), (1380789018,), (1380789117,), (1380789119,), (1380789120,), (1380789121,), (1380789122,), (1380789223,), (1380789344,), (1380789221,), (1380789222,), (1380789338,), (1380789339,), (1380789340,), (1380789341,), (1380789342,), (1380789414,), (1380789416,), (1380789417,), (1380789418,), (1380789538,), (1380789599,), (1380789600,), (1380789601,), (1380789675,), (1380789679,), (1380789717,), (1380789718,), (1380789817,), (1380789818,), (1380789854,), (1380789855,), (1380789945,), (1380789946,), (1380789980,), (1380789981,), (1380790038,), (1380790039,), (1380790040,), (1380790041,), (1380790042,), (1380790140,), (1380790142,), (1380790144,), (1380795572,), (1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,), (1380797714,), (1380797508,), (1380797509,), (1380797510,), (1380797511,), (1380797699,), (1380797700,), (1380797702,), (1380797703,), (1380797704,), (1380797705,), (1380797712,), (1380797713,), (1380797835,), (1380797861,), (1380797862,), (1380797863,), (1380797908,), (1380797909,), (1380797910,), (1380797911,), (1380797912,), (1380797936,), (1380797937,), (1380797938,), (1380797939,), (1380797940,), (1380797976,), (1380797977,), (1380797978,), (1380798000,), (1380798001,), (1380798002,), (1380798095,), (1380798329,), (1380798330,), (1380798331,), (1380798332,), (1380798453,), (1380798454,), (1380798455,), (1380798456,), (1380798457,), (1380798458,), (1380799176,), (1380799178,), (1380799181,), (1380799441,), (1380799437,), (1380799438,), (1380799439,), (1380799440,), (1380799543,), (1380799545,), (1380799548,), (1380799550,), (1380799552,), (1380799875,), (1380799877,), (1380799879,), (1380799881,), (1380799883,), (1380799885,), (1380799996,), (1380799998,), (1380800000,), (1380800001,), (1380800002,), (1380800049,), (1380800050,), (1380800051,), (1380800052,), (1380800053,), (1380800101,), (1380800102,), (1380800103,), (1380800104,), (1380800105,), (1380800153,), (1380800154,), (1380800155,), (1380800157,), (1380800158,), (1380800159,), (1380800168,), (1380800169,), (1380800171,), (1380800173,), (1380800197,), (1380800198,), (1380800199,), (1380800200,), (1380800201,), (1380800202,), (1380800248,), (1380800249,), (1380800250,), (1380800251,), (1380800252,), (1380800253,), (1380800295,), (1380800307,), (1380800308,), (1380800309,), (1380800459,), (1380800461,), (1380800463,), (1380800465,), (1380801646,), (1380801647,), (1380801648,), (1380801649,), (1380801995,), (1380801996,), (1380801997,), (1380801998,), (1380801999,), (1380802000,), (1380802142,), (1380802145,), (1380802147,), (1380802149,), (1380802314,), (1380802316,), (1380802317,), (1380802318,), (1380802319,), (1380802320,), (1380802524,), (1380802727,), (1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02092025': {'nb_upload': 76, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26432175]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] map_info['map_portfolio_photo'] : {26432175: [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896, 1380803734, 1380803732, 1380803730, 1380803728, 1380803726, 1380803724, 1380803604, 1380803603, 1380803602, 1380803556, 1380803555, 1380803554, 1380803553, 1380803552, 1380803551, 1380803503, 1380803502, 1380803501, 1380803443, 1380803442, 1380803441, 1380803440, 1380803439, 1380803391, 1380803390, 1380803389, 1380803388, 1380803387, 1380803386, 1380803292, 1380803290, 1380803289, 1380803288, 1380803287, 1380803029, 1380803026, 1380803023, 1380803018, 1380803015, 1380802936, 1380802853, 1380802851, 1380802850, 1380802849, 1380802848, 1380802726, 1380802725, 1380802724, 1380802723, 1380802689, 1380802688, 1380802687, 1380802686, 1380802684, 1380802683, 1380802522, 1380802520, 1380802518, 1380802516, 1380802514]} final : True mtd_id 4302 list_pids : [1380804348, 1380804346, 1380804344, 1380804342, 1380804340, 1380803975, 1380803972, 1380803967, 1380803963, 1380803959, 1380803902, 1380803901, 1380803900, 1380803898, 1380803897, 1380803896] Looping around the photos to save general results len do output : 1 /26432175Didn'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, '3650915') ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915') ('4302', None, None, None, None, None, None, None, '3650915') ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '26432175', 'None', None, None, None, None, '3650915'), ('4302', '26432175', '1380804348', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804346', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804344', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804342', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380804340', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803975', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803972', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803967', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803963', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803959', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803902', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803901', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803900', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803898', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803897', None, None, None, None, None, '3650915'), ('4302', '26432175', '1380803896', None, None, None, None, None, '3650915')] time used for this insertion : 0.024928569793701172 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9997780323028564 time spend to save output : 0.025208473205566406 total time spend for step 5 : 2.024986505508423 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 (3650915) 2.51user 2.29system 0:10.68elapsed 45%CPU (0avgtext+0avgdata 160728maxresident)k 32488inputs+12960outputs (167major+74892minor)pagefaults 0swaps