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 : 2636465 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 (3829163) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3829163) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473429 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3829163'] with mtr_portfolio_ids : ['27473429'] and first list_photo_ids : [] new path : /proc/2636465/ Name: python3 Umask: 0002 State: R (running) Tgid: 2636465 Ngid: 0 Pid: 2636465 PPid: 2636464 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2636465 NSpid: 2636465 NSpgid: 2635092 NSsid: 2635092 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99088 kB VmRSS: 99088 kB RssAnon: 59844 kB RssFile: 39244 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 59 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2636465', 'Ngid': '0', 'Pid': '2636465', 'PPid': '2636464', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2636465', 'NSpid': '2636465', 'NSpgid': '2635092', 'NSsid': '2635092', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99088 kB', 'VmRSS': '99088 kB', 'RssAnon': '59844 kB', 'RssFile': '39244 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '59', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '2636465', '1106856', '0', '1106856', '865608', '99088', b'', 'marlene', '3829163') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27473429) 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 (3829163 ) ) 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 (27473429) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387548457, 'portfolio_id': 27473429}, {'photo_id': 1387548442, 'portfolio_id': 27473429}, {'photo_id': 1387548441, 'portfolio_id': 27473429}, {'photo_id': 1387548431, 'portfolio_id': 27473429}, {'photo_id': 1387548428, 'portfolio_id': 27473429}, {'photo_id': 1387548410, 'portfolio_id': 27473429}, {'photo_id': 1387548402, 'portfolio_id': 27473429}, {'photo_id': 1387548401, 'portfolio_id': 27473429}, {'photo_id': 1387548398, 'portfolio_id': 27473429}, {'photo_id': 1387548396, 'portfolio_id': 27473429}, {'photo_id': 1387548393, 'portfolio_id': 27473429}, {'photo_id': 1387548392, 'portfolio_id': 27473429}, {'photo_id': 1387548389, 'portfolio_id': 27473429}, {'photo_id': 1387548388, 'portfolio_id': 27473429}, {'photo_id': 1387548372, 'portfolio_id': 27473429}, {'photo_id': 1387548358, 'portfolio_id': 27473429}, {'photo_id': 1387548345, 'portfolio_id': 27473429}, {'photo_id': 1387548331, 'portfolio_id': 27473429}, {'photo_id': 1387548322, 'portfolio_id': 27473429}, {'photo_id': 1387548281, 'portfolio_id': 27473429}, {'photo_id': 1387548243, 'portfolio_id': 27473429}, {'photo_id': 1387548229, 'portfolio_id': 27473429}, {'photo_id': 1387548209, 'portfolio_id': 27473429}, {'photo_id': 1387548173, 'portfolio_id': 27473429}, {'photo_id': 1387548078, 'portfolio_id': 27473429}, {'photo_id': 1387548076, 'portfolio_id': 27473429}, {'photo_id': 1387547981, 'portfolio_id': 27473429}, {'photo_id': 1387547977, 'portfolio_id': 27473429}, {'photo_id': 1387547973, 'portfolio_id': 27473429}, {'photo_id': 1387547971, 'portfolio_id': 27473429}, {'photo_id': 1387547970, 'portfolio_id': 27473429}, {'photo_id': 1387547969, 'portfolio_id': 27473429}, {'photo_id': 1387547943, 'portfolio_id': 27473429}, {'photo_id': 1387547940, 'portfolio_id': 27473429}, {'photo_id': 1387547939, 'portfolio_id': 27473429}, {'photo_id': 1387547938, 'portfolio_id': 27473429}, {'photo_id': 1387547798, 'portfolio_id': 27473429}, {'photo_id': 1387547794, 'portfolio_id': 27473429}, {'photo_id': 1387547788, 'portfolio_id': 27473429}, {'photo_id': 1387547785, 'portfolio_id': 27473429}, {'photo_id': 1387547783, 'portfolio_id': 27473429}, {'photo_id': 1387547781, 'portfolio_id': 27473429}, {'photo_id': 1387547757, 'portfolio_id': 27473429}, {'photo_id': 1387547754, 'portfolio_id': 27473429}, {'photo_id': 1387547751, 'portfolio_id': 27473429}, {'photo_id': 1387547749, 'portfolio_id': 27473429}, {'photo_id': 1387547727, 'portfolio_id': 27473429}, {'photo_id': 1387547724, 'portfolio_id': 27473429}, {'photo_id': 1387547721, 'portfolio_id': 27473429}, {'photo_id': 1387547702, 'portfolio_id': 27473429}, {'photo_id': 1387547682, 'portfolio_id': 27473429}, {'photo_id': 1387547582, 'portfolio_id': 27473429}, {'photo_id': 1387547580, 'portfolio_id': 27473429}, {'photo_id': 1387547343, 'portfolio_id': 27473429}, {'photo_id': 1387547340, 'portfolio_id': 27473429}, {'photo_id': 1387547336, 'portfolio_id': 27473429}, {'photo_id': 1387547323, 'portfolio_id': 27473429}, {'photo_id': 1387547319, 'portfolio_id': 27473429}, {'photo_id': 1387547315, 'portfolio_id': 27473429}, {'photo_id': 1387547018, 'portfolio_id': 27473429}, {'photo_id': 1387546198, 'portfolio_id': 27473429}] map_portfolio_id_photo_id: {27473429: [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388, 1387548372, 1387548358, 1387548345, 1387548331, 1387548322, 1387548281, 1387548243, 1387548229, 1387548209, 1387548173, 1387548078, 1387548076, 1387547981, 1387547977, 1387547973, 1387547971, 1387547970, 1387547969, 1387547943, 1387547940, 1387547939, 1387547938, 1387547798, 1387547794, 1387547788, 1387547785, 1387547783, 1387547781, 1387547757, 1387547754, 1387547751, 1387547749, 1387547727, 1387547724, 1387547721, 1387547702, 1387547682, 1387547582, 1387547580, 1387547343, 1387547340, 1387547336, 1387547323, 1387547319, 1387547315, 1387547018, 1387546198]} ##### 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.05183696746826172 #### 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 Fri Oct 3 07:14:56 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 (27473429) 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 : 27473429 get user id for portfolio 27473429 get sub ptf for main ptf 27473429, type 3726 and hashtags ['mal_croppe', 'papier', 'Carton_brun', 'flou', 'autre_refus', 'Carton_gris', 'kraft', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'plastique', 'metal'] 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`=27473429 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse','environnement','cartonnette','plastique','metal')) 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`=27473429 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse','environnement','cartonnette','plastique','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 27473429, 'sub_port_id': 27473486, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565699, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'environnement': {'main_port_id': 27473429, 'sub_port_id': 27473487, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565700, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'flou': {'main_port_id': 27473429, 'sub_port_id': 27473488, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565701, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'metal': {'main_port_id': 27473429, 'sub_port_id': 27473489, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565702, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'plastique': {'main_port_id': 27473429, 'sub_port_id': 27473490, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565703, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'Carton_brun': {'main_port_id': 27473429, 'sub_port_id': 27473491, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565704, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'cartonnette': {'main_port_id': 27473429, 'sub_port_id': 27473493, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565705, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'mal_croppe': {'main_port_id': 27473429, 'sub_port_id': 27473494, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565706, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'papier': {'main_port_id': 27473429, 'sub_port_id': 27473495, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565707, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'kraft': {'main_port_id': 27473429, 'sub_port_id': 27473496, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565708, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 27473429, 'sub_port_id': 27473497, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565709, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}, 'Carton_gris': {'main_port_id': 27473429, 'sub_port_id': 27473498, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565710, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473486 , 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=27473429 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 (27473486) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473487 , 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=27473429 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 (27473487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473488 , 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=27473429 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 (27473488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473489 , 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=27473429 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 (27473489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473490 , 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=27473429 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 (27473490) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473491 , 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=27473429 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 (27473491) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473493 , 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=27473429 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 (27473493) result : ((1387548438,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473494 , 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=27473429 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 (27473494) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473495 , 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=27473429 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 (27473495) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473496 , 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=27473429 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 (27473496) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473497 , 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=27473429 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 (27473497) result : ((1387548433,), (1387548434,), (1387548435,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27473498 , 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=27473429 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 (27473498) result : ((1387548436,), (1387548437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27473429) result : ((1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=27473429 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse','environnement','cartonnette','plastique','metal')) 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`=27473429 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse','environnement','cartonnette','plastique','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 27473429, 'sub_port_id': 27473500, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565711, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'environnement': {'main_port_id': 27473429, 'sub_port_id': 27473501, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565712, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'flou': {'main_port_id': 27473429, 'sub_port_id': 27473502, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565713, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'metal': {'main_port_id': 27473429, 'sub_port_id': 27473503, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565714, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'plastique': {'main_port_id': 27473429, 'sub_port_id': 27473504, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565715, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'Carton_brun': {'main_port_id': 27473429, 'sub_port_id': 27473505, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565716, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'cartonnette': {'main_port_id': 27473429, 'sub_port_id': 27473506, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565717, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'mal_croppe': {'main_port_id': 27473429, 'sub_port_id': 27473507, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565718, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'papier': {'main_port_id': 27473429, 'sub_port_id': 27473508, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565719, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'kraft': {'main_port_id': 27473429, 'sub_port_id': 27473509, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565720, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 27473429, 'sub_port_id': 27473510, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565721, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 5, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}, 'Carton_gris': {'main_port_id': 27473429, 'sub_port_id': 27473511, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18565722, 'last_updated_at': datetime.datetime(2025, 10, 3, 7, 13, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 3, 7, 13, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 3, 7, 5, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473508,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473495 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473496 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27473511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27473498 lien utilise dans velours : https://marlene.fotonower.com/velours/27473500,27473501,27473502,27473503,27473504,27473505,27473506,27473507,27473508,27473509,27473510,27473511?tags=autre_refus,environnement,flou,metal,plastique,Carton_brun,cartonnette,mal_croppe,papier,kraft,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27473429]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] map_info['map_portfolio_photo'] : {27473429: [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388, 1387548372, 1387548358, 1387548345, 1387548331, 1387548322, 1387548281, 1387548243, 1387548229, 1387548209, 1387548173, 1387548078, 1387548076, 1387547981, 1387547977, 1387547973, 1387547971, 1387547970, 1387547969, 1387547943, 1387547940, 1387547939, 1387547938, 1387547798, 1387547794, 1387547788, 1387547785, 1387547783, 1387547781, 1387547757, 1387547754, 1387547751, 1387547749, 1387547727, 1387547724, 1387547721, 1387547702, 1387547682, 1387547582, 1387547580, 1387547343, 1387547340, 1387547336, 1387547323, 1387547319, 1387547315, 1387547018, 1387546198]} final : False mtd_id 4302 list_pids : [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] Looping around the photos to save general results len do output : 1 /27473429. 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, '3829163') ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '27473429', "{'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498}", None, None, None, None, '3829163'), ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163')] time used for this insertion : 0.03946185111999512 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.030981779098511 time spend to save output : 0.03979372978210449 total time spend for step 1 : 5.070775508880615 step2:final Fri Oct 3 07:15:01 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 (27473429) 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 27473429 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387546198,1387547018,1387547580,1387547343,1387547340,1387547336,1387547323,1387547319,1387547315,1387547727,1387547724,1387547721,1387547702,1387547682,1387547582,1387547757,1387547754,1387547751,1387547749,1387547798,1387547794,1387547788,1387547785,1387547783,1387547781,1387547943,1387547940,1387547939,1387547938,1387548372,1387547981,1387547977,1387548358,1387547973,1387548345,1387547971,1387548331,1387547970,1387548322,1387548281,1387547969,1387548243,1387548229,1387548209,1387548173,1387548078,1387548076,1387548402,1387548401,1387548398,1387548396,1387548393,1387548392,1387548389,1387548388,1387548457,1387548442,1387548441,1387548431,1387548428,1387548410); 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([27473429]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} new output for save of step final : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] map_info['map_portfolio_photo'] : {27473429: [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388, 1387548372, 1387548358, 1387548345, 1387548331, 1387548322, 1387548281, 1387548243, 1387548229, 1387548209, 1387548173, 1387548078, 1387548076, 1387547981, 1387547977, 1387547973, 1387547971, 1387547970, 1387547969, 1387547943, 1387547940, 1387547939, 1387547938, 1387547798, 1387547794, 1387547788, 1387547785, 1387547783, 1387547781, 1387547757, 1387547754, 1387547751, 1387547749, 1387547727, 1387547724, 1387547721, 1387547702, 1387547682, 1387547582, 1387547580, 1387547343, 1387547340, 1387547336, 1387547323, 1387547319, 1387547315, 1387547018, 1387546198]} final : False mtd_id 4302 list_pids : [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] Looping around the photos to save general results len do output : 14 /1387548457.Didn't retrieve data . /1387548442.Didn't retrieve data . /1387548441.Didn't retrieve data . /1387548431.Didn't retrieve data . /1387548428.Didn't retrieve data . /1387548410.Didn't retrieve data . /1387548402.Didn't retrieve data . /1387548401.Didn't retrieve data . /1387548398.Didn't retrieve data . /1387548396.Didn't retrieve data . /1387548393.Didn't retrieve data . /1387548392.Didn't retrieve data . /1387548389.Didn't retrieve data . /1387548388.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, '3829163') ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '27473429', '1387548457', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548442', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548441', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548431', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548428', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548410', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548402', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548401', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548398', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548396', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548393', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548392', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548389', '0.04584026049027641', None, None, None, None, '3829163'), ('4302', '27473429', '1387548388', '0.04584026049027641', None, None, None, None, '3829163')] time used for this insertion : 0.04144167900085449 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24637055397033691 time spend to save output : 0.04192233085632324 total time spend for step 2 : 0.28829288482666016 step3:velours_tree Fri Oct 3 07:15:02 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 : {27473429: [{'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498}]} input_args_next_step : {27473429: ()} output_args : {27473429: [{'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498}]} args : 27473429 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 : ({'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27473429) 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([27473429]) 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.29850244522094727 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.29854822158813477 step4:send_mail_cod Fri Oct 3 07:15:02 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 : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} input_args_next_step : {1387548457: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548457 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548442 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548441 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548431 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548428 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548410 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548402 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548401 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548398 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548396 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548393 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548392 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548389 depend.output_id : 0 input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ()} output_args : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',)} args : 1387548388 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 : {27473429: [{'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498}]} input_args_next_step : {1387548457: ('0.04584026049027641',), 1387548442: ('0.04584026049027641',), 1387548441: ('0.04584026049027641',), 1387548431: ('0.04584026049027641',), 1387548428: ('0.04584026049027641',), 1387548410: ('0.04584026049027641',), 1387548402: ('0.04584026049027641',), 1387548401: ('0.04584026049027641',), 1387548398: ('0.04584026049027641',), 1387548396: ('0.04584026049027641',), 1387548393: ('0.04584026049027641',), 1387548392: ('0.04584026049027641',), 1387548389: ('0.04584026049027641',), 1387548388: ('0.04584026049027641',), 27473429: ()} output_args : {27473429: [{'autre_refus': 27473486, 'environnement': 27473487, 'flou': 27473488, 'metal': 27473489, 'plastique': 27473490, 'Carton_brun': 27473491, 'cartonnette': 27473493, 'mal_croppe': 27473494, 'papier': 27473495, 'kraft': 27473496, 'Teint_Dans_La_Masse': 27473497, 'Carton_gris': 27473498}]} args : 27473429 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 :15, first value : ('0.04584026049027641',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27473429) 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_view ph WHERE photo_id IN (1387548457,1387548442,1387548441,1387548431,1387548428,1387548410,1387548402,1387548401,1387548398,1387548396,1387548393,1387548392,1387548389,1387548388) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387548388 begin to download photo : 1387548393 begin to download photo : 1387548401 begin to download photo : 1387548428 begin to download photo : 1387548442 download finish for photo 1387548401 begin to download photo : 1387548402 download finish for photo 1387548393 begin to download photo : 1387548396 download finish for photo 1387548442 begin to download photo : 1387548457 download finish for photo 1387548428 begin to download photo : 1387548431 download finish for photo 1387548388 begin to download photo : 1387548389 download finish for photo 1387548457 download finish for photo 1387548396 begin to download photo : 1387548398 download finish for photo 1387548402 begin to download photo : 1387548410 download finish for photo 1387548431 begin to download photo : 1387548441 download finish for photo 1387548389 begin to download photo : 1387548392 download finish for photo 1387548398 download finish for photo 1387548392 download finish for photo 1387548441 download finish for photo 1387548410 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette274734861759468503/ imagette274734881759468503/ imagette274734891759468503/ imagette274734901759468503/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P27473429_03-10-2025_07_15_03.pdf 27473486 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734861759468503 27473488 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734881759468503 27473489 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734891759468503 27473490 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734901759468503 27473493 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387548438: '1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131316_0.png'} change filename to text .imagette274734931759468503/ imagette274734931759468503/1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131316_0.png.png imagette274734941759468503/ imagette274734961759468503/ imagette274734911759468503/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/c39428a1236d52cdaf2c3c9f732f8aaa_34677796.png imagette274734931759468503 27473494 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734941759468503 27473496 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734961759468503 27473491 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274734911759468503 27473497 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387548433: '1759468385_3048693_1387547751_8a079dab15bd53f57f19004474b8062c_rle_crop_3985131306_0.png', 1387548434: '1759468385_3048693_1387547751_8a079dab15bd53f57f19004474b8062c_rle_crop_3985131310_0.png', 1387548435: '1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131328_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/02011db20b916ecf791e866d22afc2ea_64007943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/a3aa329a59b93c303a3c1a1909b70f81_7010229.png change filename to text .imagette274734971759468503/ imagette274734971759468503/1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131328_0.png.png imagette274734971759468503/1759468385_3048693_1387547751_8a079dab15bd53f57f19004474b8062c_rle_crop_3985131310_0.png.png imagette274734971759468503/1759468385_3048693_1387547751_8a079dab15bd53f57f19004474b8062c_rle_crop_3985131306_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/b05cc73dc26002f23a804fc5f804f426_17047369.png imagette274734971759468503 27473498 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387548436: '1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131319_0.png', 1387548437: '1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131324_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/aff3f4469ac27ad67066cbc98649a20b_22566977.png change filename to text .imagette274734981759468503/ imagette274734981759468503/1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131324_0.png.png imagette274734981759468503/1759468385_3048693_1387547749_f2a6bd20603b5beb027651e7a51571d8_rle_crop_3985131319_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/499a7ea6a18f6e5f0faf43e584daace8_80907665.png imagette274734981759468503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27473429 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27473500,27473501,27473502,27473503,27473504,27473505,27473506,27473507,27473508,27473509,27473510,27473511?tags=autre_refus,environnement,flou,metal,plastique,Carton_brun,cartonnette,mal_croppe,papier,kraft,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1387548457] : ('0.04584026049027641',) no score found for photo 1387548457 We are sending mail with results at report@fotonower.com args[1387548442] : ('0.04584026049027641',) no score found for photo 1387548442 We are sending mail with results at report@fotonower.com args[1387548441] : ('0.04584026049027641',) no score found for photo 1387548441 We are sending mail with results at report@fotonower.com args[1387548431] : ('0.04584026049027641',) no score found for photo 1387548431 We are sending mail with results at report@fotonower.com args[1387548428] : ('0.04584026049027641',) no score found for photo 1387548428 We are sending mail with results at report@fotonower.com args[1387548410] : ('0.04584026049027641',) no score found for photo 1387548410 We are sending mail with results at report@fotonower.com args[1387548402] : ('0.04584026049027641',) no score found for photo 1387548402 We are sending mail with results at report@fotonower.com args[1387548401] : ('0.04584026049027641',) no score found for photo 1387548401 We are sending mail with results at report@fotonower.com args[1387548398] : ('0.04584026049027641',) no score found for photo 1387548398 We are sending mail with results at report@fotonower.com args[1387548396] : ('0.04584026049027641',) no score found for photo 1387548396 We are sending mail with results at report@fotonower.com args[1387548393] : ('0.04584026049027641',) no score found for photo 1387548393 We are sending mail with results at report@fotonower.com args[1387548392] : ('0.04584026049027641',) no score found for photo 1387548392 We are sending mail with results at report@fotonower.com args[1387548389] : ('0.04584026049027641',) no score found for photo 1387548389 We are sending mail with results at report@fotonower.com args[1387548388] : ('0.04584026049027641',) no score found for photo 1387548388 We are sending mail with results at report@fotonower.com refus_total : 0.04584026049027641 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473429 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_P27473429_03-10-2025_07_15_03.pdf results_Auto_P27473429_03-10-2025_07_15_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27473429_03-10-2025_07_15_03.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','27473429','results_Auto_P27473429_03-10-2025_07_15_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27473429_03-10-2025_07_15_03.pdf','pdf','','0.14','0.04584026049027641') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27473429]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] map_info['map_portfolio_photo'] : {27473429: [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388, 1387548372, 1387548358, 1387548345, 1387548331, 1387548322, 1387548281, 1387548243, 1387548229, 1387548209, 1387548173, 1387548078, 1387548076, 1387547981, 1387547977, 1387547973, 1387547971, 1387547970, 1387547969, 1387547943, 1387547940, 1387547939, 1387547938, 1387547798, 1387547794, 1387547788, 1387547785, 1387547783, 1387547781, 1387547757, 1387547754, 1387547751, 1387547749, 1387547727, 1387547724, 1387547721, 1387547702, 1387547682, 1387547582, 1387547580, 1387547343, 1387547340, 1387547336, 1387547323, 1387547319, 1387547315, 1387547018, 1387546198]} final : False mtd_id 4302 list_pids : [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] 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, '3829163') ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '27473429', '1387548457', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163')] time used for this insertion : 0.040795087814331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0039358139038086 time spend to save output : 0.041043996810913086 total time spend for step 4 : 3.0449798107147217 step5:split_time_score Fri Oct 3 07:15:05 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 : ['27473429'] 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 : [('27473429',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27473429) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387548442: {'path': 'temp/1759468502_2636465_1387548442_f18cae25a9860607242e0781acfaaa2a.jpg', 'extension': 'jpg'}, 1387548457: {'path': 'temp/1759468502_2636465_1387548457_701455918160f4219e30ef7e5e28387f.jpg', 'extension': 'jpg'}, 1387548393: {'path': 'temp/1759468502_2636465_1387548393_9e481892c48b015f62d19a2c4c3583f6.jpg', 'extension': 'jpg'}, 1387548396: {'path': 'temp/1759468502_2636465_1387548396_314194353682b43db6cf4626358c6b85.jpg', 'extension': 'jpg'}, 1387548398: {'path': 'temp/1759468502_2636465_1387548398_a257db796b5e93eb0f45c4fdae88f3b0.jpg', 'extension': 'jpg'}, 1387548388: {'path': 'temp/1759468502_2636465_1387548388_e0701d5dad180ffc9f25e873c7aa1da9.jpg', 'extension': 'jpg'}, 1387548389: {'path': 'temp/1759468502_2636465_1387548389_efb57bb30cbc36ae5143d36a87478f1f.jpg', 'extension': 'jpg'}, 1387548392: {'path': 'temp/1759468502_2636465_1387548392_b1f8e3fe69317f22c1af8c879d37f4f6.jpg', 'extension': 'jpg'}, 1387548428: {'path': 'temp/1759468502_2636465_1387548428_66281b0728bb550590467ba443523631.jpg', 'extension': 'jpg'}, 1387548431: {'path': 'temp/1759468502_2636465_1387548431_70983cd2bcf863873c4b8d02eb31551b.jpg', 'extension': 'jpg'}, 1387548441: {'path': 'temp/1759468502_2636465_1387548441_2b17ee6789f2776b4586cd8cede5d35c.jpg', 'extension': 'jpg'}, 1387548401: {'path': 'temp/1759468502_2636465_1387548401_dcf4ade8e943fc7d3f67865f2d6bba95.jpg', 'extension': 'jpg'}, 1387548402: {'path': 'temp/1759468502_2636465_1387548402_1dcb72aa3cede5de2b0df3e3ad26a2dc.jpg', 'extension': 'jpg'}, 1387548410: {'path': 'temp/1759468502_2636465_1387548410_470ee8ffb4767b77f74c30c129464731.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 = 27473429; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27473429 group by h (('07', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27473429 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 (27473429) 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 (27473429) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03102025 27473429 Nombre de photos uploadées : 61 / 23040 (0%) 03102025 27473429 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 03102025 27473429 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1387546198, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/2b66a080f34639ae8335759c7f181cc6.jpg', 'username': None, 'uploaded_at': 1759467787, 'text': 'image_03102025_07_02_44_10141.jpg'}, {'photo_id': 1387547018, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/9eb9b0ade6ff9c86e3b1f81648450093.jpg', 'username': None, 'uploaded_at': 1759467847, 'text': 'image_03102025_07_02_54_10134.jpg'}, {'photo_id': 1387547580, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/26d6b225e6193343698add7cf3f60127.jpg', 'username': None, 'uploaded_at': 1759467964, 'text': 'image_03102025_07_02_54_10134.jpg'}, {'photo_id': 1387547343, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/3/5586abc20c2742c3d5a620125893b5ce.jpg', 'username': None, 'uploaded_at': 1759467912, 'text': 'image_03102025_07_03_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003427267074584961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27473429, '2025-10-03' ) 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-10-03' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2385431,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6607046127319336 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= 2385431 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27462418, 'dashboard_result_id': 15966284, '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_P27462418_03-10-2025_06_09_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27462421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27462427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462432, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27462676, 'dashboard_result_id': 15966285, '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_P27462676_03-10-2025_06_10_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27462762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27462767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462773, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27463016, 'dashboard_result_id': 15966286, '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_P27463016_03-10-2025_06_10_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27463053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27463054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27463055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27463056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27463057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27463058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27463059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27463060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27463061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27463062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27463063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27463064, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27464289, 'dashboard_result_id': 15966287, '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_P27464289_03-10-2025_06_11_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464302, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27464603, 'dashboard_result_id': 15966288, '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_P27464603_03-10-2025_06_11_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27464636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464647, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27464951, 'dashboard_result_id': 15966289, '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_P27464951_03-10-2025_06_12_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464970, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27465533, 'dashboard_result_id': 15966291, '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_P27465533_03-10-2025_06_12_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27465546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27465547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27465548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27465549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27465550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27465551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27465552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27465553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27465554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27465555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27465556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27465557, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27465946, 'dashboard_result_id': 15966292, '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_P27465946_03-10-2025_06_13_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27466004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466016, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27466489, 'dashboard_result_id': 15966293, '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_P27466489_03-10-2025_06_14_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27466536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466546, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27466980, 'dashboard_result_id': 15966294, '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_P27466980_03-10-2025_06_14_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27467025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467036, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27467590, 'dashboard_result_id': 15966295, '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_P27467590_03-10-2025_06_15_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27467611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467623, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27468047, 'dashboard_result_id': 15966297, '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_P27468047_03-10-2025_06_16_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468069, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27468479, 'dashboard_result_id': 15966298, '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_P27468479_03-10-2025_06_16_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468502, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27468969, 'dashboard_result_id': 15966299, '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_P27468969_03-10-2025_06_16_37.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27469013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27469014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27469015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27469016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27469017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27469018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27469019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27469020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27469021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27469023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27469025, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27470361, 'dashboard_result_id': 15966300, '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_P27470361_03-10-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27470363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470374, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27470593, 'dashboard_result_id': 15966301, '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_P27470593_03-10-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470609, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27470835, 'dashboard_result_id': 15966303, '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_P27470835_03-10-2025_05_49_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470853, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27471112, 'dashboard_result_id': 15966305, '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_P27471112_03-10-2025_06_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27471125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471148, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27471429, 'dashboard_result_id': 15966306, '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_P27471429_03-10-2025_06_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27471436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471446, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27471962, 'dashboard_result_id': 15966307, '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_P27471962_03-10-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27471990, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27472372, 'dashboard_result_id': 15966308, '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_P27472372_03-10-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27472396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472408, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27472875, 'dashboard_result_id': 15966310, '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_P27472875_03-10-2025_07_05_11.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27472901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472909, 'pht': 3726}}"}, {'dashboat_entry_day': 2385431, 'dashboard_run_id': 2394853, 'mtr_portfolio_id': 27473429, 'dashboard_result_id': 15966312, '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_P27473429_03-10-2025_07_13_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27473486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27473487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27473488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27473489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27473490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27473491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27473493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27473494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27473495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27473496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27473497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27473498, '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 = 27462418 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': 3827782, 'mtr_portfolio_id': 27462418, 'created_at': datetime.datetime(2025, 10, 3, 6, 9, 32), 'result': '0.06684738254694483', 'result_long': None, 'result_double': None}] Qualite : 0.06684738254694483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27462418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27462418_03-10-2025_06_09_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27462418 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_P27462418_03-10-2025_06_09_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27462421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27462427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462432, 'pht': 3726}}" where mtr_portfolio_id = 27462418 and dashboard_run_id = 2394853 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`=27462418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966284, 0.06684738254694483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27462418_03-10-2025_06_09_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27462421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27462427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462432, '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 = 27462676 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': 3827783, 'mtr_portfolio_id': 27462676, 'created_at': datetime.datetime(2025, 10, 3, 6, 10, 1), 'result': '0.0524144774599461', 'result_long': None, 'result_double': None}] Qualite : 0.0524144774599461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27462676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27462676_03-10-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27462676 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_P27462676_03-10-2025_06_10_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27462762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27462767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462773, 'pht': 3726}}" where mtr_portfolio_id = 27462676 and dashboard_run_id = 2394853 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`=27462676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966285, 0.0524144774599461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27462676_03-10-2025_06_10_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27462762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27462763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27462764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27462765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27462766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27462767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27462768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27462769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27462770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27462771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27462772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27462773, '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 = 27463016 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': 3827784, 'mtr_portfolio_id': 27463016, 'created_at': datetime.datetime(2025, 10, 3, 6, 10, 34), 'result': '0.0718688175243236', 'result_long': None, 'result_double': None}] Qualite : 0.0718688175243236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27463016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27463016_03-10-2025_06_10_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27463016 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_P27463016_03-10-2025_06_10_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27463053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27463054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27463055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27463056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27463057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27463058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27463059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27463060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27463061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27463062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27463063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27463064, 'pht': 3726}}" where mtr_portfolio_id = 27463016 and dashboard_run_id = 2394853 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`=27463016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966286, 0.0718688175243236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27463016_03-10-2025_06_10_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27463053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27463054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27463055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27463056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27463057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27463058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27463059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27463060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27463061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27463062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27463063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27463064, '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 = 27464289 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': 3827785, 'mtr_portfolio_id': 27464289, 'created_at': datetime.datetime(2025, 10, 3, 6, 11, 4), 'result': '0.05329844582668646', 'result_long': None, 'result_double': None}] Qualite : 0.05329844582668646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27464289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464289_03-10-2025_06_11_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27464289 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_P27464289_03-10-2025_06_11_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464302, 'pht': 3726}}" where mtr_portfolio_id = 27464289 and dashboard_run_id = 2394853 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`=27464289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966287, 0.05329844582668646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464289_03-10-2025_06_11_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464302, '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 = 27464603 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': 3827786, 'mtr_portfolio_id': 27464603, 'created_at': datetime.datetime(2025, 10, 3, 6, 11, 30), 'result': '0.0674867105546751', 'result_long': None, 'result_double': None}] Qualite : 0.0674867105546751 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27464603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464603_03-10-2025_06_11_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27464603 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_P27464603_03-10-2025_06_11_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27464636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464647, 'pht': 3726}}" where mtr_portfolio_id = 27464603 and dashboard_run_id = 2394853 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`=27464603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966288, 0.0674867105546751, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464603_03-10-2025_06_11_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27464636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464647, '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 = 27464951 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': 3827787, 'mtr_portfolio_id': 27464951, 'created_at': datetime.datetime(2025, 10, 3, 6, 12, 3), 'result': '0.07626024060775823', 'result_long': None, 'result_double': None}] Qualite : 0.07626024060775823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27464951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464951_03-10-2025_06_12_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27464951 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_P27464951_03-10-2025_06_12_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464970, 'pht': 3726}}" where mtr_portfolio_id = 27464951 and dashboard_run_id = 2394853 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`=27464951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966289, 0.07626024060775823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27464951_03-10-2025_06_12_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27464959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27464960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27464961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27464962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27464963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27464964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27464965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27464966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27464967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27464968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27464969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27464970, '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 = 27465533 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': 3827788, 'mtr_portfolio_id': 27465533, 'created_at': datetime.datetime(2025, 10, 3, 6, 12, 31), 'result': '0.06011518696100578', 'result_long': None, 'result_double': None}] Qualite : 0.06011518696100578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27465533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27465533_03-10-2025_06_12_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27465533 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_P27465533_03-10-2025_06_12_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27465546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27465547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27465548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27465549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27465550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27465551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27465552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27465553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27465554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27465555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27465556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27465557, 'pht': 3726}}" where mtr_portfolio_id = 27465533 and dashboard_run_id = 2394853 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`=27465533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966291, 0.06011518696100578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27465533_03-10-2025_06_12_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27465546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27465547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27465548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27465549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27465550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27465551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27465552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27465553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27465554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27465555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27465556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27465557, '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 = 27465946 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': 3827789, 'mtr_portfolio_id': 27465946, 'created_at': datetime.datetime(2025, 10, 3, 6, 13, 30), 'result': '0.054110951987980424', 'result_long': None, 'result_double': None}] Qualite : 0.054110951987980424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27465946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27465946_03-10-2025_06_13_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27465946 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_P27465946_03-10-2025_06_13_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27466004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466016, 'pht': 3726}}" where mtr_portfolio_id = 27465946 and dashboard_run_id = 2394853 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`=27465946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966292, 0.054110951987980424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27465946_03-10-2025_06_13_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27466004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466016, '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 = 27466489 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': 3827790, 'mtr_portfolio_id': 27466489, 'created_at': datetime.datetime(2025, 10, 3, 6, 14), 'result': '0.05060464206616287', 'result_long': None, 'result_double': None}] Qualite : 0.05060464206616287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27466489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27466489_03-10-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27466489 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_P27466489_03-10-2025_06_14_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27466536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466546, 'pht': 3726}}" where mtr_portfolio_id = 27466489 and dashboard_run_id = 2394853 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`=27466489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966293, 0.05060464206616287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27466489_03-10-2025_06_14_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27466535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27466536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27466537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27466538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27466539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27466540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27466541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27466542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27466543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27466544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27466545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27466546, '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 = 27466980 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': 3827791, 'mtr_portfolio_id': 27466980, 'created_at': datetime.datetime(2025, 10, 3, 6, 14, 30), 'result': '0.04597371630206088', 'result_long': None, 'result_double': None}] Qualite : 0.04597371630206088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27466980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27466980_03-10-2025_06_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27466980 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_P27466980_03-10-2025_06_14_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27467025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467036, 'pht': 3726}}" where mtr_portfolio_id = 27466980 and dashboard_run_id = 2394853 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`=27466980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966294, 0.04597371630206088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27466980_03-10-2025_06_14_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27467025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467036, '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 = 27467590 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': 3827792, 'mtr_portfolio_id': 27467590, 'created_at': datetime.datetime(2025, 10, 3, 6, 15, 34), 'result': '0.05934147208596089', 'result_long': None, 'result_double': None}] Qualite : 0.05934147208596089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27467590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27467590_03-10-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27467590 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_P27467590_03-10-2025_06_15_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27467611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467623, 'pht': 3726}}" where mtr_portfolio_id = 27467590 and dashboard_run_id = 2394853 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`=27467590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966295, 0.05934147208596089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27467590_03-10-2025_06_15_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27467611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27467612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27467613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27467614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27467616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27467617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27467618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27467619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27467620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27467621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27467622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27467623, '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 = 27468047 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': 3827793, 'mtr_portfolio_id': 27468047, 'created_at': datetime.datetime(2025, 10, 3, 6, 16, 5), 'result': '0.03014256518099461', 'result_long': None, 'result_double': None}] Qualite : 0.03014256518099461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27468047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468047_03-10-2025_06_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27468047 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_P27468047_03-10-2025_06_16_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468069, 'pht': 3726}}" where mtr_portfolio_id = 27468047 and dashboard_run_id = 2394853 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`=27468047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966297, 0.03014256518099461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468047_03-10-2025_06_16_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468069, '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 = 27468479 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': 3827794, 'mtr_portfolio_id': 27468479, 'created_at': datetime.datetime(2025, 10, 3, 6, 16, 7), 'result': '0.039116717362708504', 'result_long': None, 'result_double': None}] Qualite : 0.039116717362708504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27468479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468479_03-10-2025_06_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27468479 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_P27468479_03-10-2025_06_16_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468502, 'pht': 3726}}" where mtr_portfolio_id = 27468479 and dashboard_run_id = 2394853 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`=27468479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966298, 0.039116717362708504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468479_03-10-2025_06_16_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27468489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27468490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27468491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27468492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27468493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27468495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27468498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27468499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27468500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27468501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27468502, '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 = 27468969 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': 3827795, 'mtr_portfolio_id': 27468969, 'created_at': datetime.datetime(2025, 10, 3, 6, 16, 35), 'result': '0.049435385893409255', 'result_long': None, 'result_double': None}] Qualite : 0.049435385893409255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27468969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468969_03-10-2025_06_16_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27468969 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_P27468969_03-10-2025_06_16_37.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27469013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27469014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27469015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27469016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27469017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27469018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27469019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27469020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27469021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27469023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27469025, 'pht': 3726}}" where mtr_portfolio_id = 27468969 and dashboard_run_id = 2394853 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`=27468969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966299, 0.049435385893409255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27468969_03-10-2025_06_16_37.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27469013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27469014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27469015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27469016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27469017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27469018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27469019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27469020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27469021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27469023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27469025, '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 = 27470361 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': 3827797, 'mtr_portfolio_id': 27470361, 'created_at': datetime.datetime(2025, 10, 3, 6, 17, 32), 'result': '0.03312746662723135', 'result_long': None, 'result_double': None}] Qualite : 0.03312746662723135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27470361 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470361_03-10-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27470361 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_P27470361_03-10-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27470363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470374, 'pht': 3726}}" where mtr_portfolio_id = 27470361 and dashboard_run_id = 2394853 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`=27470361 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966300, 0.03312746662723135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470361_03-10-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27470363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470374, '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 = 27470593 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': 3827798, 'mtr_portfolio_id': 27470593, 'created_at': datetime.datetime(2025, 10, 3, 6, 18), 'result': '0.046257012644721235', 'result_long': None, 'result_double': None}] Qualite : 0.046257012644721235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27470593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470593_03-10-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27470593 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_P27470593_03-10-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470609, 'pht': 3726}}" where mtr_portfolio_id = 27470593 and dashboard_run_id = 2394853 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`=27470593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966301, 0.046257012644721235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470593_03-10-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470609, '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 = 27470835 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': 3827710, 'mtr_portfolio_id': 27470835, 'created_at': datetime.datetime(2025, 10, 3, 5, 49, 5), 'result': '0.03772517512195711', 'result_long': None, 'result_double': None}] Qualite : 0.03772517512195711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27470835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470835_03-10-2025_05_49_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27470835 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_P27470835_03-10-2025_05_49_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470853, 'pht': 3726}}" where mtr_portfolio_id = 27470835 and dashboard_run_id = 2394853 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`=27470835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966303, 0.03772517512195711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27470835_03-10-2025_05_49_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27470842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27470843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27470844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27470845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27470846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27470847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27470848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27470849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27470850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27470851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27470852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27470853, '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 = 27471112 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': 3827967, 'mtr_portfolio_id': 27471112, 'created_at': datetime.datetime(2025, 10, 3, 6, 3, 31), 'result': '0.04987741924955064', 'result_long': None, 'result_double': None}] Qualite : 0.04987741924955064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27471112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27471112_03-10-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27471112 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_P27471112_03-10-2025_06_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27471125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471148, 'pht': 3726}}" where mtr_portfolio_id = 27471112 and dashboard_run_id = 2394853 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`=27471112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966305, 0.04987741924955064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27471112_03-10-2025_06_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27471125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471148, '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 = 27471429 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': 3828067, 'mtr_portfolio_id': 27471429, 'created_at': datetime.datetime(2025, 10, 3, 6, 19, 5), 'result': '0.04992180994337104', 'result_long': None, 'result_double': None}] Qualite : 0.04992180994337104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27471429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27471429_03-10-2025_06_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27471429 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_P27471429_03-10-2025_06_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27471436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471446, 'pht': 3726}}" where mtr_portfolio_id = 27471429 and dashboard_run_id = 2394853 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`=27471429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966306, 0.04992180994337104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27471429_03-10-2025_06_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27471436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471446, '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 = 27471962 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 = 27471962 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 = 27471962 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27471962 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 = 27471962 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 = 27471962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27471962_03-10-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27471962 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_P27471962_03-10-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27471979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27471980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27471981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27471982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27471983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27471984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27471985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27471986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27471987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27471988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27471989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27471990, 'pht': 3726}}" where mtr_portfolio_id = 27471962 and dashboard_run_id = 2394853 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 = 27472372 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': 3828512, 'mtr_portfolio_id': 27472372, 'created_at': datetime.datetime(2025, 10, 3, 6, 48, 59), 'result': '0.06091096417540959', 'result_long': None, 'result_double': None}] Qualite : 0.06091096417540959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27472372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27472372_03-10-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27472372 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_P27472372_03-10-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27472396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472408, 'pht': 3726}}" where mtr_portfolio_id = 27472372 and dashboard_run_id = 2394849 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`=27472372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966308, 0.06091096417540959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27472372_03-10-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27472396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472408, '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 = 27472875 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': 3828833, 'mtr_portfolio_id': 27472875, 'created_at': datetime.datetime(2025, 10, 3, 7, 5, 10), 'result': '0.057056445307984496', 'result_long': None, 'result_double': None}] Qualite : 0.057056445307984496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27472875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27472875_03-10-2025_07_05_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27472875 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_P27472875_03-10-2025_07_05_11.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27472901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472909, 'pht': 3726}}" where mtr_portfolio_id = 27472875 and dashboard_run_id = 2394849 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`=27472875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966310, 0.057056445307984496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27472875_03-10-2025_07_05_11.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27472898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27472899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27472900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27472901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27472902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27472903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27472904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27472905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27472906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27472907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27472908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27472909, '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 = 27473429 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': 3829163, 'mtr_portfolio_id': 27473429, 'created_at': datetime.datetime(2025, 10, 3, 7, 15, 1), 'result': '0.04584026049027641', 'result_long': None, 'result_double': None}] Qualite : 0.04584026049027641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27473429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27473429_03-10-2025_07_15_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27473429 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_P27473429_03-10-2025_07_15_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27473486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27473487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27473488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27473489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27473490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27473491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27473493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27473494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27473495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27473496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27473497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27473498, 'pht': 3726}}" where mtr_portfolio_id = 27473429 and dashboard_run_id = 2394849 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`=27473429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15966312, 0.04584026049027641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27473429_03-10-2025_07_15_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27473486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27473487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27473488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27473489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27473490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27473491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27473493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27473494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27473495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27473496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27473497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27473498, '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 (27462418,27462676,27463016,27464289,27464603,27464951,27465533,27465946,27466489,27466980,27467590,27468047,27468479,27468969,27470361,27470593,27470835,27471112,27471429,27471962,27472372,27472875,27473429) result : ((1387512208,), (1387512211,), (1387512233,), (1387512235,), (1387512237,), (1387512238,), (1387512241,), (1387512247,), (1387512249,), (1387512253,), (1387512255,), (1387512265,), (1387512266,), (1387512267,), (1387512269,), (1387512272,), (1387513067,), (1387513068,), (1387513070,), (1387513073,), (1387513077,), (1387513091,), (1387513098,), (1387513099,), (1387513419,), (1387513420,), (1387513470,), (1387513472,), (1387513475,), (1387513550,), (1387513556,), (1387513563,), (1387513565,), (1387513568,), (1387513600,), (1387513601,), (1387513602,), (1387513604,), (1387513607,), (1387513609,), (1387513622,), (1387513624,), (1387513625,), (1387514849,), (1387514850,), (1387514851,), (1387514853,), (1387515205,), (1387515206,), (1387515207,), (1387515209,), (1387515215,), (1387515223,), (1387515224,), (1387515225,), (1387515227,), (1387515230,), (1387515263,), (1387515266,), (1387515271,), (1387515282,), (1387515285,), (1387515288,), (1387515301,), (1387515302,), (1387515303,), (1387515342,), (1387515343,), (1387515346,), (1387515349,), (1387515354,), (1387515358,), (1387515501,), (1387515503,), (1387515568,), (1387515539,), (1387515540,), (1387515565,), (1387515649,), (1387515650,), (1387515651,), (1387515653,), (1387515665,), (1387515666,), (1387515667,), (1387515679,), (1387515710,), (1387515711,), (1387515712,), (1387515714,), (1387515718,), (1387515778,), (1387515779,), (1387515780,), (1387515782,), (1387515800,), (1387515801,), (1387515802,), (1387515805,), (1387515820,), (1387515822,), (1387515824,), (1387515827,), (1387515831,), (1387515849,), (1387515851,), (1387515853,), (1387515856,), (1387515859,), (1387515863,), (1387515883,), (1387515886,), (1387515890,), (1387515894,), (1387515898,), (1387515901,), (1387515905,), (1387515906,), (1387515907,), (1387515908,), (1387515910,), (1387515913,), (1387515931,), (1387515933,), (1387515935,), (1387515937,), (1387515968,), (1387515969,), (1387515987,), (1387515995,), (1387516014,), (1387516016,), (1387516018,), (1387516052,), (1387516054,), (1387516055,), (1387516060,), (1387516064,), (1387516108,), (1387516113,), (1387516115,), (1387516116,), (1387516117,), (1387516118,), (1387516079,), (1387516088,), (1387516095,), (1387516098,), (1387516105,), (1387516119,), (1387516121,), (1387516124,), (1387516127,), (1387516143,), (1387516145,), (1387516146,), (1387516148,), (1387516345,), (1387516365,), (1387522155,), (1387522141,), (1387522148,), (1387522153,), (1387522187,), (1387522188,), (1387522189,), (1387522191,), (1387522217,), (1387522222,), (1387522226,), (1387522237,), (1387522246,), (1387522250,), (1387522255,), (1387522256,), (1387522264,), (1387522267,), (1387522271,), (1387522329,), (1387522330,), (1387522331,), (1387522333,), (1387522338,), (1387522342,), (1387522369,), (1387522370,), (1387522372,), (1387522375,), (1387522379,), (1387522388,), (1387522389,), (1387522390,), (1387522392,), (1387522396,), (1387522449,), (1387522451,), (1387522452,), (1387522472,), (1387522475,), (1387522485,), (1387522493,), (1387522497,), (1387522500,), (1387522504,), (1387522507,), (1387522510,), (1387522514,), (1387522580,), (1387522582,), (1387522584,), (1387522587,), (1387522591,), (1387522606,), (1387522608,), (1387522609,), (1387522612,), (1387522630,), (1387522633,), (1387522635,), (1387522640,), (1387522645,), (1387522660,), (1387522696,), (1387522705,), (1387522697,), (1387522698,), (1387522701,), (1387522723,), (1387522724,), (1387522725,), (1387522767,), (1387522768,), (1387522769,), (1387522771,), (1387522774,), (1387522778,), (1387522835,), (1387522836,), (1387522837,), (1387522839,), (1387522844,), (1387522860,), (1387522861,), (1387522862,), (1387522894,), (1387522896,), (1387522906,), (1387522914,), (1387522951,), (1387522963,), (1387523008,), (1387523009,), (1387523010,), (1387523012,), (1387523028,), (1387523030,), (1387523031,), (1387523033,), (1387523046,), (1387523048,), (1387523094,), (1387523095,), (1387523097,), (1387523100,), (1387523108,), (1387523111,), (1387523116,), (1387523118,), (1387523119,), (1387523120,), (1387523122,), (1387523126,), (1387523130,), (1387523134,), (1387523143,), (1387523144,), (1387523147,), (1387523153,), (1387523169,), (1387523207,), (1387523208,), (1387523237,), (1387523239,), (1387523243,), (1387523246,), (1387523255,), (1387523258,), (1387523262,), (1387523284,), (1387523288,), (1387523327,), (1387523308,), (1387523322,), (1387523326,), (1387524157,), (1387524159,), (1387524161,), (1387524179,), (1387524181,), (1387524701,), (1387524703,), (1387524704,), (1387524707,), (1387524710,), (1387524719,), (1387524720,), (1387524722,), (1387524725,), (1387524734,), (1387524737,), (1387525715,), (1387525717,), (1387525718,), (1387525719,), (1387525721,), (1387525723,), (1387525807,), (1387525808,), (1387525809,), (1387525811,), (1387526356,), (1387526357,), (1387526431,), (1387526460,), (1387526854,), (1387526856,), (1387526858,), (1387526861,), (1387526912,), (1387526914,), (1387526915,), (1387526932,), (1387526935,), (1387526938,), (1387526941,), (1387527484,), (1387527520,), (1387527525,), (1387527566,), (1387527567,), (1387527568,), (1387527570,), (1387527577,), (1387527581,), (1387527594,), (1387527595,), (1387527596,), (1387527598,), (1387527602,), (1387527606,), (1387527620,), (1387527621,), (1387527624,), (1387527627,), (1387527638,), (1387527646,), (1387527653,), (1387527695,), (1387527697,), (1387527735,), (1387527698,), (1387527699,), (1387527700,), (1387527709,), (1387527730,), (1387527755,), (1387527757,), (1387527761,), (1387527767,), (1387527783,), (1387527784,), (1387527786,), (1387527790,), (1387527793,), (1387527842,), (1387527844,), (1387527845,), (1387527847,), (1387527872,), (1387527874,), (1387527876,), (1387527917,), (1387527920,), (1387527921,), (1387527931,), (1387527971,), (1387527972,), (1387527988,), (1387527990,), (1387527992,), (1387527995,), (1387528001,), (1387528014,), (1387528015,), (1387528016,), (1387528018,), (1387528022,), (1387528062,), (1387528063,), (1387528065,), (1387528068,), (1387528078,), (1387528081,), (1387528086,), (1387528088,), (1387528089,), (1387528090,), (1387528091,), (1387528094,), (1387528112,), (1387528113,), (1387528115,), (1387528117,), (1387528122,), (1387528191,), (1387528193,), (1387528195,), (1387528211,), (1387528212,), (1387528214,), (1387528217,), (1387528231,), (1387528233,), (1387528235,), (1387528237,), (1387528240,), (1387528320,), (1387528323,), (1387528340,), (1387528342,), (1387528343,), (1387528344,), (1387528279,), (1387528280,), (1387528298,), (1387528305,), (1387528385,), (1387528391,), (1387528393,), (1387528395,), (1387528398,), (1387528404,), (1387528406,), (1387528408,), (1387528411,), (1387528455,), (1387528457,), (1387528459,), (1387528470,), (1387528471,), (1387528473,), (1387528477,), (1387528481,), (1387528490,), (1387528494,), (1387528495,), (1387528496,), (1387528497,), (1387528498,), (1387528500,), (1387528516,), (1387528519,), (1387528531,), (1387528577,), (1387528579,), (1387528581,), (1387528595,), (1387528596,), (1387528598,), (1387528601,), (1387528605,), (1387528613,), (1387528651,), (1387528652,), (1387528653,), (1387528655,), (1387528670,), (1387528672,), (1387528674,), (1387528679,), (1387528711,), (1387528713,), (1387528715,), (1387528763,), (1387528764,), (1387528765,), (1387528767,), (1387528789,), (1387528791,), (1387528793,), (1387528806,), (1387528807,), (1387528809,), (1387528812,), (1387528815,), (1387528826,), (1387528832,), (1387528862,), (1387528853,), (1387528854,), (1387528855,), (1387528858,), (1387528877,), (1387528881,), (1387528885,), (1387528888,), (1387528906,), (1387528907,), (1387528908,), (1387528932,), (1387528933,), (1387528934,), (1387528936,), (1387528943,), (1387528958,), (1387528961,), (1387528963,), (1387528966,), (1387528969,), (1387528972,), (1387528987,), (1387528995,), (1387528996,), (1387529038,), (1387529039,), (1387529058,), (1387529079,), (1387529081,), (1387529083,), (1387529086,), (1387529089,), (1387529093,), (1387529124,), (1387529125,), (1387529127,), (1387529130,), (1387529147,), (1387529150,), (1387529154,), (1387529155,), (1387529156,), (1387529157,), (1387529158,), (1387529162,), (1387529165,), (1387529170,), (1387529181,), (1387529183,), (1387529185,), (1387529188,), (1387529263,), (1387529264,), (1387529283,), (1387529286,), (1387529290,), (1387529293,), (1387529297,), (1387529300,), (1387530050,), (1387529856,), (1387529860,), (1387529862,), (1387530045,), (1387530120,), (1387530121,), (1387530122,), (1387530164,), (1387530165,), (1387530167,), (1387530171,), (1387530745,), (1387530746,), (1387531062,), (1387531064,), (1387531067,), (1387531073,), (1387531077,), (1387531082,), (1387531089,), (1387531094,), (1387531095,), (1387531097,), (1387531333,), (1387531753,), (1387532028,), (1387532030,), (1387532031,), (1387532033,), (1387532037,), (1387532041,), (1387532051,), (1387532052,), (1387532053,), (1387532055,), (1387532058,), (1387532098,), (1387532099,), (1387532100,), (1387532102,), (1387532105,), (1387532114,), (1387532115,), (1387532117,), (1387532120,), (1387532123,), (1387532132,), (1387532144,), (1387532147,), (1387532153,), (1387532154,), (1387532155,), (1387532157,), (1387532161,), (1387532220,), (1387532222,), (1387532224,), (1387532226,), (1387532235,), (1387532249,), (1387532250,), (1387532251,), (1387532255,), (1387532258,), (1387532260,), (1387532270,), (1387532271,), (1387532274,), (1387532277,), (1387532286,), (1387532289,), (1387532313,), (1387532314,), (1387532315,), (1387532324,), (1387532316,), (1387532318,), (1387532321,), (1387532336,), (1387532338,), (1387532355,), (1387532358,), (1387532362,), (1387532374,), (1387532376,), (1387532378,), (1387532380,), (1387532424,), (1387532426,), (1387532428,), (1387532430,), (1387532434,), (1387532441,), (1387532450,), (1387532451,), (1387532454,), (1387532457,), (1387532460,), (1387532463,), (1387532467,), (1387532469,), (1387532471,), (1387532473,), (1387532480,), (1387532485,), (1387532535,), (1387532536,), (1387532537,), (1387532554,), (1387532556,), (1387532578,), (1387532579,), (1387532619,), (1387532621,), (1387532623,), (1387532627,), (1387532633,), (1387532635,), (1387532648,), (1387532649,), (1387532650,), (1387532651,), (1387532669,), (1387532671,), (1387532676,), (1387532681,), (1387532684,), (1387532686,), (1387532756,), (1387532757,), (1387532758,), (1387532761,), (1387532778,), (1387532780,), (1387532782,), (1387532785,), (1387532803,), (1387532804,), (1387532805,), (1387532809,), (1387532812,), (1387532860,), (1387532862,), (1387532865,), (1387532868,), (1387532871,), (1387532876,), (1387532859,), (1387532878,), (1387532879,), (1387532880,), (1387532939,), (1387532941,), (1387532942,), (1387532945,), (1387532948,), (1387532959,), (1387532984,), (1387532986,), (1387532988,), (1387532991,), (1387532995,), (1387532998,), (1387533008,), (1387533009,), (1387533011,), (1387533019,), (1387533023,), (1387533026,), (1387533032,), (1387533033,), (1387533034,), (1387533035,), (1387533040,), (1387533044,), (1387533048,), (1387533053,), (1387533072,), (1387533074,), (1387533079,), (1387533088,), (1387533127,), (1387533129,), (1387533132,), (1387533135,), (1387533147,), (1387533148,), (1387533150,), (1387533153,), (1387533181,), (1387533182,), (1387533197,), (1387533198,), (1387533199,), (1387533205,), (1387533225,), (1387533227,), (1387533283,), (1387533284,), (1387533285,), (1387533287,), (1387533309,), (1387533311,), (1387533312,), (1387533314,), (1387533326,), (1387533327,), (1387533331,), (1387533334,), (1387533342,), (1387533346,), (1387533361,), (1387533362,), (1387533366,), (1387533363,), (1387533364,), (1387533383,), (1387533384,), (1387533385,), (1387533387,), (1387533446,), (1387533447,), (1387533448,), (1387533450,), (1387533454,), (1387533481,), (1387533482,), (1387533484,), (1387533487,), (1387533505,), (1387533506,), (1387533507,), (1387533521,), (1387533522,), (1387533524,), (1387533528,), (1387533531,), (1387533550,), (1387533552,), (1387533554,), (1387533585,), (1387533610,), (1387533611,), (1387533614,), (1387533628,), (1387533658,), (1387533659,), (1387533660,), (1387533664,), (1387533667,), (1387533670,), (1387533677,), (1387533701,), (1387533702,), (1387533703,), (1387533706,), (1387533711,), (1387533717,), (1387533735,), (1387533736,), (1387533738,), (1387533742,), (1387533763,), (1387533767,), (1387533770,), (1387534450,), (1387534301,), (1387534305,), (1387534419,), (1387534425,), (1387534493,), (1387534497,), (1387534500,), (1387534503,), (1387534542,), (1387534545,), (1387534547,), (1387534589,), (1387534615,), (1387534791,), (1387535365,), (1387535396,), (1387535399,), (1387535403,), (1387535412,), (1387535415,), (1387535417,), (1387535419,), (1387535423,), (1387535427,), (1387536213,), (1387536294,), (1387536468,), (1387536518,), (1387536643,), (1387536645,), (1387536647,), (1387536650,), (1387536663,), (1387536666,), (1387536669,), (1387536673,), (1387536677,), (1387536723,), (1387536726,), (1387536729,), (1387536748,), (1387536750,), (1387536752,), (1387536759,), (1387536782,), (1387536835,), (1387538676,), (1387538673,), (1387538719,), (1387539451,), (1387539453,), (1387540304,), (1387540673,), (1387540676,), (1387540698,), (1387540700,), (1387540758,), (1387540760,), (1387540762,), (1387540789,), (1387540791,), (1387540850,), (1387540852,), (1387540854,), (1387540906,), (1387540943,), (1387540982,), (1387540984,), (1387540986,), (1387541006,), (1387541007,), (1387541008,), (1387541028,), (1387541029,), (1387541031,), (1387541038,), (1387541041,), (1387541054,), (1387541056,), (1387541057,), (1387541059,), (1387541078,), (1387541081,), (1387541099,), (1387541101,), (1387541102,), (1387541104,), (1387541107,), (1387541118,), (1387541120,), (1387541121,), (1387541125,), (1387541142,), (1387541145,), (1387541147,), (1387541149,), (1387541176,), (1387541177,), (1387541179,), (1387541185,), (1387541188,), (1387541192,), (1387541200,), (1387541202,), (1387541204,), (1387541207,), (1387541210,), (1387541212,), (1387541222,), (1387541224,), (1387541225,), (1387541227,), (1387541252,), (1387541256,), (1387541258,), (1387541260,), (1387541263,), (1387541278,), (1387541279,), (1387541280,), (1387541283,), (1387541290,), (1387541292,), (1387541300,), (1387541303,), (1387541304,), (1387541309,), (1387541349,), (1387541336,), (1387541338,), (1387541339,), (1387541342,), (1387541344,), (1387541359,), (1387541361,), (1387541363,), (1387541433,), (1387541436,), (1387541438,), (1387541441,), (1387541454,), (1387541455,), (1387541457,), (1387541461,), (1387541464,), (1387541467,), (1387541471,), (1387541472,), (1387541473,), (1387541475,), (1387541481,), (1387541484,), (1387541487,), (1387541515,), (1387541516,), (1387541517,), (1387541519,), (1387541523,), (1387541580,), (1387541583,), (1387541591,), (1387541593,), (1387541614,), (1387541615,), (1387541616,), (1387541618,), (1387541621,), (1387541629,), (1387541645,), (1387541647,), (1387541651,), (1387541654,), (1387541657,), (1387541659,), (1387541671,), (1387541673,), (1387541675,), (1387541677,), (1387541683,), (1387541710,), (1387541713,), (1387541714,), (1387541717,), (1387541764,), (1387541766,), (1387541767,), (1387541769,), (1387541772,), (1387541787,), (1387541810,), (1387541812,), (1387541814,), (1387541817,), (1387541823,), (1387541829,), (1387541836,), (1387541839,), (1387541840,), (1387541842,), (1387541860,), (1387541846,), (1387541849,), (1387541852,), (1387541855,), (1387541858,), (1387541864,), (1387541865,), (1387541870,), (1387541908,), (1387541910,), (1387541911,), (1387541913,), (1387541916,), (1387541920,), (1387541938,), (1387541939,), (1387541940,), (1387541942,), (1387541966,), (1387541968,), (1387541969,), (1387541971,), (1387541977,), (1387541980,), (1387541996,), (1387542002,), (1387542006,), (1387542019,), (1387542033,), (1387542035,), (1387542038,), (1387542040,), (1387542041,), (1387542043,), (1387542046,), (1387542050,), (1387542055,), (1387542057,), (1387542059,), (1387542060,), (1387542067,), (1387542075,), (1387542083,), (1387542088,), (1387542091,), (1387542141,), (1387542156,), (1387542158,), (1387542161,), (1387542183,), (1387542185,), (1387542189,), (1387542196,), (1387542198,), (1387542200,), (1387542204,), (1387542205,), (1387542207,), (1387542211,), (1387542218,), (1387542225,), (1387542229,), (1387542231,), (1387542233,), (1387542237,), (1387542240,), (1387542243,), (1387542247,), (1387542251,), (1387542256,), (1387542274,), (1387542277,), (1387542278,), (1387542611,), (1387542625,), (1387542648,), (1387542654,), (1387542658,), (1387542662,), (1387542691,), (1387542681,), (1387542684,), (1387542687,), (1387542689,), (1387542713,), (1387542715,), (1387542717,), (1387542719,), (1387542722,), (1387542733,), (1387542735,), (1387542736,), (1387542738,), (1387542742,), (1387542759,), (1387542760,), (1387542762,), (1387542765,), (1387542769,), (1387542772,), (1387542784,), (1387542788,), (1387542793,), (1387542884,), (1387543364,), (1387543567,), (1387543572,), (1387543573,), (1387543577,), (1387543580,), (1387543588,), (1387543591,), (1387543594,), (1387543596,), (1387543830,), (1387543837,), (1387544376,), (1387544377,), (1387544379,), (1387544382,), (1387544425,), (1387544654,), (1387544655,), (1387544656,), (1387544708,), (1387544711,), (1387544771,), (1387544773,), (1387544774,), (1387544776,), (1387544783,), (1387544786,), (1387544795,), (1387544796,), (1387544797,), (1387544814,), (1387544815,), (1387544816,), (1387544818,), (1387544824,), (1387544834,), (1387544842,), (1387544844,), (1387544847,), (1387544852,), (1387544855,), (1387544858,), (1387544865,), (1387544867,), (1387544868,), (1387544871,), (1387544879,), (1387544883,), (1387544895,), (1387544897,), (1387544899,), (1387544901,), (1387544905,), (1387544917,), (1387544918,), (1387544922,), (1387544927,), (1387544931,), (1387544944,), (1387544949,), (1387544951,), (1387544952,), (1387544954,), (1387544955,), (1387544973,), (1387544963,), (1387544966,), (1387544969,), (1387544978,), (1387544980,), (1387544981,), (1387544983,), (1387544986,), (1387545006,), (1387545007,), (1387545008,), (1387545010,), (1387545013,), (1387545016,), (1387545026,), (1387545030,), (1387545032,), (1387545034,), (1387545037,), (1387545040,), (1387545064,), (1387545065,), (1387545066,), (1387545068,), (1387545071,), (1387545087,), (1387545090,), (1387545092,), (1387545095,), (1387545098,), (1387545115,), (1387545117,), (1387545118,), (1387545120,), (1387545123,), (1387545138,), (1387545139,), (1387545144,), (1387545157,), (1387545170,), (1387545173,), (1387545175,), (1387545177,), (1387545179,), (1387545181,), (1387545196,), (1387545197,), (1387545200,), (1387545202,), (1387545208,), (1387545220,), (1387545226,), (1387545229,), (1387545231,), (1387545234,), (1387545236,), (1387545238,), (1387545241,), (1387545244,), (1387545260,), (1387545261,), (1387545262,), (1387545264,), (1387545267,), (1387545282,), (1387545284,), (1387545287,), (1387545291,), (1387545295,), (1387545307,), (1387545309,), (1387545312,), (1387545316,), (1387545353,), (1387545356,), (1387545358,), (1387545362,), (1387545366,), (1387545369,), (1387545389,), (1387545382,), (1387545383,), (1387545385,), (1387545386,), (1387545408,), (1387545410,), (1387545412,), (1387545415,), (1387545420,), (1387545423,), (1387545434,), (1387545436,), (1387545438,), (1387545441,), (1387545460,), (1387545461,), (1387545462,), (1387545464,), (1387545467,), (1387545470,), (1387545480,), (1387545481,), (1387545483,), (1387545489,), (1387545492,), (1387545495,), (1387545501,), (1387545502,), (1387545503,), (1387545505,), (1387545506,), (1387545512,), (1387545516,), (1387545520,), (1387545524,), (1387545533,), (1387545534,), (1387545535,), (1387545537,), (1387545541,), (1387545569,), (1387545570,), (1387545571,), (1387545586,), (1387545591,), (1387545594,), (1387545598,), (1387545600,), (1387545615,), (1387545626,), (1387545627,), (1387545629,), (1387545632,), (1387545635,), (1387545648,), (1387545650,), (1387545653,), (1387545656,), (1387545659,), (1387545672,), (1387545683,), (1387545684,), (1387545687,), (1387545690,), (1387545693,), (1387545707,), (1387545709,), (1387545710,), (1387545716,), (1387545719,), (1387545728,), (1387545730,), (1387545732,), (1387545737,), (1387545748,), (1387545750,), (1387545753,), (1387545757,), (1387545765,), (1387545770,), (1387545773,), (1387545774,), (1387545775,), (1387545777,), (1387545795,), (1387545782,), (1387545785,), (1387545788,), (1387545792,), (1387545804,), (1387545806,), (1387545808,), (1387545811,), (1387545815,), (1387545822,), (1387545831,), (1387545833,), (1387545835,), (1387545838,), (1387545842,), (1387545860,), (1387545864,), (1387545866,), (1387545870,), (1387545887,), (1387545890,), (1387545892,), (1387545896,), (1387545899,), (1387545911,), (1387545913,), (1387545915,), (1387545917,), (1387545920,), (1387545938,), (1387545940,), (1387545941,), (1387545943,), (1387545957,), (1387545958,), (1387545960,), (1387545963,), (1387545967,), (1387545980,), (1387545992,), (1387545993,), (1387545995,), (1387546016,), (1387546017,), (1387546019,), (1387546031,), (1387546036,), (1387546039,), (1387546048,), (1387546050,), (1387546052,), (1387546070,), (1387546072,), (1387546078,), (1387546082,), (1387546100,), (1387546101,), (1387546200,), (1387546198,), (1387547018,), (1387547315,), (1387547319,), (1387547323,), (1387547336,), (1387547340,), (1387547343,), (1387547580,), (1387547582,), (1387547682,), (1387547702,), (1387547721,), (1387547724,), (1387547727,), (1387547749,), (1387547751,), (1387547754,), (1387547757,), (1387547781,), (1387547783,), (1387547785,), (1387547788,), (1387547794,), (1387547798,), (1387547938,), (1387547939,), (1387547940,), (1387547943,), (1387547969,), (1387547970,), (1387547971,), (1387547973,), (1387547977,), (1387547981,), (1387548076,), (1387548078,), (1387548173,), (1387548209,), (1387548229,), (1387548243,), (1387548281,), (1387548322,), (1387548331,), (1387548345,), (1387548358,), (1387548372,), (1387548388,), (1387548389,), (1387548392,), (1387548393,), (1387548396,), (1387548398,), (1387548401,), (1387548402,), (1387548410,), (1387548428,), (1387548431,), (1387548441,), (1387548442,), (1387548457,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03102025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27473429]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] map_info['map_portfolio_photo'] : {27473429: [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388, 1387548372, 1387548358, 1387548345, 1387548331, 1387548322, 1387548281, 1387548243, 1387548229, 1387548209, 1387548173, 1387548078, 1387548076, 1387547981, 1387547977, 1387547973, 1387547971, 1387547970, 1387547969, 1387547943, 1387547940, 1387547939, 1387547938, 1387547798, 1387547794, 1387547788, 1387547785, 1387547783, 1387547781, 1387547757, 1387547754, 1387547751, 1387547749, 1387547727, 1387547724, 1387547721, 1387547702, 1387547682, 1387547582, 1387547580, 1387547343, 1387547340, 1387547336, 1387547323, 1387547319, 1387547315, 1387547018, 1387546198]} final : True mtd_id 4302 list_pids : [1387548457, 1387548442, 1387548441, 1387548431, 1387548428, 1387548410, 1387548402, 1387548401, 1387548398, 1387548396, 1387548393, 1387548392, 1387548389, 1387548388] Looping around the photos to save general results len do output : 1 /27473429Didn'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, '3829163') ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163') ('4302', None, None, None, None, None, None, None, '3829163') ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '27473429', 'None', None, None, None, None, '3829163'), ('4302', '27473429', '1387548457', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548442', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548441', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548431', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548428', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548410', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548402', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548401', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548398', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548396', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548393', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548392', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548389', None, None, None, None, None, '3829163'), ('4302', '27473429', '1387548388', None, None, None, None, None, '3829163')] time used for this insertion : 0.040582895278930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.733145475387573 time spend to save output : 0.04084897041320801 total time spend for step 5 : 5.773994445800781 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 (3829163) 2.13user 2.48system 0:16.87elapsed 27%CPU (0avgtext+0avgdata 160708maxresident)k 216inputs+8928outputs (1major+64504minor)pagefaults 0swaps