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 : 3978998 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 (4084429) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4084429) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744153 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4084429'] with mtr_portfolio_ids : ['28744153'] and first list_photo_ids : [] new path : /proc/3978998/ Name: python3 Umask: 0002 State: R (running) Tgid: 3978998 Ngid: 0 Pid: 3978998 PPid: 3978997 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3978998 NSpid: 3978998 NSpgid: 3975616 NSsid: 3975616 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98424 kB VmRSS: 98424 kB RssAnon: 59908 kB RssFile: 38516 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 44 nonvoluntary_ctxt_switches: 102 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3978998', 'Ngid': '0', 'Pid': '3978998', 'PPid': '3978997', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3978998', 'NSpid': '3978998', 'NSpgid': '3975616', 'NSsid': '3975616', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98424 kB', 'VmRSS': '98424 kB', 'RssAnon': '59908 kB', 'RssFile': '38516 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '44', 'nonvoluntary_ctxt_switches': '102'} ('datou_batch_current', '3978998', '1106908', '0', '1106884', '865636', '98424', b'', 'marlene', '4084429') 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 (28744153) 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 (4084429 ) ) 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 (28744153) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395374029, 'portfolio_id': 28744153}, {'photo_id': 1395374025, 'portfolio_id': 28744153}, {'photo_id': 1395374022, 'portfolio_id': 28744153}, {'photo_id': 1395374019, 'portfolio_id': 28744153}, {'photo_id': 1395374017, 'portfolio_id': 28744153}, {'photo_id': 1395373989, 'portfolio_id': 28744153}, {'photo_id': 1395373968, 'portfolio_id': 28744153}, {'photo_id': 1395373965, 'portfolio_id': 28744153}, {'photo_id': 1395373954, 'portfolio_id': 28744153}, {'photo_id': 1395373938, 'portfolio_id': 28744153}, {'photo_id': 1395373908, 'portfolio_id': 28744153}, {'photo_id': 1395373744, 'portfolio_id': 28744153}, {'photo_id': 1395373739, 'portfolio_id': 28744153}, {'photo_id': 1395373735, 'portfolio_id': 28744153}, {'photo_id': 1395373732, 'portfolio_id': 28744153}, {'photo_id': 1395373527, 'portfolio_id': 28744153}, {'photo_id': 1395373504, 'portfolio_id': 28744153}, {'photo_id': 1395373498, 'portfolio_id': 28744153}, {'photo_id': 1395373495, 'portfolio_id': 28744153}, {'photo_id': 1395373493, 'portfolio_id': 28744153}, {'photo_id': 1395373491, 'portfolio_id': 28744153}, {'photo_id': 1395373231, 'portfolio_id': 28744153}, {'photo_id': 1395373230, 'portfolio_id': 28744153}, {'photo_id': 1395373229, 'portfolio_id': 28744153}, {'photo_id': 1395373227, 'portfolio_id': 28744153}, {'photo_id': 1395373195, 'portfolio_id': 28744153}, {'photo_id': 1395373158, 'portfolio_id': 28744153}, {'photo_id': 1395373122, 'portfolio_id': 28744153}, {'photo_id': 1395373086, 'portfolio_id': 28744153}, {'photo_id': 1395373050, 'portfolio_id': 28744153}, {'photo_id': 1395373017, 'portfolio_id': 28744153}, {'photo_id': 1395372867, 'portfolio_id': 28744153}, {'photo_id': 1395372863, 'portfolio_id': 28744153}, {'photo_id': 1395372857, 'portfolio_id': 28744153}, {'photo_id': 1395372854, 'portfolio_id': 28744153}, {'photo_id': 1395372823, 'portfolio_id': 28744153}, {'photo_id': 1395372820, 'portfolio_id': 28744153}, {'photo_id': 1395372809, 'portfolio_id': 28744153}, {'photo_id': 1395372792, 'portfolio_id': 28744153}, {'photo_id': 1395372782, 'portfolio_id': 28744153}, {'photo_id': 1395372664, 'portfolio_id': 28744153}, {'photo_id': 1395372617, 'portfolio_id': 28744153}, {'photo_id': 1395372583, 'portfolio_id': 28744153}, {'photo_id': 1395372579, 'portfolio_id': 28744153}, {'photo_id': 1395372516, 'portfolio_id': 28744153}, {'photo_id': 1395372515, 'portfolio_id': 28744153}, {'photo_id': 1395372511, 'portfolio_id': 28744153}, {'photo_id': 1395372485, 'portfolio_id': 28744153}, {'photo_id': 1395372470, 'portfolio_id': 28744153}, {'photo_id': 1395372467, 'portfolio_id': 28744153}, {'photo_id': 1395372252, 'portfolio_id': 28744153}, {'photo_id': 1395372232, 'portfolio_id': 28744153}, {'photo_id': 1395372228, 'portfolio_id': 28744153}, {'photo_id': 1395372226, 'portfolio_id': 28744153}, {'photo_id': 1395372224, 'portfolio_id': 28744153}, {'photo_id': 1395372222, 'portfolio_id': 28744153}, {'photo_id': 1395372160, 'portfolio_id': 28744153}, {'photo_id': 1395372149, 'portfolio_id': 28744153}, {'photo_id': 1395372125, 'portfolio_id': 28744153}, {'photo_id': 1395372090, 'portfolio_id': 28744153}, {'photo_id': 1395372002, 'portfolio_id': 28744153}, {'photo_id': 1395371999, 'portfolio_id': 28744153}, {'photo_id': 1395371996, 'portfolio_id': 28744153}, {'photo_id': 1395371984, 'portfolio_id': 28744153}, {'photo_id': 1395371981, 'portfolio_id': 28744153}, {'photo_id': 1395371954, 'portfolio_id': 28744153}, {'photo_id': 1395371821, 'portfolio_id': 28744153}, {'photo_id': 1395371804, 'portfolio_id': 28744153}, {'photo_id': 1395371800, 'portfolio_id': 28744153}, {'photo_id': 1395371796, 'portfolio_id': 28744153}, {'photo_id': 1395371528, 'portfolio_id': 28744153}, {'photo_id': 1395371525, 'portfolio_id': 28744153}, {'photo_id': 1395371502, 'portfolio_id': 28744153}, {'photo_id': 1395371492, 'portfolio_id': 28744153}, {'photo_id': 1395371465, 'portfolio_id': 28744153}, {'photo_id': 1395371438, 'portfolio_id': 28744153}, {'photo_id': 1395371053, 'portfolio_id': 28744153}, {'photo_id': 1395371050, 'portfolio_id': 28744153}, {'photo_id': 1395371046, 'portfolio_id': 28744153}] map_portfolio_id_photo_id: {28744153: [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908, 1395373744, 1395373739, 1395373735, 1395373732, 1395373527, 1395373504, 1395373498, 1395373495, 1395373493, 1395373491, 1395373231, 1395373230, 1395373229, 1395373227, 1395373195, 1395373158, 1395373122, 1395373086, 1395373050, 1395373017, 1395372867, 1395372863, 1395372857, 1395372854, 1395372823, 1395372820, 1395372809, 1395372792, 1395372782, 1395372664, 1395372617, 1395372583, 1395372579, 1395372516, 1395372515, 1395372511, 1395372485, 1395372470, 1395372467, 1395372252, 1395372232, 1395372228, 1395372226, 1395372224, 1395372222, 1395372160, 1395372149, 1395372125, 1395372090, 1395372002, 1395371999, 1395371996, 1395371984, 1395371981, 1395371954, 1395371821, 1395371804, 1395371800, 1395371796, 1395371528, 1395371525, 1395371502, 1395371492, 1395371465, 1395371438, 1395371053, 1395371050, 1395371046]} ##### 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.017197608947753906 #### 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 Thu Nov 20 14:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28744153) 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 : 28744153 get user id for portfolio 28744153 get sub ptf for main ptf 28744153, type 3726 and hashtags ['papier', 'Carton_gris', 'kraft', 'mal_croppe', 'environnement', 'cartonnette', 'metal', 'flou', 'Teint_Dans_La_Masse', 'plastique', 'Carton_brun', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744153 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','mal_croppe','environnement','cartonnette','metal','flou','Teint_Dans_La_Masse','plastique','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744153 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','mal_croppe','environnement','cartonnette','metal','flou','Teint_Dans_La_Masse','plastique','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 28744153, 'sub_port_id': 28744229, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499838, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'papier': {'main_port_id': 28744153, 'sub_port_id': 28744230, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499839, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'plastique': {'main_port_id': 28744153, 'sub_port_id': 28744231, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499840, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'flou': {'main_port_id': 28744153, 'sub_port_id': 28744232, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499841, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'Carton_brun': {'main_port_id': 28744153, 'sub_port_id': 28744233, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499842, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'kraft': {'main_port_id': 28744153, 'sub_port_id': 28744234, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499843, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'autre_refus': {'main_port_id': 28744153, 'sub_port_id': 28744235, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499844, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'mal_croppe': {'main_port_id': 28744153, 'sub_port_id': 28744236, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499845, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'Carton_gris': {'main_port_id': 28744153, 'sub_port_id': 28744237, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499846, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28744153, 'sub_port_id': 28744238, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499847, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'cartonnette': {'main_port_id': 28744153, 'sub_port_id': 28744239, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499848, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}, 'metal': {'main_port_id': 28744153, 'sub_port_id': 28744240, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499849, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744229 , 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=28744153 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 (28744229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744230 , 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=28744153 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 (28744230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744231 , 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=28744153 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 (28744231) result : ((1395373220,), (1395373646,), (1395374013,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744232 , 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=28744153 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 (28744232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744233 , 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=28744153 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 (28744233) result : ((1395372259,), (1395372848,), (1395373218,), (1395373243,), (1395373642,), (1395374011,), (1395374012,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744234 , 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=28744153 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 (28744234) result : ((1395372852,), (1395373245,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744235 , 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=28744153 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 (28744235) result : ((1395372257,), (1395372839,), (1395373217,), (1395373233,), (1395373618,), (1395373819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744236 , 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=28744153 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 (28744236) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744237 , 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=28744153 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 (28744237) result : ((1395372022,), (1395372840,), (1395372841,), (1395372842,), (1395373235,), (1395373236,), (1395373237,), (1395373627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744238 , 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=28744153 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 (28744238) result : ((1395372015,), (1395372016,), (1395372255,), (1395372256,), (1395372838,), (1395373215,), (1395373232,), (1395373606,), (1395373609,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744239 , 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=28744153 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 (28744239) result : ((1395372029,), (1395372258,), (1395372844,), (1395372845,), (1395372846,), (1395372847,), (1395373238,), (1395373239,), (1395373240,), (1395373241,), (1395373637,), (1395374008,), (1395374009,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28744240 , 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=28744153 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 (28744240) result : ((1395372261,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28744153) result : ((1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) 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 (1395371800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744153 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','mal_croppe','environnement','cartonnette','metal','flou','Teint_Dans_La_Masse','plastique','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744153 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','mal_croppe','environnement','cartonnette','metal','flou','Teint_Dans_La_Masse','plastique','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 28744153, 'sub_port_id': 28744242, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499850, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'papier': {'main_port_id': 28744153, 'sub_port_id': 28744243, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499851, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'plastique': {'main_port_id': 28744153, 'sub_port_id': 28744244, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499852, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'flou': {'main_port_id': 28744153, 'sub_port_id': 28744245, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499853, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'Carton_brun': {'main_port_id': 28744153, 'sub_port_id': 28744246, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499854, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'kraft': {'main_port_id': 28744153, 'sub_port_id': 28744247, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499855, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'autre_refus': {'main_port_id': 28744153, 'sub_port_id': 28744248, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499856, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'mal_croppe': {'main_port_id': 28744153, 'sub_port_id': 28744249, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499857, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'Carton_gris': {'main_port_id': 28744153, 'sub_port_id': 28744250, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499858, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 28744153, 'sub_port_id': 28744251, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499859, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'cartonnette': {'main_port_id': 28744153, 'sub_port_id': 28744252, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499860, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}, 'metal': {'main_port_id': 28744153, 'sub_port_id': 28744253, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19499861, 'last_updated_at': datetime.datetime(2025, 11, 20, 14, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 14, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 14, 17, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28744253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28744240 lien utilise dans velours : https://marlene.fotonower.com/velours/28744242,28744243,28744244,28744245,28744246,28744247,28744248,28744249,28744250,28744251,28744252,28744253?tags=environnement,papier,plastique,flou,Carton_brun,kraft,autre_refus,mal_croppe,Carton_gris,Teint_Dans_La_Masse,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28744153]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] map_info['map_portfolio_photo'] : {28744153: [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908, 1395373744, 1395373739, 1395373735, 1395373732, 1395373527, 1395373504, 1395373498, 1395373495, 1395373493, 1395373491, 1395373231, 1395373230, 1395373229, 1395373227, 1395373195, 1395373158, 1395373122, 1395373086, 1395373050, 1395373017, 1395372867, 1395372863, 1395372857, 1395372854, 1395372823, 1395372820, 1395372809, 1395372792, 1395372782, 1395372664, 1395372617, 1395372583, 1395372579, 1395372516, 1395372515, 1395372511, 1395372485, 1395372470, 1395372467, 1395372252, 1395372232, 1395372228, 1395372226, 1395372224, 1395372222, 1395372160, 1395372149, 1395372125, 1395372090, 1395372002, 1395371999, 1395371996, 1395371984, 1395371981, 1395371954, 1395371821, 1395371804, 1395371800, 1395371796, 1395371528, 1395371525, 1395371502, 1395371492, 1395371465, 1395371438, 1395371053, 1395371050, 1395371046]} final : False mtd_id 4302 list_pids : [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] Looping around the photos to save general results len do output : 1 /28744153. 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, '4084429') ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28744153', "{'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240}", None, None, None, None, '4084429'), ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429')] time used for this insertion : 0.013380289077758789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48267340660095215 time spend to save output : 0.0136566162109375 total time spend for step 1 : 0.49633002281188965 step2:final Thu Nov 20 14:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28744153) 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 28744153 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395371053,1395371050,1395371046,1395371528,1395371525,1395371502,1395371492,1395371465,1395371438,1395371821,1395371804,1395371800,1395371796,1395372002,1395371999,1395371996,1395371984,1395371981,1395371954,1395372160,1395372149,1395372125,1395372090,1395372252,1395372664,1395372232,1395372617,1395372228,1395372583,1395372226,1395372579,1395372224,1395372516,1395372222,1395372515,1395372511,1395372485,1395372470,1395372467,1395372823,1395372820,1395372809,1395372792,1395372782,1395372867,1395372863,1395372857,1395372854,1395373195,1395373158,1395373122,1395373086,1395373050,1395373017,1395373231,1395373230,1395373229,1395373227,1395373527,1395373504,1395373498,1395373495,1395373493,1395373491,1395373744,1395373739,1395373735,1395373989,1395373732,1395373968,1395373965,1395373954,1395373938,1395373908,1395374029,1395374025,1395374022,1395374019,1395374017); 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([28744153]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} new output for save of step final : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] map_info['map_portfolio_photo'] : {28744153: [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908, 1395373744, 1395373739, 1395373735, 1395373732, 1395373527, 1395373504, 1395373498, 1395373495, 1395373493, 1395373491, 1395373231, 1395373230, 1395373229, 1395373227, 1395373195, 1395373158, 1395373122, 1395373086, 1395373050, 1395373017, 1395372867, 1395372863, 1395372857, 1395372854, 1395372823, 1395372820, 1395372809, 1395372792, 1395372782, 1395372664, 1395372617, 1395372583, 1395372579, 1395372516, 1395372515, 1395372511, 1395372485, 1395372470, 1395372467, 1395372252, 1395372232, 1395372228, 1395372226, 1395372224, 1395372222, 1395372160, 1395372149, 1395372125, 1395372090, 1395372002, 1395371999, 1395371996, 1395371984, 1395371981, 1395371954, 1395371821, 1395371804, 1395371800, 1395371796, 1395371528, 1395371525, 1395371502, 1395371492, 1395371465, 1395371438, 1395371053, 1395371050, 1395371046]} final : False mtd_id 4302 list_pids : [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] Looping around the photos to save general results len do output : 11 /1395374029.Didn't retrieve data . /1395374025.Didn't retrieve data . /1395374022.Didn't retrieve data . /1395374019.Didn't retrieve data . /1395374017.Didn't retrieve data . /1395373989.Didn't retrieve data . /1395373968.Didn't retrieve data . /1395373965.Didn't retrieve data . /1395373954.Didn't retrieve data . /1395373938.Didn't retrieve data . /1395373908.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, '4084429') ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '28744153', '1395374029', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395374025', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395374022', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395374019', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395374017', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373989', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373968', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373965', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373954', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373938', '0.025629585144409297', None, None, None, None, '4084429'), ('4302', '28744153', '1395373908', '0.025629585144409297', None, None, None, None, '4084429')] time used for this insertion : 0.012151002883911133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06818175315856934 time spend to save output : 0.012741327285766602 total time spend for step 2 : 0.08092308044433594 step3:velours_tree Thu Nov 20 14:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28744153: [{'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240}]} input_args_next_step : {28744153: ()} output_args : {28744153: [{'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240}]} args : 28744153 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 : ({'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28744153) 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([28744153]) 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.3182039260864258 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.31824493408203125 step4:send_mail_cod Thu Nov 20 14:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} input_args_next_step : {1395374029: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395374029 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395374025 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395374022 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395374019 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395374017 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373989 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373968 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373965 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373954 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373938 depend.output_id : 0 input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ()} output_args : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',)} args : 1395373908 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 : {28744153: [{'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240}]} input_args_next_step : {1395374029: ('0.025629585144409297',), 1395374025: ('0.025629585144409297',), 1395374022: ('0.025629585144409297',), 1395374019: ('0.025629585144409297',), 1395374017: ('0.025629585144409297',), 1395373989: ('0.025629585144409297',), 1395373968: ('0.025629585144409297',), 1395373965: ('0.025629585144409297',), 1395373954: ('0.025629585144409297',), 1395373938: ('0.025629585144409297',), 1395373908: ('0.025629585144409297',), 28744153: ()} output_args : {28744153: [{'environnement': 28744229, 'papier': 28744230, 'plastique': 28744231, 'flou': 28744232, 'Carton_brun': 28744233, 'kraft': 28744234, 'autre_refus': 28744235, 'mal_croppe': 28744236, 'Carton_gris': 28744237, 'Teint_Dans_La_Masse': 28744238, 'cartonnette': 28744239, 'metal': 28744240}]} args : 28744153 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 :12, first value : ('0.025629585144409297',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28744153) 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 (1395374029,1395374025,1395374022,1395374019,1395374017,1395373989,1395373968,1395373965,1395373954,1395373938,1395373908) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395373908 begin to download photo : 1395373965 begin to download photo : 1395374017 begin to download photo : 1395374025 download finish for photo 1395373965 begin to download photo : 1395373968 download finish for photo 1395373908 begin to download photo : 1395373938 download finish for photo 1395374025 begin to download photo : 1395374029 download finish for photo 1395374017 begin to download photo : 1395374019 download finish for photo 1395374029 download finish for photo 1395373938 begin to download photo : 1395373954 download finish for photo 1395374019 begin to download photo : 1395374022 download finish for photo 1395373968 begin to download photo : 1395373989 download finish for photo 1395374022 download finish for photo 1395373954 download finish for photo 1395373989 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28744153_20-11-2025_14_31_00.pdf 28744231 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=28744231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395373220: '1763645106_2747115_1395372228_3265bf32288ebdb91fd1c2bb0fd6579d_rle_crop_4040000451_0.png', 1395373646: '1763645226_2751586_1395372485_9acf42820d31ba808efab626095bd4b5_rle_crop_4040000971_0.png', 1395374013: '1763645366_2757488_1395372854_53bf21d46dfa2efd5fdb049654d5e43e_rle_crop_4040002538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/17490459738f30b95f32ff7b269b64db_30574675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/559c6a8f6810c02299089df86f4eb066_83996605.png change filename to text .imagette287442311763645460/ imagette287442311763645460/1763645366_2757488_1395372854_53bf21d46dfa2efd5fdb049654d5e43e_rle_crop_4040002538_0.png.png imagette287442311763645460/1763645226_2751586_1395372485_9acf42820d31ba808efab626095bd4b5_rle_crop_4040000971_0.png.png imagette287442311763645460/1763645106_2747115_1395372228_3265bf32288ebdb91fd1c2bb0fd6579d_rle_crop_4040000451_0.png.png imagette287442321763645460/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/0ce089b1bc97389301de72ef83a92ad8_63119143.png imagette287442311763645460 28744232 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=28744232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287442321763645460 28744234 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=28744234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372852: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997949_0.png', 1395373245: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1d4daee7cd3103a60ad8b1e3232d1769_41587482.png change filename to text .imagette287442341763645460/ imagette287442341763645460/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997949_0.png.png imagette287442341763645460/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997949_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1d4daee7cd3103a60ad8b1e3232d1769_49216759.png imagette287442341763645460 28744235 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=28744235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372257: '1763644865_2740695_1395371796_f8379b63b239c1a0f65fbdeb27156484_rle_crop_4039996130_0.png', 1395372839: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997956_0.png', 1395373217: '1763645106_2747115_1395372224_12d6253631842b93d621b9fc70b99630_rle_crop_4040000475_0.png', 1395373233: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997956_0.png', 1395373618: '1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000954_0.png', 1395373819: '1763645244_2751941_1395372782_3792567fb57b95bc224b8e38c8da31c8_rle_crop_4040002264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7e59ebd8068d3f53e23de9ec8d41ae6b_32991989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/dd50c799f7d118a7faff57ca6160afb3_83598470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/49d83986cadd7b5b900964661ba0e6fb_25215641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/dd50c799f7d118a7faff57ca6160afb3_23778242.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/95c0d477cfba0ca6d586b7adc14f1a35_19325034.png change filename to text .imagette287442351763645460/ imagette287442351763645460/1763645106_2747115_1395372224_12d6253631842b93d621b9fc70b99630_rle_crop_4040000475_0.png.png imagette287442351763645460/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997956_0.png.png imagette287442351763645460/1763644865_2740695_1395371796_f8379b63b239c1a0f65fbdeb27156484_rle_crop_4039996130_0.png.png imagette287442351763645460/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997956_0.png.png imagette287442351763645460/1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000954_0.png.png imagette287442351763645460/1763645244_2751941_1395372782_3792567fb57b95bc224b8e38c8da31c8_rle_crop_4040002264_0.png.png imagette287442361763645461/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3eb2404cc2b2110bc77ea88e9acb0f68_17109374.png imagette287442351763645460 28744236 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=28744236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287442361763645461 28744239 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=28744239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372029: '1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995683_0.png', 1395372258: '1763644865_2740695_1395371804_b301e80cc604fd9bf816525464449e7d_rle_crop_4039996077_0.png', 1395372844: '1763645004_2745389_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997936_0.png', 1395372845: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997947_0.png', 1395372846: '1763645004_2745389_1395371981_e140d87a0cb4835769f02dad90b588fc_rle_crop_4039997968_0.png', 1395372847: '1763645004_2745389_1395371954_23e893ff40c36f84e293e3aeba9a2313_rle_crop_4039997973_0.png', 1395373238: '1763645127_2747806_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997936_0.png', 1395373239: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997947_0.png', 1395373240: '1763645127_2747806_1395371981_e140d87a0cb4835769f02dad90b588fc_rle_crop_4039997968_0.png', 1395373241: '1763645127_2747806_1395371954_23e893ff40c36f84e293e3aeba9a2313_rle_crop_4039997973_0.png', 1395373637: '1763645226_2751586_1395372485_9acf42820d31ba808efab626095bd4b5_rle_crop_4040000969_0.png', 1395374008: '1763645366_2757488_1395372863_142443383785d3cb97089a19ea68b63b_rle_crop_4040002505_0.png', 1395374009: '1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002515_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/65d2000eef5a2704bf4e57560ba346a0_21147579.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9ebb74bc7983a58b803f51b21bfde3e7_62313701.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/389939afb617cf0f01f479c87164dc4c_68161558.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/460a191396c18b1aa993857082ea48a9_76507815.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/ccbd3d1c2a0af979f1c391cc313097c4_64394239.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/eec207237c7751f76903e0eb70c50de3_90107604.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/389939afb617cf0f01f479c87164dc4c_12976678.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/460a191396c18b1aa993857082ea48a9_97004879.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/ccbd3d1c2a0af979f1c391cc313097c4_80495581.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/eec207237c7751f76903e0eb70c50de3_87507368.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3a0b3eaf624df3c98f6a20b9a8add61d_2493066.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d625ed66ba802b56137f44b449c20b71_53507774.png change filename to text .imagette287442391763645461/ imagette287442391763645461/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997947_0.png.png imagette287442391763645461/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997947_0.png.png imagette287442391763645461/1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002515_0.png.png imagette287442391763645461/1763645004_2745389_1395371981_e140d87a0cb4835769f02dad90b588fc_rle_crop_4039997968_0.png.png imagette287442391763645461/1763644865_2740695_1395371804_b301e80cc604fd9bf816525464449e7d_rle_crop_4039996077_0.png.png imagette287442391763645461/1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995683_0.png.png imagette287442391763645461/1763645127_2747806_1395371954_23e893ff40c36f84e293e3aeba9a2313_rle_crop_4039997973_0.png.png imagette287442391763645461/1763645226_2751586_1395372485_9acf42820d31ba808efab626095bd4b5_rle_crop_4040000969_0.png.png imagette287442391763645461/1763645127_2747806_1395371981_e140d87a0cb4835769f02dad90b588fc_rle_crop_4039997968_0.png.png imagette287442391763645461/1763645004_2745389_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997936_0.png.png imagette287442391763645461/1763645366_2757488_1395372863_142443383785d3cb97089a19ea68b63b_rle_crop_4040002505_0.png.png imagette287442391763645461/1763645004_2745389_1395371954_23e893ff40c36f84e293e3aeba9a2313_rle_crop_4039997973_0.png.png imagette287442391763645461/1763645127_2747806_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997936_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7f5f890b78e5071d11f325b5bb95fe71_72040775.png imagette287442391763645461 28744240 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=28744240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372261: '1763644865_2740695_1395371800_e29a42e426ecfa7883f29e8dccafee0f_rle_crop_4039996104_0.png'} change filename to text .imagette287442401763645462/ imagette287442401763645462/1763644865_2740695_1395371800_e29a42e426ecfa7883f29e8dccafee0f_rle_crop_4039996104_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/aaeb3f9b67428463de44c24a970ecf87_58005219.png imagette287442401763645462 28744233 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=28744233 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372259: '1763644865_2740695_1395371800_e29a42e426ecfa7883f29e8dccafee0f_rle_crop_4039996115_0.png', 1395372848: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997955_0.png', 1395373218: '1763645106_2747115_1395372228_3265bf32288ebdb91fd1c2bb0fd6579d_rle_crop_4040000455_0.png', 1395373243: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997955_0.png', 1395373642: '1763645226_2751586_1395372467_a43ea6f6cd9922f335afb1824698674a_rle_crop_4040000993_0.png', 1395374011: '1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002528_0.png', 1395374012: '1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002521_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d0eb449db86726c7b3643ba4a6a3d663_36590216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2f8c988f06befc862dd719d3e2858e69_23608597.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/ff18d3ea601935ff4172055e58e503f9_81483884.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2f8c988f06befc862dd719d3e2858e69_49431498.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/94a32bd65dd892357cad59b918ae3df7_55775237.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b460d5b1dc94e10c1ff54a42e62fab33_79802432.png change filename to text .imagette287442331763645462/ imagette287442331763645462/1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002521_0.png.png imagette287442331763645462/1763644865_2740695_1395371800_e29a42e426ecfa7883f29e8dccafee0f_rle_crop_4039996115_0.png.png imagette287442331763645462/1763645226_2751586_1395372467_a43ea6f6cd9922f335afb1824698674a_rle_crop_4040000993_0.png.png imagette287442331763645462/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997955_0.png.png imagette287442331763645462/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997955_0.png.png imagette287442331763645462/1763645106_2747115_1395372228_3265bf32288ebdb91fd1c2bb0fd6579d_rle_crop_4040000455_0.png.png imagette287442331763645462/1763645366_2757488_1395372857_5c840e97202304492be75e96e0104b33_rle_crop_4040002528_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/57a55ec470700fbd7225b073840ab5c8_34842237.png imagette287442331763645462 28744237 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=28744237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372022: '1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995680_0.png', 1395372840: '1763645004_2745389_1395371999_9bf8b03c8d00069af45cbb3084f8590c_rle_crop_4039997928_0.png', 1395372841: '1763645004_2745389_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997938_0.png', 1395372842: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997953_0.png', 1395373235: '1763645127_2747806_1395371999_9bf8b03c8d00069af45cbb3084f8590c_rle_crop_4039997928_0.png', 1395373236: '1763645127_2747806_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997938_0.png', 1395373237: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997953_0.png', 1395373627: '1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/99cf1eaf5236f5b683179637d818dc57_12031699.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1ffbf1c4b677f97e8cda12cb1a8bb3b5_84433534.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d7b6d23e8201ac7f8e3ed57afee41103_59891057.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2e49263eba5f7aa8eab47b00fc1162ba_87545680.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1ffbf1c4b677f97e8cda12cb1a8bb3b5_34372003.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d7b6d23e8201ac7f8e3ed57afee41103_60985142.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2e49263eba5f7aa8eab47b00fc1162ba_93567938.png change filename to text .imagette287442371763645463/ imagette287442371763645463/1763645004_2745389_1395371999_9bf8b03c8d00069af45cbb3084f8590c_rle_crop_4039997928_0.png.png imagette287442371763645463/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997953_0.png.png imagette287442371763645463/1763645127_2747806_1395371999_9bf8b03c8d00069af45cbb3084f8590c_rle_crop_4039997928_0.png.png imagette287442371763645463/1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995680_0.png.png imagette287442371763645463/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997953_0.png.png imagette287442371763645463/1763645004_2745389_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997938_0.png.png imagette287442371763645463/1763645127_2747806_1395371996_32805a58e87b654231ac3e49abc46c61_rle_crop_4039997938_0.png.png imagette287442371763645463/1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000958_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/cfa95d11dfd9008f59a9e96871ac69f1_82720280.png imagette287442371763645463 28744238 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=28744238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395372015: '1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995690_0.png', 1395372016: '1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995692_0.png', 1395372255: '1763644865_2740695_1395371804_b301e80cc604fd9bf816525464449e7d_rle_crop_4039996084_0.png', 1395372256: '1763644865_2740695_1395371796_f8379b63b239c1a0f65fbdeb27156484_rle_crop_4039996138_0.png', 1395372838: '1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997952_0.png', 1395373215: '1763645106_2747115_1395372224_12d6253631842b93d621b9fc70b99630_rle_crop_4040000480_0.png', 1395373232: '1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997952_0.png', 1395373606: '1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000963_0.png', 1395373609: '1763645226_2751586_1395372470_1406cd5803fd23ec28719bb63bc3083a_rle_crop_4040000984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9e59430f5584ad3a0bc1a3242eed6cec_41452883.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d3dc307a667103c88615c00e4406cffe_21858097.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7fe837ef4fdc7303fe5bb48510b117ca_44927671.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/36c27bc7adff62c6ccf6ecb6f11227c7_22838671.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/cf2e9ab08fa32f0fef6f915abbd2f522_54832380.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/51f6f5e42f6bc06fd0e9be2c144bdd99_24785166.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/cf2e9ab08fa32f0fef6f915abbd2f522_7229571.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d366f4483c3798eae7c61b6a799003e3_21042020.png change filename to text .imagette287442381763645463/ imagette287442381763645463/1763645226_2751586_1395372823_40cd6704e1dcef4a622a527a686db45d_rle_crop_4040000963_0.png.png imagette287442381763645463/1763644865_2740695_1395371796_f8379b63b239c1a0f65fbdeb27156484_rle_crop_4039996138_0.png.png imagette287442381763645463/1763645226_2751586_1395372470_1406cd5803fd23ec28719bb63bc3083a_rle_crop_4040000984_0.png.png imagette287442381763645463/1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995690_0.png.png imagette287442381763645463/1763644865_2740695_1395371804_b301e80cc604fd9bf816525464449e7d_rle_crop_4039996084_0.png.png imagette287442381763645463/1763644745_2736758_1395371053_e10b59ecb06066948878b7b1ead9af81_rle_crop_4039995692_0.png.png imagette287442381763645463/1763645127_2747806_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997952_0.png.png imagette287442381763645463/1763645106_2747115_1395372224_12d6253631842b93d621b9fc70b99630_rle_crop_4040000480_0.png.png imagette287442381763645463/1763645004_2745389_1395371984_f8f15fe85f477ad215de3fe983a6efd5_rle_crop_4039997952_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2d7c5efdc93aabc7df1bd5d5bc73dcbc_14873449.png imagette287442381763645463 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28744153 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28744242,28744243,28744244,28744245,28744246,28744247,28744248,28744249,28744250,28744251,28744252,28744253?tags=environnement,papier,plastique,flou,Carton_brun,kraft,autre_refus,mal_croppe,Carton_gris,Teint_Dans_La_Masse,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1395374029] : ('0.025629585144409297',) no score found for photo 1395374029 We are sending mail with results at report@fotonower.com args[1395374025] : ('0.025629585144409297',) no score found for photo 1395374025 We are sending mail with results at report@fotonower.com args[1395374022] : ('0.025629585144409297',) no score found for photo 1395374022 We are sending mail with results at report@fotonower.com args[1395374019] : ('0.025629585144409297',) no score found for photo 1395374019 We are sending mail with results at report@fotonower.com args[1395374017] : ('0.025629585144409297',) no score found for photo 1395374017 We are sending mail with results at report@fotonower.com args[1395373989] : ('0.025629585144409297',) no score found for photo 1395373989 We are sending mail with results at report@fotonower.com args[1395373968] : ('0.025629585144409297',) no score found for photo 1395373968 We are sending mail with results at report@fotonower.com args[1395373965] : ('0.025629585144409297',) no score found for photo 1395373965 We are sending mail with results at report@fotonower.com args[1395373954] : ('0.025629585144409297',) no score found for photo 1395373954 We are sending mail with results at report@fotonower.com args[1395373938] : ('0.025629585144409297',) no score found for photo 1395373938 We are sending mail with results at report@fotonower.com args[1395373908] : ('0.025629585144409297',) no score found for photo 1395373908 We are sending mail with results at report@fotonower.com refus_total : 0.025629585144409297 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=28744153 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_P28744153_20-11-2025_14_31_00.pdf results_Auto_P28744153_20-11-2025_14_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28744153','results_Auto_P28744153_20-11-2025_14_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf','pdf','','0.2','0.025629585144409297') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28744153]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] map_info['map_portfolio_photo'] : {28744153: [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908, 1395373744, 1395373739, 1395373735, 1395373732, 1395373527, 1395373504, 1395373498, 1395373495, 1395373493, 1395373491, 1395373231, 1395373230, 1395373229, 1395373227, 1395373195, 1395373158, 1395373122, 1395373086, 1395373050, 1395373017, 1395372867, 1395372863, 1395372857, 1395372854, 1395372823, 1395372820, 1395372809, 1395372792, 1395372782, 1395372664, 1395372617, 1395372583, 1395372579, 1395372516, 1395372515, 1395372511, 1395372485, 1395372470, 1395372467, 1395372252, 1395372232, 1395372228, 1395372226, 1395372224, 1395372222, 1395372160, 1395372149, 1395372125, 1395372090, 1395372002, 1395371999, 1395371996, 1395371984, 1395371981, 1395371954, 1395371821, 1395371804, 1395371800, 1395371796, 1395371528, 1395371525, 1395371502, 1395371492, 1395371465, 1395371438, 1395371053, 1395371050, 1395371046]} final : False mtd_id 4302 list_pids : [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] 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, '4084429') ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28744153', '1395374029', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429')] time used for this insertion : 0.017154693603515625 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.744561433792114 time spend to save output : 0.017534971237182617 total time spend for step 4 : 5.762096405029297 step5:split_time_score Thu Nov 20 14:31: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 : ['28744153'] 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 : [('28744153',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28744153) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395374025: {'path': 'temp/1763645459_3978998_1395374025_6d88ddba8ff6fe614e8ff42f8103c9ba.jpg', 'extension': 'jpg'}, 1395374029: {'path': 'temp/1763645459_3978998_1395374029_f0295008ba7b6c27d8da62e7e195dbfc.jpg', 'extension': 'jpg'}, 1395374017: {'path': 'temp/1763645459_3978998_1395374017_aa20aecd57747334e45488de68d082b7.jpg', 'extension': 'jpg'}, 1395374019: {'path': 'temp/1763645459_3978998_1395374019_b2fbe925250d7e34bcf14a91d722370b.jpg', 'extension': 'jpg'}, 1395374022: {'path': 'temp/1763645459_3978998_1395374022_981570aa66110e8f025a7b18e87876ef.jpg', 'extension': 'jpg'}, 1395373908: {'path': 'temp/1763645459_3978998_1395373908_9f799c0c7361c09f12f5b488aacb908a.jpg', 'extension': 'jpg'}, 1395373938: {'path': 'temp/1763645459_3978998_1395373938_7557575aa85996b5e62a420cfbe874b0.jpg', 'extension': 'jpg'}, 1395373954: {'path': 'temp/1763645459_3978998_1395373954_f34c2148acc7df5ac2c3349bcc9f5a40.jpg', 'extension': 'jpg'}, 1395373965: {'path': 'temp/1763645459_3978998_1395373965_0502e92184da3f75f5fd81fc179a84aa.jpg', 'extension': 'jpg'}, 1395373968: {'path': 'temp/1763645459_3978998_1395373968_edbe7c956b3d733f5545fcff16fb7f3e.jpg', 'extension': 'jpg'}, 1395373989: {'path': 'temp/1763645459_3978998_1395373989_cbf7433972872c8249381d0fe2d90353.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 = 28744153; (('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 = 28744153 group by h (('14', 79),) 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=28744153 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 (28744153) 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 (28744153) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20112025 28744153 Nombre de photos uploadées : 79 / 23040 (0%) 20112025 28744153 Nombre de photos taguées (types de déchets): 0 / 79 (0%) 20112025 28744153 Nombre de photos taguées (volume) : 0 / 79 (0%) [{'photo_id': 1395371053, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/e10b59ecb06066948878b7b1ead9af81.jpg', 'username': None, 'uploaded_at': 1763644568, 'text': 'image_20112025_14_15_04_010153m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1395371050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b077d09475cd1e11c54590a2c1612a20.jpg', 'username': None, 'uploaded_at': 1763644568, 'text': 'image_20112025_14_15_14_010143m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1395371046, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d6894153e726335ed10e780e24e3aeef.jpg', 'username': None, 'uploaded_at': 1763644568, 'text': 'image_20112025_14_15_24_010313m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1395371528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/31abc3907ba95f30aff920f5b7e955e9.jpg', 'username': None, 'uploaded_at': 1763644628, 'text': 'image_20112025_14_15_34_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003554821014404297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28744153, '2025-11-20' ) 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-11-20' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2614335,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2406935691833496 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= 2614335 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28729285, 'dashboard_result_id': 17544571, '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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28729878, 'dashboard_result_id': 17544572, '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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28730454, 'dashboard_result_id': 17544573, '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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28730956, 'dashboard_result_id': 17544574, '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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28732283, 'dashboard_result_id': 17544575, '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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28732606, 'dashboard_result_id': 17544576, '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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28732937, 'dashboard_result_id': 17544577, '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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28733416, 'dashboard_result_id': 17544578, '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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28733691, 'dashboard_result_id': 17544579, '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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28734257, 'dashboard_result_id': 17544580, '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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28734699, 'dashboard_result_id': 17544581, '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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28735407, 'dashboard_result_id': 17544582, '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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28735955, 'dashboard_result_id': 17544583, '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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28736530, 'dashboard_result_id': 17544584, '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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28736964, 'dashboard_result_id': 17544585, '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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740327, 'dashboard_result_id': 17544586, '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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740329, 'dashboard_result_id': 17544587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740332, 'dashboard_result_id': 17544588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740348, 'dashboard_result_id': 17544589, '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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740352, 'dashboard_result_id': 17544590, '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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740373, 'dashboard_result_id': 17544591, '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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28740377, 'dashboard_result_id': 17544592, '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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28743048, 'dashboard_result_id': 17544593, '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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28743363, 'dashboard_result_id': 17544594, '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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28743751, 'dashboard_result_id': 17544595, '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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624470, 'mtr_portfolio_id': 28744153, 'dashboard_result_id': 17544596, '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_P28744153_20-11-2025_14_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, '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 = 28729285 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': 4083488, 'mtr_portfolio_id': 28729285, 'created_at': datetime.datetime(2025, 11, 20, 6, 8, 58), 'result': '0.06316202260982903', 'result_long': None, 'result_double': None}] Qualite : 0.06316202260982903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729285 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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}" where mtr_portfolio_id = 28729285 and dashboard_run_id = 2624470 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`=28729285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544571, 0.06316202260982903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, '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 = 28729878 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': 4083489, 'mtr_portfolio_id': 28729878, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 33), 'result': '0.046446620973363016', 'result_long': None, 'result_double': None}] Qualite : 0.046446620973363016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729878 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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}" where mtr_portfolio_id = 28729878 and dashboard_run_id = 2624470 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`=28729878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544572, 0.046446620973363016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, '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 = 28730454 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': 4083490, 'mtr_portfolio_id': 28730454, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 29), 'result': '0.06219491235228678', 'result_long': None, 'result_double': None}] Qualite : 0.06219491235228678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730454 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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}" where mtr_portfolio_id = 28730454 and dashboard_run_id = 2624470 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`=28730454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544573, 0.06219491235228678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, '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 = 28730956 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': 4083491, 'mtr_portfolio_id': 28730956, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 59), 'result': '0.028716250443948738', 'result_long': None, 'result_double': None}] Qualite : 0.028716250443948738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730956 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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}" where mtr_portfolio_id = 28730956 and dashboard_run_id = 2624470 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`=28730956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544574, 0.028716250443948738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, '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 = 28732283 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': 4083492, 'mtr_portfolio_id': 28732283, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 29), 'result': '0.0637085330401548', 'result_long': None, 'result_double': None}] Qualite : 0.0637085330401548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732283 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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}" where mtr_portfolio_id = 28732283 and dashboard_run_id = 2624470 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`=28732283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544575, 0.0637085330401548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, '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 = 28732606 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': 4083493, 'mtr_portfolio_id': 28732606, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 58), 'result': '0.0530839223813962', 'result_long': None, 'result_double': None}] Qualite : 0.0530839223813962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732606 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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}" where mtr_portfolio_id = 28732606 and dashboard_run_id = 2624470 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`=28732606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544576, 0.0530839223813962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, '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 = 28732937 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': 4083494, 'mtr_portfolio_id': 28732937, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 7), 'result': '0.04830138493187099', 'result_long': None, 'result_double': None}] Qualite : 0.04830138493187099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732937 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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}" where mtr_portfolio_id = 28732937 and dashboard_run_id = 2624470 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`=28732937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544577, 0.04830138493187099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, '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 = 28733416 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': 4083495, 'mtr_portfolio_id': 28733416, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.044310430713162936', 'result_long': None, 'result_double': None}] Qualite : 0.044310430713162936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733416 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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}" where mtr_portfolio_id = 28733416 and dashboard_run_id = 2624470 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`=28733416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544578, 0.044310430713162936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, '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 = 28733691 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': 4083496, 'mtr_portfolio_id': 28733691, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.06394866085328949', 'result_long': None, 'result_double': None}] Qualite : 0.06394866085328949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733691 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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}" where mtr_portfolio_id = 28733691 and dashboard_run_id = 2624470 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`=28733691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544579, 0.06394866085328949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, '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 = 28734257 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': 4083497, 'mtr_portfolio_id': 28734257, 'created_at': datetime.datetime(2025, 11, 20, 6, 12), 'result': '0.06501693880847081', 'result_long': None, 'result_double': None}] Qualite : 0.06501693880847081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734257 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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}" where mtr_portfolio_id = 28734257 and dashboard_run_id = 2624470 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`=28734257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544580, 0.06501693880847081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, '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 = 28734699 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': 4083498, 'mtr_portfolio_id': 28734699, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 30), 'result': '0.034492618132727776', 'result_long': None, 'result_double': None}] Qualite : 0.034492618132727776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734699 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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}" where mtr_portfolio_id = 28734699 and dashboard_run_id = 2624470 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`=28734699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544581, 0.034492618132727776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, '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 = 28735407 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': 4083499, 'mtr_portfolio_id': 28735407, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 59), 'result': '0.051680025933597946', 'result_long': None, 'result_double': None}] Qualite : 0.051680025933597946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735407 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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}" where mtr_portfolio_id = 28735407 and dashboard_run_id = 2624470 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`=28735407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544582, 0.051680025933597946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, '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 = 28735955 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': 4083500, 'mtr_portfolio_id': 28735955, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 31), 'result': '0.0421090861949604', 'result_long': None, 'result_double': None}] Qualite : 0.0421090861949604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735955 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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}" where mtr_portfolio_id = 28735955 and dashboard_run_id = 2624470 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`=28735955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544583, 0.0421090861949604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, '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 = 28736530 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': 4083501, 'mtr_portfolio_id': 28736530, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 30), 'result': '0.021800452178801957', 'result_long': None, 'result_double': None}] Qualite : 0.021800452178801957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736530 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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}" where mtr_portfolio_id = 28736530 and dashboard_run_id = 2624470 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`=28736530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544584, 0.021800452178801957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, '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 = 28736964 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': 4083502, 'mtr_portfolio_id': 28736964, 'created_at': datetime.datetime(2025, 11, 20, 6, 14), 'result': '0.033335769011512154', 'result_long': None, 'result_double': None}] Qualite : 0.033335769011512154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736964 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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}" where mtr_portfolio_id = 28736964 and dashboard_run_id = 2624470 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`=28736964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544585, 0.033335769011512154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, '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 = 28740327 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 = 28740327 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 = 28740327 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 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 = 28740327 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 = 28740327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740327 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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}" where mtr_portfolio_id = 28740327 and dashboard_run_id = 2624470 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 = 28740329 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 = 28740329 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740329 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740329%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740329 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740329 and dashboard_run_id = 2624470 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 = 28740332 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 = 28740332 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740332 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740332%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740332 and dashboard_run_id = 2624470 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 = 28740348 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 = 28740348 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 = 28740348 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 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 = 28740348 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 = 28740348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740348 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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}" where mtr_portfolio_id = 28740348 and dashboard_run_id = 2624470 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 = 28740352 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 = 28740352 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 = 28740352 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 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 = 28740352 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 = 28740352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740352 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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}" where mtr_portfolio_id = 28740352 and dashboard_run_id = 2624470 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 = 28740373 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 = 28740373 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 = 28740373 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 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 = 28740373 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 = 28740373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740373 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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}" where mtr_portfolio_id = 28740373 and dashboard_run_id = 2624470 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 = 28740377 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 = 28740377 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 = 28740377 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 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 = 28740377 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 = 28740377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740377 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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}" where mtr_portfolio_id = 28740377 and dashboard_run_id = 2624470 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 = 28743048 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': 4084305, 'mtr_portfolio_id': 28743048, 'created_at': datetime.datetime(2025, 11, 20, 13, 50, 30), 'result': '0.1643000290292006', 'result_long': None, 'result_double': None}] Qualite : 0.1643000290292006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743048 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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}" where mtr_portfolio_id = 28743048 and dashboard_run_id = 2624470 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`=28743048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544593, 0.1643000290292006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, '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 = 28743363 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': 4084330, 'mtr_portfolio_id': 28743363, 'created_at': datetime.datetime(2025, 11, 20, 14, 6, 31), 'result': '0.04399569440713958', 'result_long': None, 'result_double': None}] Qualite : 0.04399569440713958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743363 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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}" where mtr_portfolio_id = 28743363 and dashboard_run_id = 2624470 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`=28743363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544594, 0.04399569440713958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, '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 = 28743751 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': 4084358, 'mtr_portfolio_id': 28743751, 'created_at': datetime.datetime(2025, 11, 20, 14, 16, 58), 'result': '0.037633621081997505', 'result_long': None, 'result_double': None}] Qualite : 0.037633621081997505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743751 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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}" where mtr_portfolio_id = 28743751 and dashboard_run_id = 2624470 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`=28743751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544595, 0.037633621081997505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, '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 = 28744153 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': 4084429, 'mtr_portfolio_id': 28744153, 'created_at': datetime.datetime(2025, 11, 20, 14, 30, 59), 'result': '0.025629585144409297', 'result_long': None, 'result_double': None}] Qualite : 0.025629585144409297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744153 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_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}" where mtr_portfolio_id = 28744153 and dashboard_run_id = 2624470 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`=28744153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17544596, 0.025629585144409297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, '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 (28729285,28729878,28730454,28730956,28732283,28732606,28732937,28733416,28733691,28734257,28734699,28735407,28735955,28736530,28736964,28740327,28740329,28740332,28740348,28740352,28740373,28740377,28743048,28743363,28743751,28744153) result : ((1395288892,), (1395288983,), (1395289751,), (1395289782,), (1395290131,), (1395290203,), (1395290270,), (1395290334,), (1395290691,), (1395290703,), (1395290705,), (1395290709,), (1395290712,), (1395290716,), (1395290731,), (1395290732,), (1395290760,), (1395290762,), (1395290765,), (1395290769,), (1395290772,), (1395290774,), (1395290819,), (1395290854,), (1395290898,), (1395291313,), (1395291346,), (1395291664,), (1395291671,), (1395291777,), (1395291779,), (1395291781,), (1395291784,), (1395292498,), (1395292500,), (1395292501,), (1395292777,), (1395292780,), (1395292782,), (1395292797,), (1395292799,), (1395292800,), (1395292803,), (1395292806,), (1395292825,), (1395292826,), (1395292827,), (1395292830,), (1395292851,), (1395292853,), (1395292856,), (1395292860,), (1395293706,), (1395293718,), (1395293722,), (1395293857,), (1395293891,), (1395293645,), (1395293696,), (1395293699,), (1395294062,), (1395294092,), (1395294124,), (1395294155,), (1395294572,), (1395294705,), (1395294861,), (1395295001,), (1395295144,), (1395295572,), (1395295574,), (1395295575,), (1395295601,), (1395295636,), (1395296088,), (1395296144,), (1395296177,), (1395296210,), (1395296252,), (1395296660,), (1395296674,), (1395296855,), (1395296889,), (1395296901,), (1395296904,), (1395296937,), (1395296952,), (1395296970,), (1395297005,), (1395297042,), (1395297080,), (1395297120,), (1395297485,), (1395297520,), (1395297560,), (1395297595,), (1395297961,), (1395297996,), (1395298047,), (1395298081,), (1395298622,), (1395298685,), (1395298748,), (1395298814,), (1395298881,), (1395298946,), (1395299017,), (1395299127,), (1395299135,), (1395299153,), (1395299186,), (1395300313,), (1395300346,), (1395300358,), (1395300366,), (1395300674,), (1395300709,), (1395300790,), (1395300875,), (1395300967,), (1395301065,), (1395301540,), (1395301574,), (1395301767,), (1395301798,), (1395301931,), (1395301632,), (1395301665,), (1395301699,), (1395301733,), (1395302054,), (1395302086,), (1395302117,), (1395302149,), (1395302184,), (1395302356,), (1395302359,), (1395302363,), (1395302377,), (1395302642,), (1395302701,), (1395303197,), (1395303228,), (1395303262,), (1395303296,), (1395303328,), (1395303535,), (1395303566,), (1395303599,), (1395303615,), (1395303624,), (1395303639,), (1395303683,), (1395303685,), (1395303690,), (1395303691,), (1395303692,), (1395304106,), (1395304141,), (1395304175,), (1395304216,), (1395304251,), (1395304286,), (1395304326,), (1395304358,), (1395304388,), (1395304428,), (1395304467,), (1395304601,), (1395304603,), (1395304622,), (1395304638,), (1395304659,), (1395304881,), (1395304909,), (1395304939,), (1395304970,), (1395304999,), (1395305150,), (1395305181,), (1395305213,), (1395305244,), (1395305278,), (1395305522,), (1395305523,), (1395305524,), (1395305976,), (1395306070,), (1395306183,), (1395306309,), (1395306876,), (1395306877,), (1395306879,), (1395306883,), (1395306886,), (1395306941,), (1395307170,), (1395307364,), (1395307277,), (1395307342,), (1395307356,), (1395307360,), (1395307374,), (1395307375,), (1395307376,), (1395307395,), (1395307396,), (1395307397,), (1395307725,), (1395307815,), (1395307922,), (1395308259,), (1395308286,), (1395308287,), (1395308288,), (1395308378,), (1395308412,), (1395308446,), (1395308770,), (1395308782,), (1395308811,), (1395308842,), (1395308943,), (1395308944,), (1395308945,), (1395308947,), (1395308966,), (1395308967,), (1395308983,), (1395308985,), (1395308987,), (1395308999,), (1395309002,), (1395309004,), (1395309008,), (1395309011,), (1395309014,), (1395309021,), (1395309023,), (1395309025,), (1395309026,), (1395309027,), (1395309028,), (1395309031,), (1395309045,), (1395309046,), (1395309047,), (1395309074,), (1395309078,), (1395309371,), (1395313362,), (1395313364,), (1395313365,), (1395313384,), (1395313386,), (1395313388,), (1395313391,), (1395313443,), (1395313446,), (1395313448,), (1395313450,), (1395313452,), (1395313475,), (1395313476,), (1395313478,), (1395313482,), (1395313486,), (1395313490,), (1395313497,), (1395313500,), (1395313503,), (1395313505,), (1395313607,), (1395313610,), (1395313611,), (1395313612,), (1395313631,), (1395313633,), (1395313635,), (1395313638,), (1395313642,), (1395313669,), (1395313671,), (1395313673,), (1395313675,), (1395313697,), (1395313699,), (1395313734,), (1395313739,), (1395313742,), (1395313756,), (1395313777,), (1395313779,), (1395313781,), (1395313783,), (1395313804,), (1395313805,), (1395313806,), (1395313809,), (1395313811,), (1395313828,), (1395313830,), (1395313832,), (1395313871,), (1395313901,), (1395313932,), (1395313961,), (1395313856,), (1395313857,), (1395313860,), (1395313865,), (1395313869,), (1395314100,), (1395314130,), (1395314162,), (1395314196,), (1395314230,), (1395314550,), (1395314582,), (1395314611,), (1395314641,), (1395314774,), (1395314806,), (1395314837,), (1395314865,), (1395314873,), (1395314998,), (1395314999,), (1395315000,), (1395315003,), (1395315008,), (1395315010,), (1395315020,), (1395315023,), (1395315043,), (1395315045,), (1395315047,), (1395315051,), (1395315076,), (1395315077,), (1395315078,), (1395315080,), (1395315084,), (1395315103,), (1395315104,), (1395315106,), (1395315108,), (1395315112,), (1395315132,), (1395315133,), (1395315135,), (1395315139,), (1395315142,), (1395315170,), (1395315172,), (1395315176,), (1395315180,), (1395315183,), (1395315185,), (1395315191,), (1395315195,), (1395315196,), (1395315199,), (1395315203,), (1395315218,), (1395315219,), (1395315220,), (1395315222,), (1395315224,), (1395315228,), (1395315239,), (1395315243,), (1395315248,), (1395315251,), (1395315258,), (1395315269,), (1395315271,), (1395315274,), (1395315278,), (1395315309,), (1395315310,), (1395315311,), (1395315340,), (1395315342,), (1395315300,), (1395315304,), (1395315307,), (1395315312,), (1395315314,), (1395315319,), (1395315323,), (1395315327,), (1395315330,), (1395315351,), (1395315353,), (1395315356,), (1395315377,), (1395315380,), (1395315383,), (1395315386,), (1395315389,), (1395315403,), (1395315404,), (1395315405,), (1395315407,), (1395315408,), (1395315412,), (1395315435,), (1395315436,), (1395315439,), (1395315443,), (1395315447,), (1395315450,), (1395315474,), (1395315476,), (1395315478,), (1395315479,), (1395315480,), (1395315481,), (1395315483,), (1395315487,), (1395315508,), (1395315510,), (1395315512,), (1395315533,), (1395315534,), (1395315535,), (1395315538,), (1395315567,), (1395315569,), (1395315572,), (1395315576,), (1395315587,), (1395315612,), (1395315614,), (1395315615,), (1395315618,), (1395315620,), (1395315641,), (1395315644,), (1395315646,), (1395315649,), (1395315654,), (1395315659,), (1395315669,), (1395315670,), (1395315671,), (1395315695,), (1395315697,), (1395315699,), (1395315702,), (1395315706,), (1395315710,), (1395315740,), (1395315742,), (1395315746,), (1395315752,), (1395315757,), (1395315789,), (1395315792,), (1395315859,), (1395315899,), (1395315935,), (1395315965,), (1395315993,), (1395316192,), (1395316197,), (1395315775,), (1395315777,), (1395315781,), (1395315785,), (1395315802,), (1395315806,), (1395315809,), (1395315811,), (1395315813,), (1395315815,), (1395315829,), (1395316121,), (1395316123,), (1395316155,), (1395316158,), (1395316180,), (1395316181,), (1395316184,), (1395316185,), (1395316188,), (1395316189,), (1395316269,), (1395316298,), (1395316300,), (1395316323,), (1395316326,), (1395316331,), (1395316355,), (1395316356,), (1395316357,), (1395316360,), (1395316365,), (1395316368,), (1395316388,), (1395316396,), (1395316399,), (1395316402,), (1395316422,), (1395316423,), (1395316424,), (1395316450,), (1395316457,), (1395316459,), (1395316463,), (1395316467,), (1395316482,), (1395316483,), (1395316484,), (1395316487,), (1395316516,), (1395316518,), (1395316520,), (1395316524,), (1395316528,), (1395316548,), (1395316550,), (1395316553,), (1395316557,), (1395316561,), (1395316563,), (1395316569,), (1395316571,), (1395316573,), (1395316575,), (1395316576,), (1395316579,), (1395316582,), (1395316587,), (1395316597,), (1395316644,), (1395316646,), (1395316702,), (1395316703,), (1395316704,), (1395316705,), (1395316707,), (1395316735,), (1395316738,), (1395316741,), (1395316744,), (1395316746,), (1395316749,), (1395316775,), (1395316780,), (1395316786,), (1395316796,), (1395316811,), (1395316814,), (1395316815,), (1395316772,), (1395316773,), (1395316817,), (1395316819,), (1395316854,), (1395316859,), (1395316861,), (1395316863,), (1395316880,), (1395316882,), (1395316884,), (1395316904,), (1395316905,), (1395316906,), (1395316911,), (1395316933,), (1395316934,), (1395316936,), (1395316940,), (1395316944,), (1395316952,), (1395316971,), (1395316972,), (1395316973,), (1395316976,), (1395316978,), (1395317001,), (1395317003,), (1395317005,), (1395317008,), (1395317027,), (1395317029,), (1395317033,), (1395317051,), (1395317052,), (1395317053,), (1395317079,), (1395317080,), (1395317081,), (1395317084,), (1395317100,), (1395317102,), (1395317104,), (1395317136,), (1395317137,), (1395317138,), (1395317140,), (1395317174,), (1395317175,), (1395317177,), (1395317198,), (1395317199,), (1395317201,), (1395317237,), (1395317241,), (1395317242,), (1395317252,), (1395317229,), (1395317230,), (1395317233,), (1395317258,), (1395317260,), (1395317262,), (1395317265,), (1395317286,), (1395317288,), (1395317291,), (1395317310,), (1395317311,), (1395317312,), (1395317314,), (1395317318,), (1395317320,), (1395317462,), (1395317492,), (1395317523,), (1395317554,), (1395317587,), (1395317872,), (1395317874,), (1395317891,), (1395317892,), (1395317893,), (1395317895,), (1395317908,), (1395317910,), (1395317912,), (1395317915,), (1395317919,), (1395317934,), (1395317935,), (1395317936,), (1395317939,), (1395317943,), (1395317945,), (1395318376,), (1395318442,), (1395318503,), (1395318552,), (1395318746,), (1395318750,), (1395318754,), (1395318781,), (1395318812,), (1395318820,), (1395318869,), (1395318883,), (1395318884,), (1395318887,), (1395318889,), (1395318892,), (1395318911,), (1395318950,), (1395319131,), (1395319162,), (1395319168,), (1395319185,), (1395319253,), (1395319255,), (1395319258,), (1395319271,), (1395319275,), (1395319277,), (1395319279,), (1395319307,), (1395319296,), (1395319298,), (1395319299,), (1395319303,), (1395319325,), (1395319327,), (1395319329,), (1395319535,), (1395319566,), (1395319597,), (1395319628,), (1395319659,), (1395319694,), (1395320287,), (1395320345,), (1395320998,), (1395321030,), (1395321431,), (1395321487,), (1395321522,), (1395321555,), (1395321589,), (1395321632,), (1395321883,), (1395321884,), (1395321886,), (1395321889,), (1395322163,), (1395322164,), (1395322165,), (1395322172,), (1395322185,), (1395322205,), (1395322207,), (1395322209,), (1395322245,), (1395322250,), (1395322253,), (1395322256,), (1395322259,), (1395322283,), (1395322286,), (1395322291,), (1395322296,), (1395322301,), (1395322304,), (1395322316,), (1395322318,), (1395322320,), (1395322324,), (1395322329,), (1395322363,), (1395322364,), (1395322365,), (1395322368,), (1395322373,), (1395322391,), (1395322393,), (1395322395,), (1395322399,), (1395322425,), (1395322427,), (1395322430,), (1395322433,), (1395322436,), (1395322440,), (1395322476,), (1395322559,), (1395322592,), (1395322622,), (1395322653,), (1395322684,), (1395322715,), (1395322462,), (1395322463,), (1395322465,), (1395322468,), (1395322472,), (1395322840,), (1395322876,), (1395322910,), (1395322948,), (1395322979,), (1395323213,), (1395323241,), (1395323439,), (1395323470,), (1395323500,), (1395323533,), (1395323655,), (1395323656,), (1395323657,), (1395323660,), (1395323705,), (1395324071,), (1395324101,), (1395324131,), (1395324163,), (1395324610,), (1395324640,), (1395324673,), (1395324705,), (1395324714,), (1395324716,), (1395324735,), (1395324736,), (1395324737,), (1395324749,), (1395324782,), (1395324817,), (1395324850,), (1395325079,), (1395325087,), (1395325089,), (1395325096,), (1395325101,), (1395325104,), (1395325128,), (1395325130,), (1395325132,), (1395325135,), (1395325138,), (1395325165,), (1395325166,), (1395325168,), (1395325172,), (1395325176,), (1395325179,), (1395325185,), (1395325186,), (1395325192,), (1395325195,), (1395325200,), (1395325205,), (1395325210,), (1395325235,), (1395325238,), (1395325240,), (1395325244,), (1395325247,), (1395325276,), (1395325278,), (1395325280,), (1395325284,), (1395325310,), (1395325314,), (1395325318,), (1395325321,), (1395325323,), (1395325326,), (1395325367,), (1395325372,), (1395325375,), (1395325383,), (1395325384,), (1395325385,), (1395325389,), (1395325357,), (1395325359,), (1395325363,), (1395325405,), (1395325410,), (1395325413,), (1395325507,), (1395325537,), (1395325570,), (1395325602,), (1395325839,), (1395325847,), (1395325877,), (1395325911,), (1395325947,), (1395326065,), (1395326067,), (1395326070,), (1395326073,), (1395326077,), (1395326090,), (1395326091,), (1395326093,), (1395326101,), (1395326105,), (1395326109,), (1395326117,), (1395326118,), (1395326119,), (1395326126,), (1395326130,), (1395326140,), (1395326143,), (1395326146,), (1395326185,), (1395326208,), (1395326217,), (1395326222,), (1395326227,), (1395326244,), (1395326245,), (1395326246,), (1395326263,), (1395326265,), (1395326267,), (1395326271,), (1395326282,), (1395326306,), (1395326307,), (1395326308,), (1395326314,), (1395326317,), (1395326340,), (1395326417,), (1395326418,), (1395326462,), (1395326470,), (1395326471,), (1395326450,), (1395326451,), (1395326453,), (1395326457,), (1395326460,), (1395326473,), (1395326474,), (1395326475,), (1395326547,), (1395326548,), (1395326549,), (1395326551,), (1395326555,), (1395326586,), (1395326587,), (1395326588,), (1395326590,), (1395326594,), (1395326596,), (1395326611,), (1395326613,), (1395326615,), (1395326619,), (1395326624,), (1395326628,), (1395326635,), (1395326637,), (1395326639,), (1395326642,), (1395326675,), (1395326677,), (1395326679,), (1395326682,), (1395326686,), (1395326690,), (1395326709,), (1395326711,), (1395326715,), (1395326720,), (1395326726,), (1395326745,), (1395326747,), (1395326749,), (1395326753,), (1395326756,), (1395326760,), (1395326779,), (1395326784,), (1395326785,), (1395326787,), (1395326791,), (1395326816,), (1395326818,), (1395326821,), (1395326831,), (1395326837,), (1395326841,), (1395326847,), (1395326848,), (1395326849,), (1395326855,), (1395326861,), (1395326865,), (1395326878,), (1395326879,), (1395326880,), (1395326882,), (1395326887,), (1395326926,), (1395326930,), (1395326935,), (1395326973,), (1395326978,), (1395326982,), (1395326987,), (1395326967,), (1395326970,), (1395327010,), (1395327013,), (1395327016,), (1395327020,), (1395327047,), (1395327048,), (1395327049,), (1395327052,), (1395327055,), (1395327089,), (1395327091,), (1395327093,), (1395327096,), (1395327101,), (1395327105,), (1395327123,), (1395327124,), (1395327125,), (1395327128,), (1395327154,), (1395327156,), (1395327159,), (1395327163,), (1395327167,), (1395327170,), (1395327178,), (1395327181,), (1395327191,), (1395327192,), (1395327193,), (1395327195,), (1395327199,), (1395327230,), (1395327232,), (1395327235,), (1395327282,), (1395327283,), (1395327284,), (1395327285,), (1395327310,), (1395327312,), (1395327314,), (1395327317,), (1395327320,), (1395327322,), (1395327348,), (1395327349,), (1395327350,), (1395327353,), (1395327355,), (1395327359,), (1395327378,), (1395336768,), (1395346827,), (1395346917,), (1395346940,), (1395346941,), (1395346944,), (1395346945,), (1395346969,), (1395346976,), (1395346991,), (1395346994,), (1395346996,), (1395346998,), (1395347000,), (1395347002,), (1395347025,), (1395347028,), (1395347030,), (1395347032,), (1395347035,), (1395347037,), (1395347232,), (1395347266,), (1395347321,), (1395347382,), (1395347455,), (1395347467,), (1395347492,), (1395347498,), (1395347504,), (1395347508,), (1395347512,), (1395347517,), (1395347524,), (1395347529,), (1395347533,), (1395347536,), (1395347540,), (1395347543,), (1395347555,), (1395347556,), (1395347558,), (1395347559,), (1395347561,), (1395347562,), (1395347569,), (1395347572,), (1395347583,), (1395347585,), (1395347588,), (1395347591,), (1395346189,), (1395346190,), (1395346191,), (1395346192,), (1395346193,), (1395346194,), (1395346211,), (1395346215,), (1395346219,), (1395346221,), (1395346223,), (1395346226,), (1395346238,), (1395346242,), (1395346246,), (1395346251,), (1395346256,), (1395346260,), (1395346265,), (1395346268,), (1395346270,), (1395346273,), (1395346276,), (1395346281,), (1395346297,), (1395346305,), (1395346309,), (1395346312,), (1395346314,), (1395346316,), (1395346335,), (1395346336,), (1395346340,), (1395346341,), (1395346346,), (1395346347,), (1395346351,), (1395346352,), (1395346355,), (1395346356,), (1395346359,), (1395346360,), (1395346369,), (1395346372,), (1395346375,), (1395346378,), (1395346381,), (1395346385,), (1395346391,), (1395346396,), (1395346401,), (1395346405,), (1395346410,), (1395346416,), (1395346442,), (1395346445,), (1395346449,), (1395346474,), (1395346484,), (1395346496,), (1395346548,), (1395346552,), (1395346558,), (1395346562,), (1395346568,), (1395346573,), (1395346581,), (1395346585,), (1395346588,), (1395346591,), (1395346594,), (1395346602,), (1395346631,), (1395346633,), (1395346637,), (1395346643,), (1395346648,), (1395346654,), (1395346712,), (1395346743,), (1395346761,), (1395346778,), (1395346786,), (1395346796,), (1395346812,), (1395346815,), (1395346818,), (1395346820,), (1395346823,), (1395346876,), (1395346890,), (1395346892,), (1395346905,), (1395346912,), (1395345472,), (1395345473,), (1395345474,), (1395345475,), (1395345476,), (1395345478,), (1395345507,), (1395345508,), (1395345509,), (1395345510,), (1395345513,), (1395345516,), (1395345536,), (1395345542,), (1395345545,), (1395345548,), (1395345550,), (1395345552,), (1395345566,), (1395345571,), (1395345575,), (1395345578,), (1395345582,), (1395345587,), (1395345605,), (1395345609,), (1395345613,), (1395345618,), (1395345621,), (1395345623,), (1395345631,), (1395345634,), (1395345637,), (1395345641,), (1395345645,), (1395345681,), (1395345713,), (1395345724,), (1395345733,), (1395345739,), (1395345743,), (1395345747,), (1395345758,), (1395345760,), (1395345762,), (1395345765,), (1395345776,), (1395345790,), (1395345945,), (1395345959,), (1395345969,), (1395345980,), (1395345991,), (1395346004,), (1395346043,), (1395346044,), (1395346045,), (1395346046,), (1395346047,), (1395346049,), (1395346064,), (1395346069,), (1395346072,), (1395346077,), (1395346079,), (1395346080,), (1395346125,), (1395346129,), (1395346135,), (1395346142,), (1395346149,), (1395346152,), (1395346153,), (1395346154,), (1395346156,), (1395346157,), (1395346159,), (1395346160,), (1395346162,), (1395346163,), (1395346165,), (1395346166,), (1395346168,), (1395346169,), (1395342157,), (1395342161,), (1395342165,), (1395342311,), (1395342313,), (1395342356,), (1395342364,), (1395342392,), (1395342399,), (1395342433,), (1395342439,), (1395342484,), (1395342485,), (1395342525,), (1395342527,), (1395342713,), (1395342746,), (1395342782,), (1395342823,), (1395342858,), (1395342893,), (1395343025,), (1395343060,), (1395343093,), (1395343126,), (1395343163,), (1395343200,), (1395343329,), (1395343365,), (1395343387,), (1395343390,), (1395343393,), (1395343396,), (1395343409,), (1395343416,), (1395343453,), (1395343490,), (1395343522,), (1395343557,), (1395343812,), (1395343813,), (1395343875,), (1395343878,), (1395343943,), (1395343947,), (1395344010,), (1395344019,), (1395344071,), (1395344077,), (1395344108,), (1395344115,), (1395344312,), (1395344376,), (1395344443,), (1395344488,), (1395344527,), (1395344857,), (1395344872,), (1395344877,), (1395345103,), (1395345111,), (1395345176,), (1395345182,), (1395345186,), (1395345192,), (1395345196,), (1395345200,), (1395345201,), (1395345205,), (1395345210,), (1395345214,), (1395345218,), (1395345228,), (1395345230,), (1395345234,), (1395345241,), (1395345247,), (1395345252,), (1395345262,), (1395345263,), (1395345264,), (1395345267,), (1395345268,), (1395345271,), (1395345287,), (1395345290,), (1395345293,), (1395345296,), (1395345299,), (1395345311,), (1395345421,), (1395345430,), (1395345438,), (1395345452,), (1395345455,), (1395345458,), (1395341259,), (1395341265,), (1395341270,), (1395341274,), (1395341279,), (1395341316,), (1395341319,), (1395341322,), (1395341325,), (1395341328,), (1395341329,), (1395341362,), (1395341363,), (1395341367,), (1395341369,), (1395341372,), (1395341373,), (1395341378,), (1395341380,), (1395341383,), (1395341385,), (1395341387,), (1395341389,), (1395341401,), (1395341404,), (1395341408,), (1395341412,), (1395341417,), (1395341422,), (1395341429,), (1395341431,), (1395341435,), (1395341439,), (1395341443,), (1395341462,), (1395341475,), (1395341500,), (1395341541,), (1395341579,), (1395341591,), (1395341641,), (1395341644,), (1395341647,), (1395341675,), (1395341690,), (1395341692,), (1395341705,), (1395341725,), (1395341734,), (1395341742,), (1395341745,), (1395341749,), (1395341758,), (1395341763,), (1395341766,), (1395341769,), (1395341772,), (1395341774,), (1395341821,), (1395341854,), (1395341885,), (1395341903,), (1395341911,), (1395341921,), (1395341991,), (1395342023,), (1395342038,), (1395342050,), (1395342055,), (1395342065,), (1395342078,), (1395342083,), (1395342088,), (1395342090,), (1395342094,), (1395342098,), (1395342121,), (1395342124,), (1395342128,), (1395342132,), (1395342136,), (1395342139,), (1395342146,), (1395342148,), (1395342153,), (1395340736,), (1395340742,), (1395340744,), (1395340749,), (1395340790,), (1395340793,), (1395340797,), (1395340800,), (1395340803,), (1395340818,), (1395340822,), (1395340825,), (1395340838,), (1395340839,), (1395340844,), (1395340852,), (1395340855,), (1395340859,), (1395340864,), (1395340868,), (1395340873,), (1395340896,), (1395340898,), (1395340900,), (1395340903,), (1395340910,), (1395340944,), (1395340975,), (1395340979,), (1395340983,), (1395340985,), (1395340989,), (1395341002,), (1395341013,), (1395341017,), (1395341021,), (1395341025,), (1395341028,), (1395341038,), (1395341052,), (1395341055,), (1395341059,), (1395341063,), (1395341069,), (1395341072,), (1395341092,), (1395341093,), (1395341094,), (1395341096,), (1395341097,), (1395341098,), (1395341102,), (1395341103,), (1395341107,), (1395341108,), (1395341112,), (1395341114,), (1395341126,), (1395341128,), (1395341130,), (1395341133,), (1395341150,), (1395341153,), (1395341162,), (1395341192,), (1395341229,), (1395341244,), (1395341247,), (1395341250,), (1395341257,), (1395340322,), (1395340323,), (1395340327,), (1395340329,), (1395340334,), (1395340335,), (1395340340,), (1395340341,), (1395340358,), (1395340365,), (1395340372,), (1395340379,), (1395340386,), (1395340387,), (1395340388,), (1395340389,), (1395340392,), (1395340399,), (1395340428,), (1395340432,), (1395340436,), (1395340438,), (1395340440,), (1395340443,), (1395340457,), (1395340460,), (1395340464,), (1395340466,), (1395340468,), (1395340470,), (1395340481,), (1395340485,), (1395340488,), (1395340492,), (1395340495,), (1395340496,), (1395340506,), (1395340511,), (1395340514,), (1395340519,), (1395340524,), (1395340528,), (1395340533,), (1395340537,), (1395340540,), (1395340543,), (1395340547,), (1395340551,), (1395340563,), (1395340566,), (1395340571,), (1395340574,), (1395340578,), (1395340580,), (1395340589,), (1395340590,), (1395340592,), (1395340593,), (1395340595,), (1395340597,), (1395340601,), (1395340602,), (1395340608,), (1395340611,), (1395340620,), (1395340626,), (1395340637,), (1395340639,), (1395340641,), (1395340643,), (1395340645,), (1395340649,), (1395340659,), (1395340664,), (1395340666,), (1395340669,), (1395340671,), (1395340674,), (1395340687,), (1395340689,), (1395340692,), (1395340696,), (1395340698,), (1395340701,), (1395340716,), (1395340719,), (1395361438,), (1395361512,), (1395361515,), (1395361519,), (1395361524,), (1395361561,), (1395361565,), (1395361569,), (1395361573,), (1395361578,), (1395361608,), (1395363125,), (1395364916,), (1395364842,), (1395365106,), (1395365188,), (1395365223,), (1395365259,), (1395365271,), (1395365293,), (1395365642,), (1395365698,), (1395365733,), (1395366002,), (1395366006,), (1395366202,), (1395366205,), (1395366207,), (1395366209,), (1395366595,), (1395366676,), (1395367253,), (1395366663,), (1395366667,), (1395366670,), (1395366673,), (1395366843,), (1395366890,), (1395366922,), (1395366961,), (1395366991,), (1395366997,), (1395367143,), (1395367149,), (1395367154,), (1395367159,), (1395367171,), (1395367217,), (1395367226,), (1395367230,), (1395367233,), (1395367238,), (1395367243,), (1395367246,), (1395367250,), (1395367251,), (1395367252,), (1395367273,), (1395367275,), (1395367276,), (1395367277,), (1395367279,), (1395367503,), (1395367506,), (1395367510,), (1395367514,), (1395367549,), (1395367587,), (1395367632,), (1395367634,), (1395367821,), (1395367826,), (1395367839,), (1395367856,), (1395367868,), (1395367881,), (1395367924,), (1395367928,), (1395367932,), (1395367934,), (1395367937,), (1395367941,), (1395368116,), (1395368133,), (1395368134,), (1395368135,), (1395368295,), (1395368300,), (1395368304,), (1395368309,), (1395368313,), (1395368335,), (1395368435,), (1395368455,), (1395368459,), (1395368462,), (1395368478,), (1395369132,), (1395369173,), (1395369213,), (1395369256,), (1395369294,), (1395369327,), (1395369592,), (1395369664,), (1395369738,), (1395369804,), (1395369864,), (1395369994,), (1395370027,), (1395370062,), (1395370103,), (1395370156,), (1395370161,), (1395370164,), (1395370194,), (1395370229,), (1395370640,), (1395370679,), (1395370712,), (1395370745,), (1395370807,), (1395371061,), (1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20112025': {'nb_upload': 79, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28744153]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] map_info['map_portfolio_photo'] : {28744153: [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908, 1395373744, 1395373739, 1395373735, 1395373732, 1395373527, 1395373504, 1395373498, 1395373495, 1395373493, 1395373491, 1395373231, 1395373230, 1395373229, 1395373227, 1395373195, 1395373158, 1395373122, 1395373086, 1395373050, 1395373017, 1395372867, 1395372863, 1395372857, 1395372854, 1395372823, 1395372820, 1395372809, 1395372792, 1395372782, 1395372664, 1395372617, 1395372583, 1395372579, 1395372516, 1395372515, 1395372511, 1395372485, 1395372470, 1395372467, 1395372252, 1395372232, 1395372228, 1395372226, 1395372224, 1395372222, 1395372160, 1395372149, 1395372125, 1395372090, 1395372002, 1395371999, 1395371996, 1395371984, 1395371981, 1395371954, 1395371821, 1395371804, 1395371800, 1395371796, 1395371528, 1395371525, 1395371502, 1395371492, 1395371465, 1395371438, 1395371053, 1395371050, 1395371046]} final : True mtd_id 4302 list_pids : [1395374029, 1395374025, 1395374022, 1395374019, 1395374017, 1395373989, 1395373968, 1395373965, 1395373954, 1395373938, 1395373908] Looping around the photos to save general results len do output : 1 /28744153Didn'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, '4084429') ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429') ('4302', None, None, None, None, None, None, None, '4084429') ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28744153', 'None', None, None, None, None, '4084429'), ('4302', '28744153', '1395374029', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374025', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374022', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374019', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395374017', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373989', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373968', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373965', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373954', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373938', None, None, None, None, None, '4084429'), ('4302', '28744153', '1395373908', None, None, None, None, None, '4084429')] time used for this insertion : 0.014075517654418945 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.080824136734009 time spend to save output : 0.014355659484863281 total time spend for step 5 : 4.095179796218872 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 (4084429) 2.41user 2.48system 0:14.69elapsed 33%CPU (0avgtext+0avgdata 159780maxresident)k 528inputs+12680outputs (46major+76723minor)pagefaults 0swaps