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 : 1703138 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 (4024993) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4024993) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375472 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4024993'] with mtr_portfolio_ids : ['28375472'] and first list_photo_ids : [] new path : /proc/1703138/ Name: python3 Umask: 0002 State: R (running) Tgid: 1703138 Ngid: 0 Pid: 1703138 PPid: 1703137 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1703138 NSpid: 1703138 NSpgid: 1701704 NSsid: 1701704 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99200 kB VmRSS: 99200 kB RssAnon: 59908 kB RssFile: 39292 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 51 nonvoluntary_ctxt_switches: 82 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1703138', 'Ngid': '0', 'Pid': '1703138', 'PPid': '1703137', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1703138', 'NSpid': '1703138', 'NSpgid': '1701704', 'NSsid': '1701704', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99200 kB', 'VmRSS': '99200 kB', 'RssAnon': '59908 kB', 'RssFile': '39292 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '51', 'nonvoluntary_ctxt_switches': '82'} ('datou_batch_current', '1703138', '1106908', '0', '1106884', '865636', '99200', b'', 'marlene', '4024993') 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 (28375472) 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 (4024993 ) ) 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 (28375472) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393679884, 'portfolio_id': 28375472}, {'photo_id': 1393679883, 'portfolio_id': 28375472}, {'photo_id': 1393679881, 'portfolio_id': 28375472}, {'photo_id': 1393679873, 'portfolio_id': 28375472}, {'photo_id': 1393679850, 'portfolio_id': 28375472}, {'photo_id': 1393679847, 'portfolio_id': 28375472}, {'photo_id': 1393679843, 'portfolio_id': 28375472}, {'photo_id': 1393679839, 'portfolio_id': 28375472}, {'photo_id': 1393679837, 'portfolio_id': 28375472}, {'photo_id': 1393679834, 'portfolio_id': 28375472}, {'photo_id': 1393679806, 'portfolio_id': 28375472}, {'photo_id': 1393679776, 'portfolio_id': 28375472}, {'photo_id': 1393679772, 'portfolio_id': 28375472}, {'photo_id': 1393679763, 'portfolio_id': 28375472}, {'photo_id': 1393679759, 'portfolio_id': 28375472}, {'photo_id': 1393679749, 'portfolio_id': 28375472}, {'photo_id': 1393679649, 'portfolio_id': 28375472}, {'photo_id': 1393679615, 'portfolio_id': 28375472}, {'photo_id': 1393679582, 'portfolio_id': 28375472}, {'photo_id': 1393679581, 'portfolio_id': 28375472}, {'photo_id': 1393679580, 'portfolio_id': 28375472}, {'photo_id': 1393679572, 'portfolio_id': 28375472}, {'photo_id': 1393679436, 'portfolio_id': 28375472}, {'photo_id': 1393679432, 'portfolio_id': 28375472}, {'photo_id': 1393679429, 'portfolio_id': 28375472}, {'photo_id': 1393679425, 'portfolio_id': 28375472}, {'photo_id': 1393679418, 'portfolio_id': 28375472}, {'photo_id': 1393679416, 'portfolio_id': 28375472}, {'photo_id': 1393679412, 'portfolio_id': 28375472}, {'photo_id': 1393679405, 'portfolio_id': 28375472}, {'photo_id': 1393679380, 'portfolio_id': 28375472}, {'photo_id': 1393679376, 'portfolio_id': 28375472}, {'photo_id': 1393679373, 'portfolio_id': 28375472}, {'photo_id': 1393679370, 'portfolio_id': 28375472}, {'photo_id': 1393679368, 'portfolio_id': 28375472}, {'photo_id': 1393679366, 'portfolio_id': 28375472}, {'photo_id': 1393679332, 'portfolio_id': 28375472}, {'photo_id': 1393679330, 'portfolio_id': 28375472}, {'photo_id': 1393679329, 'portfolio_id': 28375472}, {'photo_id': 1393679327, 'portfolio_id': 28375472}, {'photo_id': 1393679119, 'portfolio_id': 28375472}, {'photo_id': 1393679046, 'portfolio_id': 28375472}, {'photo_id': 1393679009, 'portfolio_id': 28375472}, {'photo_id': 1393678975, 'portfolio_id': 28375472}, {'photo_id': 1393678944, 'portfolio_id': 28375472}, {'photo_id': 1393678912, 'portfolio_id': 28375472}, {'photo_id': 1393678584, 'portfolio_id': 28375472}, {'photo_id': 1393678583, 'portfolio_id': 28375472}, {'photo_id': 1393678582, 'portfolio_id': 28375472}, {'photo_id': 1393678580, 'portfolio_id': 28375472}, {'photo_id': 1393678525, 'portfolio_id': 28375472}, {'photo_id': 1393678522, 'portfolio_id': 28375472}, {'photo_id': 1393678518, 'portfolio_id': 28375472}, {'photo_id': 1393678509, 'portfolio_id': 28375472}, {'photo_id': 1393678507, 'portfolio_id': 28375472}, {'photo_id': 1393678505, 'portfolio_id': 28375472}, {'photo_id': 1393678112, 'portfolio_id': 28375472}, {'photo_id': 1393678069, 'portfolio_id': 28375472}, {'photo_id': 1393678038, 'portfolio_id': 28375472}, {'photo_id': 1393678005, 'portfolio_id': 28375472}, {'photo_id': 1393677665, 'portfolio_id': 28375472}, {'photo_id': 1393677631, 'portfolio_id': 28375472}, {'photo_id': 1393677598, 'portfolio_id': 28375472}, {'photo_id': 1393677564, 'portfolio_id': 28375472}, {'photo_id': 1393677532, 'portfolio_id': 28375472}, {'photo_id': 1393677501, 'portfolio_id': 28375472}, {'photo_id': 1393677319, 'portfolio_id': 28375472}, {'photo_id': 1393677315, 'portfolio_id': 28375472}, {'photo_id': 1393677314, 'portfolio_id': 28375472}, {'photo_id': 1393677313, 'portfolio_id': 28375472}, {'photo_id': 1393677312, 'portfolio_id': 28375472}, {'photo_id': 1393677273, 'portfolio_id': 28375472}, {'photo_id': 1393677270, 'portfolio_id': 28375472}, {'photo_id': 1393677267, 'portfolio_id': 28375472}, {'photo_id': 1393677263, 'portfolio_id': 28375472}] map_portfolio_id_photo_id: {28375472: [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749, 1393679649, 1393679615, 1393679582, 1393679581, 1393679580, 1393679572, 1393679436, 1393679432, 1393679429, 1393679425, 1393679418, 1393679416, 1393679412, 1393679405, 1393679380, 1393679376, 1393679373, 1393679370, 1393679368, 1393679366, 1393679332, 1393679330, 1393679329, 1393679327, 1393679119, 1393679046, 1393679009, 1393678975, 1393678944, 1393678912, 1393678584, 1393678583, 1393678582, 1393678580, 1393678525, 1393678522, 1393678518, 1393678509, 1393678507, 1393678505, 1393678112, 1393678069, 1393678038, 1393678005, 1393677665, 1393677631, 1393677598, 1393677564, 1393677532, 1393677501, 1393677319, 1393677315, 1393677314, 1393677313, 1393677312, 1393677273, 1393677270, 1393677267, 1393677263]} ##### 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.01741504669189453 #### 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 Mon Nov 10 07:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28375472) 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 : 28375472 get user id for portfolio 28375472 get sub ptf for main ptf 28375472, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'metal', 'Carton_brun', 'cartonnette', 'environnement', 'Teint_Dans_La_Masse', 'papier', 'mal_croppe', 'flou', 'kraft', 'plastique'] 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`=28375472 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','Carton_brun','cartonnette','environnement','Teint_Dans_La_Masse','papier','mal_croppe','flou','kraft','plastique')) 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`=28375472 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','Carton_brun','cartonnette','environnement','Teint_Dans_La_Masse','papier','mal_croppe','flou','kraft','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28375472, 'sub_port_id': 28375500, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213604, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28375472, 'sub_port_id': 28375501, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213605, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'flou': {'main_port_id': 28375472, 'sub_port_id': 28375502, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213606, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'plastique': {'main_port_id': 28375472, 'sub_port_id': 28375503, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213607, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'environnement': {'main_port_id': 28375472, 'sub_port_id': 28375504, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213608, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'papier': {'main_port_id': 28375472, 'sub_port_id': 28375505, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213609, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'cartonnette': {'main_port_id': 28375472, 'sub_port_id': 28375506, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213610, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'metal': {'main_port_id': 28375472, 'sub_port_id': 28375507, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213611, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'Carton_gris': {'main_port_id': 28375472, 'sub_port_id': 28375508, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213612, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'kraft': {'main_port_id': 28375472, 'sub_port_id': 28375509, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213613, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'autre_refus': {'main_port_id': 28375472, 'sub_port_id': 28375510, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213614, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}, 'mal_croppe': {'main_port_id': 28375472, 'sub_port_id': 28375511, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213615, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375500 , 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=28375472 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 (28375500) result : ((1393678472,), (1393678556,), (1393679406,), (1393679407,), (1393679408,), (1393679679,), (1393679823,), (1393679824,), (1393679825,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375501 , 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=28375472 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 (28375501) result : ((1393678444,), (1393679391,), (1393679392,), (1393679393,), (1393679394,), (1393679395,), (1393679663,), (1393679665,), (1393679870,), (1393679871,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375502 , 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=28375472 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 (28375502) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375503 , 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=28375472 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 (28375503) result : ((1393678482,), (1393678484,), (1393678557,), (1393679409,), (1393679410,), (1393679414,), (1393679681,), (1393679878,), (1393679879,), (1393679880,), (1393679882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375504 , 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=28375472 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 (28375504) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375505 , 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=28375472 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 (28375505) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375506 , 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=28375472 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 (28375506) result : ((1393678463,), (1393678551,), (1393678552,), (1393678553,), (1393679403,), (1393679413,), (1393679675,), (1393679676,), (1393679677,), (1393679678,), (1393679876,), (1393679877,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375507 , 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=28375472 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 (28375507) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375508 , 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=28375472 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 (28375508) result : ((1393678453,), (1393679398,), (1393679399,), (1393679400,), (1393679401,), (1393679402,), (1393679669,), (1393679670,), (1393679671,), (1393679821,), (1393679822,), (1393679874,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375509 , 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=28375472 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 (28375509) result : ((1393679683,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375510 , 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=28375472 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 (28375510) result : ((1393678540,), (1393678542,), (1393679397,), (1393679819,), (1393679820,), (1393679864,), (1393679865,), (1393679872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28375511 , 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=28375472 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 (28375511) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28375472) result : ((1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28375472 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','Carton_brun','cartonnette','environnement','Teint_Dans_La_Masse','papier','mal_croppe','flou','kraft','plastique')) 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`=28375472 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','Carton_brun','cartonnette','environnement','Teint_Dans_La_Masse','papier','mal_croppe','flou','kraft','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28375472, 'sub_port_id': 28375512, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213616, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28375472, 'sub_port_id': 28375513, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213617, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'flou': {'main_port_id': 28375472, 'sub_port_id': 28375514, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213618, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'plastique': {'main_port_id': 28375472, 'sub_port_id': 28375515, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213619, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'environnement': {'main_port_id': 28375472, 'sub_port_id': 28375516, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213620, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'papier': {'main_port_id': 28375472, 'sub_port_id': 28375517, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213621, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'cartonnette': {'main_port_id': 28375472, 'sub_port_id': 28375518, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213622, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'metal': {'main_port_id': 28375472, 'sub_port_id': 28375519, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213623, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 28375472, 'sub_port_id': 28375520, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213624, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'kraft': {'main_port_id': 28375472, 'sub_port_id': 28375521, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213625, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'autre_refus': {'main_port_id': 28375472, 'sub_port_id': 28375522, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213626, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 28375472, 'sub_port_id': 28375523, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19213627, 'last_updated_at': datetime.datetime(2025, 11, 10, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375500 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375513,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375501 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375514,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375502 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375515,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375516,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375509 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375522,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375510 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28375523,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28375511 lien utilise dans velours : https://marlene.fotonower.com/velours/28375512,28375513,28375514,28375515,28375516,28375517,28375518,28375519,28375520,28375521,28375522,28375523?tags=Carton_brun,Teint_Dans_La_Masse,flou,plastique,environnement,papier,cartonnette,metal,Carton_gris,kraft,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28375472]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] map_info['map_portfolio_photo'] : {28375472: [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749, 1393679649, 1393679615, 1393679582, 1393679581, 1393679580, 1393679572, 1393679436, 1393679432, 1393679429, 1393679425, 1393679418, 1393679416, 1393679412, 1393679405, 1393679380, 1393679376, 1393679373, 1393679370, 1393679368, 1393679366, 1393679332, 1393679330, 1393679329, 1393679327, 1393679119, 1393679046, 1393679009, 1393678975, 1393678944, 1393678912, 1393678584, 1393678583, 1393678582, 1393678580, 1393678525, 1393678522, 1393678518, 1393678509, 1393678507, 1393678505, 1393678112, 1393678069, 1393678038, 1393678005, 1393677665, 1393677631, 1393677598, 1393677564, 1393677532, 1393677501, 1393677319, 1393677315, 1393677314, 1393677313, 1393677312, 1393677273, 1393677270, 1393677267, 1393677263]} final : False mtd_id 4302 list_pids : [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] Looping around the photos to save general results len do output : 1 /28375472. 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, '4024993') ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28375472', "{'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511}", None, None, None, None, '4024993'), ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993')] time used for this insertion : 0.01738905906677246 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6151456832885742 time spend to save output : 0.017716646194458008 total time spend for step 1 : 1.6328623294830322 step2:final Mon Nov 10 07:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28375472) 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 28375472 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393677273,1393677270,1393677267,1393677263,1393677319,1393677315,1393677314,1393677313,1393677312,1393677665,1393677631,1393677598,1393677564,1393677532,1393677501,1393678112,1393678069,1393678038,1393678005,1393678525,1393678522,1393678518,1393678509,1393678507,1393678505,1393678584,1393678583,1393678582,1393678580,1393679119,1393679046,1393679009,1393678975,1393678944,1393678912,1393679418,1393679332,1393679416,1393679330,1393679412,1393679329,1393679405,1393679327,1393679380,1393679376,1393679373,1393679370,1393679368,1393679366,1393679436,1393679432,1393679429,1393679425,1393679649,1393679615,1393679582,1393679581,1393679580,1393679572,1393679806,1393679776,1393679772,1393679763,1393679759,1393679749,1393679850,1393679847,1393679843,1393679839,1393679837,1393679834,1393679884,1393679883,1393679881,1393679873); 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([28375472]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} new output for save of step final : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] map_info['map_portfolio_photo'] : {28375472: [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749, 1393679649, 1393679615, 1393679582, 1393679581, 1393679580, 1393679572, 1393679436, 1393679432, 1393679429, 1393679425, 1393679418, 1393679416, 1393679412, 1393679405, 1393679380, 1393679376, 1393679373, 1393679370, 1393679368, 1393679366, 1393679332, 1393679330, 1393679329, 1393679327, 1393679119, 1393679046, 1393679009, 1393678975, 1393678944, 1393678912, 1393678584, 1393678583, 1393678582, 1393678580, 1393678525, 1393678522, 1393678518, 1393678509, 1393678507, 1393678505, 1393678112, 1393678069, 1393678038, 1393678005, 1393677665, 1393677631, 1393677598, 1393677564, 1393677532, 1393677501, 1393677319, 1393677315, 1393677314, 1393677313, 1393677312, 1393677273, 1393677270, 1393677267, 1393677263]} final : False mtd_id 4302 list_pids : [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] Looping around the photos to save general results len do output : 16 /1393679884.Didn't retrieve data . /1393679883.Didn't retrieve data . /1393679881.Didn't retrieve data . /1393679873.Didn't retrieve data . /1393679850.Didn't retrieve data . /1393679847.Didn't retrieve data . /1393679843.Didn't retrieve data . /1393679839.Didn't retrieve data . /1393679837.Didn't retrieve data . /1393679834.Didn't retrieve data . /1393679806.Didn't retrieve data . /1393679776.Didn't retrieve data . /1393679772.Didn't retrieve data . /1393679763.Didn't retrieve data . /1393679759.Didn't retrieve data . /1393679749.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, '4024993') ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28375472', '1393679884', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679883', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679881', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679873', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679850', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679847', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679843', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679839', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679837', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679834', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679806', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679776', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679772', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679763', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679759', '0.04459293589786393', None, None, None, None, '4024993'), ('4302', '28375472', '1393679749', '0.04459293589786393', None, None, None, None, '4024993')] time used for this insertion : 0.017356157302856445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07585430145263672 time spend to save output : 0.018059968948364258 total time spend for step 2 : 0.09391427040100098 step3:velours_tree Mon Nov 10 07:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28375472: [{'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511}]} input_args_next_step : {28375472: ()} output_args : {28375472: [{'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511}]} args : 28375472 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 : ({'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28375472) 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([28375472]) 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.26929426193237305 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.2693338394165039 step4:send_mail_cod Mon Nov 10 07:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} input_args_next_step : {1393679884: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679884 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679883 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679881 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679873 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679850 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679847 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679843 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679839 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679837 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679834 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679806 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679776 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679772 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679763 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679759 depend.output_id : 0 input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ()} output_args : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',)} args : 1393679749 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 : {28375472: [{'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511}]} input_args_next_step : {1393679884: ('0.04459293589786393',), 1393679883: ('0.04459293589786393',), 1393679881: ('0.04459293589786393',), 1393679873: ('0.04459293589786393',), 1393679850: ('0.04459293589786393',), 1393679847: ('0.04459293589786393',), 1393679843: ('0.04459293589786393',), 1393679839: ('0.04459293589786393',), 1393679837: ('0.04459293589786393',), 1393679834: ('0.04459293589786393',), 1393679806: ('0.04459293589786393',), 1393679776: ('0.04459293589786393',), 1393679772: ('0.04459293589786393',), 1393679763: ('0.04459293589786393',), 1393679759: ('0.04459293589786393',), 1393679749: ('0.04459293589786393',), 28375472: ()} output_args : {28375472: [{'Carton_brun': 28375500, 'Teint_Dans_La_Masse': 28375501, 'flou': 28375502, 'plastique': 28375503, 'environnement': 28375504, 'papier': 28375505, 'cartonnette': 28375506, 'metal': 28375507, 'Carton_gris': 28375508, 'kraft': 28375509, 'autre_refus': 28375510, 'mal_croppe': 28375511}]} args : 28375472 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :17, first value : ('0.04459293589786393',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28375472) 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 (1393679884,1393679883,1393679881,1393679873,1393679850,1393679847,1393679843,1393679839,1393679837,1393679834,1393679806,1393679776,1393679772,1393679763,1393679759,1393679749) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393679749 begin to download photo : 1393679776 begin to download photo : 1393679839 begin to download photo : 1393679873 download finish for photo 1393679749 begin to download photo : 1393679759 download finish for photo 1393679839 begin to download photo : 1393679843 download finish for photo 1393679776 begin to download photo : 1393679806 download finish for photo 1393679873 begin to download photo : 1393679881 download finish for photo 1393679759 begin to download photo : 1393679763 download finish for photo 1393679881 begin to download photo : 1393679883 download finish for photo 1393679843 begin to download photo : 1393679847 download finish for photo 1393679806 begin to download photo : 1393679834 download finish for photo 1393679763 begin to download photo : 1393679772 download finish for photo 1393679847 begin to download photo : 1393679850 download finish for photo 1393679883 begin to download photo : 1393679884 download finish for photo 1393679834 begin to download photo : 1393679837 download finish for photo 1393679837 download finish for photo 1393679850 download finish for photo 1393679884 download finish for photo 1393679772 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette283755021762755299/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P28375472_10-11-2025_07_14_59.pdf 28375502 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=28375502 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283755021762755299 28375503 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=28375503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678482: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058281_0.png', 1393678484: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058287_0.png', 1393678557: '1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058628_0.png', 1393679409: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061088_0.png', 1393679410: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061072_0.png', 1393679414: '1762754968_1129242_1393678525_772ac4c35436381fc32626592801b6f6_rle_crop_4029061218_0.png', 1393679681: '1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062962_0.png', 1393679878: '1762755185_1142361_1393679418_80417914d474f4e26f546bc8b872b749_rle_crop_4029064045_0.png', 1393679879: '1762755185_1142361_1393679332_2e17519f3ac0b7e19ed554cf8870d952_rle_crop_4029064072_0.png', 1393679880: '1762755185_1142361_1393678944_506944efdd7198c7e1fa908bae9bf16d_rle_crop_4029064123_0.png', 1393679882: '1762755185_1142361_1393678912_cd7764ff862e50bdb8c099b8710803ea_rle_crop_4029064191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/652787fccb97bb48a2b81a8e816b95d1_16347994.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ac4e240d050899cd66e6bf552624f3c6_55235969.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a3971b070f130bf8caadeb2c57b30946_23254577.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4756c723adaa64d5f97a79afdaf94e66_38223312.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/73a9dde6be018777158afea44b5c03dc_32653124.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c371f36a594e29c7084c9e0057ddce25_14331466.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/dbc8707fe1024d889634acbee06025ba_38607753.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1ff0beb5cb585677878a1365c9686598_4576006.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1ff0beb5cb585677878a1365c9686598_41362355.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/028505ba1989d6f0166ea64b6947d8ef_97980092.png change filename to text .imagette283755031762755299/ imagette283755031762755299/1762755185_1142361_1393679332_2e17519f3ac0b7e19ed554cf8870d952_rle_crop_4029064072_0.png.png imagette283755031762755299/1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058628_0.png.png imagette283755031762755299/1762755185_1142361_1393679418_80417914d474f4e26f546bc8b872b749_rle_crop_4029064045_0.png.png imagette283755031762755299/1762755185_1142361_1393678912_cd7764ff862e50bdb8c099b8710803ea_rle_crop_4029064191_0.png.png imagette283755031762755299/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061088_0.png.png imagette283755031762755299/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058287_0.png.png imagette283755031762755299/1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062962_0.png.png imagette283755031762755299/1762754968_1129242_1393678525_772ac4c35436381fc32626592801b6f6_rle_crop_4029061218_0.png.png imagette283755031762755299/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058281_0.png.png imagette283755031762755299/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061072_0.png.png imagette283755031762755299/1762755185_1142361_1393678944_506944efdd7198c7e1fa908bae9bf16d_rle_crop_4029064123_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/edae0b317ff1d6fc144f127107648971_94136060.png imagette283755031762755299 28375506 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=28375506 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678463: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058285_0.png', 1393678551: '1762754707_1113929_1393677319_1ffee4b5a0da6d0eac99c0f24ae876a6_rle_crop_4029058580_0.png', 1393678552: '1762754707_1113929_1393677270_715903f0c7ad9288f4ec2ca0ae22160a_rle_crop_4029058612_0.png', 1393678553: '1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058631_0.png', 1393679403: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061079_0.png', 1393679413: '1762754968_1129242_1393678525_772ac4c35436381fc32626592801b6f6_rle_crop_4029061209_0.png', 1393679675: '1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063010_0.png', 1393679676: '1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063008_0.png', 1393679677: '1762755066_1135434_1393677532_a7309019d6082243ab5e8feb920efe97_rle_crop_4029063081_0.png', 1393679678: '1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063099_0.png', 1393679876: '1762755185_1142361_1393679009_650ce775e4b857c011dfba301d13a098_rle_crop_4029064092_0.png', 1393679877: '1762755185_1142361_1393678944_506944efdd7198c7e1fa908bae9bf16d_rle_crop_4029064124_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ac4ad64abff6a45843d44818a8ed3a2f_41465877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/85e5b868245ec86b41b914d38e348758_59737431.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/087fa7ef39d1ea2bad9deff85979cb06_54516278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f534679ddc6d111e0a65d5db60de430d_19521881.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e0a50eb6c592d736f94396b6e57de435_25659928.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ae667fbcd15c39396c78e7851c8ddb5d_7425729.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/69b31d3302e56b1c2249f35ee735d0af_24065091.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f5322bb811b9d751f5124a57d1eceea6_52469431.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/94ab75e290f4685a3933ce1763453a5b_97957567.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/47faf51a477a8fc95cafa7c69390ce44_3662835.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/78b9165dacb522c1c36f0ebd7cfe6668_7678450.png change filename to text .imagette283755061762755300/ imagette283755061762755300/1762754707_1113929_1393677270_715903f0c7ad9288f4ec2ca0ae22160a_rle_crop_4029058612_0.png.png imagette283755061762755300/1762754968_1129242_1393678525_772ac4c35436381fc32626592801b6f6_rle_crop_4029061209_0.png.png imagette283755061762755300/1762755185_1142361_1393678944_506944efdd7198c7e1fa908bae9bf16d_rle_crop_4029064124_0.png.png imagette283755061762755300/1762754707_1113929_1393677319_1ffee4b5a0da6d0eac99c0f24ae876a6_rle_crop_4029058580_0.png.png imagette283755061762755300/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061079_0.png.png imagette283755061762755300/1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063008_0.png.png imagette283755061762755300/1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063099_0.png.png imagette283755061762755300/1762755185_1142361_1393679009_650ce775e4b857c011dfba301d13a098_rle_crop_4029064092_0.png.png imagette283755061762755300/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058285_0.png.png imagette283755061762755300/1762755066_1135434_1393677532_a7309019d6082243ab5e8feb920efe97_rle_crop_4029063081_0.png.png imagette283755061762755300/1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058631_0.png.png imagette283755061762755300/1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063010_0.png.png imagette283755071762755300/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f95ed0cc38c14f2f7ef099c055c9e997_57497887.png imagette283755061762755300 28375507 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=28375507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283755071762755300 28375509 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=28375509 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393679683: '1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062955_0.png'} change filename to text .imagette283755091762755300/ imagette283755091762755300/1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062955_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0e3df0f0212e7dc1611a72e189c774aa_18547027.png imagette283755091762755300 28375510 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=28375510 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678540: '1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058626_0.png', 1393678542: '1762754707_1113929_1393677263_cecc5eb2d09042504f744a70c4f0c320_rle_crop_4029058648_0.png', 1393679397: '1762754947_1126974_1393678518_31a8ee6aa23d89ae531c0b137a46fee4_rle_crop_4029061091_0.png', 1393679819: '1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063437_0.png', 1393679820: '1762755145_1141542_1393679368_5de1727d1eb87379f137946484402fc3_rle_crop_4029063457_0.png', 1393679864: '1762755204_1143478_1393679405_629afce8d2c0b81f7bbd5893c3f2f587_rle_crop_4029064016_0.png', 1393679865: '1762755204_1143478_1393679327_50c391426416a0b249e8acd8f9cb8091_rle_crop_4029064057_0.png', 1393679872: '1762755185_1142361_1393678975_4a464f1fd14e0153c372728d4c6ffcb7_rle_crop_4029064106_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b383534708d2ff87a67a62420c7d4a89_40591766.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b866a3ca1e9116a8cbd97c0fefcd5260_16988835.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/51040b1ad5f3e5ce328e35cda3364ccf_97605701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4a8f371b741505b3c32d2c40a2b58f98_24313499.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/01d98c7bff45807c40f51ca3806aa802_9481912.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cc5742a300c26e8e9c54401b10743252_40665044.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cc5742a300c26e8e9c54401b10743252_42505624.png change filename to text .imagette283755101762755300/ imagette283755101762755300/1762755145_1141542_1393679368_5de1727d1eb87379f137946484402fc3_rle_crop_4029063457_0.png.png imagette283755101762755300/1762754707_1113929_1393677267_285be025ba55eb9de7e7ea460f518909_rle_crop_4029058626_0.png.png imagette283755101762755300/1762755204_1143478_1393679327_50c391426416a0b249e8acd8f9cb8091_rle_crop_4029064057_0.png.png imagette283755101762755300/1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063437_0.png.png imagette283755101762755300/1762754707_1113929_1393677263_cecc5eb2d09042504f744a70c4f0c320_rle_crop_4029058648_0.png.png imagette283755101762755300/1762755185_1142361_1393678975_4a464f1fd14e0153c372728d4c6ffcb7_rle_crop_4029064106_0.png.png imagette283755101762755300/1762754947_1126974_1393678518_31a8ee6aa23d89ae531c0b137a46fee4_rle_crop_4029061091_0.png.png imagette283755101762755300/1762755204_1143478_1393679405_629afce8d2c0b81f7bbd5893c3f2f587_rle_crop_4029064016_0.png.png imagette283755111762755301/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a54ddfb9aed1e2073c52b0719f4ac9ab_98804478.png imagette283755101762755300 28375511 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=28375511 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283755111762755301 28375500 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=28375500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678472: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058286_0.png', 1393678556: '1762754707_1113929_1393677263_cecc5eb2d09042504f744a70c4f0c320_rle_crop_4029058647_0.png', 1393679406: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061076_0.png', 1393679407: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061078_0.png', 1393679408: '1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061192_0.png', 1393679679: '1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063096_0.png', 1393679823: '1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063436_0.png', 1393679824: '1762755145_1141542_1393679370_95fd90184557febf230c6aba8428d140_rle_crop_4029063449_0.png', 1393679825: '1762755145_1141542_1393679366_01c77b4ff690af2a615d45f44ead3ff7_rle_crop_4029063478_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/145df062fbea4316203f6b4994f37c61_98725769.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cdcda56230d20a12536bfea0082c55b6_86491505.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a33fd17aa8aba4b278aa2cba39fbc684_96310044.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cd61793c1f87db4ff1e5cf3ab7881f45_91263537.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9731150bd0e8b23b49f8435bc42fc713_50679014.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/72e523f5c38f6b83a3263eb7d43883f9_63690081.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/875e793ae975b6fcb15987951a421226_49335048.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/10bc391aa7c0c97ab2fb403ff9d78671_10272585.png change filename to text .imagette283755001762755301/ imagette283755001762755301/1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063096_0.png.png imagette283755001762755301/1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061192_0.png.png imagette283755001762755301/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058286_0.png.png imagette283755001762755301/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061078_0.png.png imagette283755001762755301/1762755145_1141542_1393679366_01c77b4ff690af2a615d45f44ead3ff7_rle_crop_4029063478_0.png.png imagette283755001762755301/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061076_0.png.png imagette283755001762755301/1762755145_1141542_1393679370_95fd90184557febf230c6aba8428d140_rle_crop_4029063449_0.png.png imagette283755001762755301/1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063436_0.png.png imagette283755001762755301/1762754707_1113929_1393677263_cecc5eb2d09042504f744a70c4f0c320_rle_crop_4029058647_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/146787315f45b5448f3b6f71277ba1e2_25202421.png imagette283755001762755301 28375501 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=28375501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678444: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058284_0.png', 1393679391: '1762754947_1126974_1393678584_4705a6c4c1fe0c8f988d734bd1fd1cf2_rle_crop_4029061065_0.png', 1393679392: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061074_0.png', 1393679393: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061080_0.png', 1393679394: '1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061082_0.png', 1393679395: '1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061200_0.png', 1393679663: '1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062961_0.png', 1393679665: '1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063104_0.png', 1393679870: '1762755185_1142361_1393679046_d9afa7bd86d09600b309601671d66acd_rle_crop_4029064087_0.png', 1393679871: '1762755185_1142361_1393678912_cd7764ff862e50bdb8c099b8710803ea_rle_crop_4029064190_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0c7d84c7913147ff406bada20018b92e_44331243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/325cc3c5c33f11c177f070e33694e4d3_9100870.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3289717ed6e82ad888a8384569fadf98_39135854.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/20d150c55b0d2612c5df758e025853e3_16366638.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/85b618f8e5dd24653af388019bd6bbbc_94983775.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0821195cf283307414b0e026d2596944_31976836.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f2863778ffb09e50a607eb36f40e6197_35351166.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/43fe4111e78014e7d950b655c3317e17_68186048.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c3dba950e0db3c47c480e9750b2aec4c_43731518.png change filename to text .imagette283755011762755302/ imagette283755011762755302/1762755066_1135434_1393678112_9ac345314348967a35953695ce134f13_rle_crop_4029062961_0.png.png imagette283755011762755302/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061082_0.png.png imagette283755011762755302/1762754947_1126974_1393678584_4705a6c4c1fe0c8f988d734bd1fd1cf2_rle_crop_4029061065_0.png.png imagette283755011762755302/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058284_0.png.png imagette283755011762755302/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061074_0.png.png imagette283755011762755302/1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061200_0.png.png imagette283755011762755302/1762755066_1135434_1393677501_991c8eb429d9216f81894fcbcefe3859_rle_crop_4029063104_0.png.png imagette283755011762755302/1762754947_1126974_1393678522_6246a8b5232c9e2016efa295a1f91e2f_rle_crop_4029061080_0.png.png imagette283755011762755302/1762755185_1142361_1393679046_d9afa7bd86d09600b309601671d66acd_rle_crop_4029064087_0.png.png imagette283755011762755302/1762755185_1142361_1393678912_cd7764ff862e50bdb8c099b8710803ea_rle_crop_4029064190_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cddd98a846437053b41079f4e1290bb6_95623174.png imagette283755011762755302 28375508 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=28375508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393678453: '1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058283_0.png', 1393679398: '1762754947_1126974_1393678584_4705a6c4c1fe0c8f988d734bd1fd1cf2_rle_crop_4029061064_0.png', 1393679399: '1762754947_1126974_1393678509_066a374b243b961c6854ac74fc7f8a33_rle_crop_4029061115_0.png', 1393679400: '1762754947_1126974_1393678507_b7560df7b28b781a7f8d82e5280c776e_rle_crop_4029061183_0.png', 1393679401: '1762754947_1126974_1393678507_b7560df7b28b781a7f8d82e5280c776e_rle_crop_4029061182_0.png', 1393679402: '1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061199_0.png', 1393679669: '1762755066_1135434_1393677631_8dc99a79825a8e5d73e50ea8548cb9f0_rle_crop_4029062972_0.png', 1393679670: '1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063006_0.png', 1393679671: '1762755066_1135434_1393677564_e30e4c3de803372c447cd73efbdad3f4_rle_crop_4029063057_0.png', 1393679821: '1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063434_0.png', 1393679822: '1762755145_1141542_1393679366_01c77b4ff690af2a615d45f44ead3ff7_rle_crop_4029063474_0.png', 1393679874: '1762755185_1142361_1393678975_4a464f1fd14e0153c372728d4c6ffcb7_rle_crop_4029064105_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6273f6e572bdb317c1c15fb7ca979258_36403725.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/050599fed71ae8977f87362f17b31579_25744911.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1b1e53ac11b0fd25d0ab052d019247f1_20136495.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/77283b62e6fc879b61995865a914038b_8275984.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6236ee15a76b7707774f54e0f9e9ed95_87429533.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e2882f9fa469460fa07ca436bf52e239_25795360.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c214ed9adba67e58daaa4bd48942b877_18324789.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/934be0453dab2fadecfdde55cf290add_80974197.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cc53d2e0e9d16c8a35d4920e3ee6e0cc_1283028.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c81341d1875861c7cc7e125746dd15e4_51855425.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/203baf44f5b862094e093c79d82a06bd_71344634.png change filename to text .imagette283755081762755303/ imagette283755081762755303/1762754947_1126974_1393678507_b7560df7b28b781a7f8d82e5280c776e_rle_crop_4029061183_0.png.png imagette283755081762755303/1762755185_1142361_1393678975_4a464f1fd14e0153c372728d4c6ffcb7_rle_crop_4029064105_0.png.png imagette283755081762755303/1762754947_1126974_1393678505_58335c8498cd193b22b533ce1e2ff0e0_rle_crop_4029061199_0.png.png imagette283755081762755303/1762754947_1126974_1393678584_4705a6c4c1fe0c8f988d734bd1fd1cf2_rle_crop_4029061064_0.png.png imagette283755081762755303/1762755145_1141542_1393679373_9be358c5d6639848c053256b121625f2_rle_crop_4029063434_0.png.png imagette283755081762755303/1762754666_1113155_1393677314_41f69854fbb39a4c6907e2814cb7b631_rle_crop_4029058283_0.png.png imagette283755081762755303/1762755145_1141542_1393679366_01c77b4ff690af2a615d45f44ead3ff7_rle_crop_4029063474_0.png.png imagette283755081762755303/1762755066_1135434_1393677564_e30e4c3de803372c447cd73efbdad3f4_rle_crop_4029063057_0.png.png imagette283755081762755303/1762755066_1135434_1393677598_842d81635013adf544bca1a5c1b96610_rle_crop_4029063006_0.png.png imagette283755081762755303/1762754947_1126974_1393678507_b7560df7b28b781a7f8d82e5280c776e_rle_crop_4029061182_0.png.png imagette283755081762755303/1762754947_1126974_1393678509_066a374b243b961c6854ac74fc7f8a33_rle_crop_4029061115_0.png.png imagette283755081762755303/1762755066_1135434_1393677631_8dc99a79825a8e5d73e50ea8548cb9f0_rle_crop_4029062972_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c084c751bf3c643a031f44bdbbbd867d_31640277.png imagette283755081762755303 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28375472 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28375512,28375513,28375514,28375515,28375516,28375517,28375518,28375519,28375520,28375521,28375522,28375523?tags=Carton_brun,Teint_Dans_La_Masse,flou,plastique,environnement,papier,cartonnette,metal,Carton_gris,kraft,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1393679884] : ('0.04459293589786393',) no score found for photo 1393679884 We are sending mail with results at report@fotonower.com args[1393679883] : ('0.04459293589786393',) no score found for photo 1393679883 We are sending mail with results at report@fotonower.com args[1393679881] : ('0.04459293589786393',) no score found for photo 1393679881 We are sending mail with results at report@fotonower.com args[1393679873] : ('0.04459293589786393',) no score found for photo 1393679873 We are sending mail with results at report@fotonower.com args[1393679850] : ('0.04459293589786393',) no score found for photo 1393679850 We are sending mail with results at report@fotonower.com args[1393679847] : ('0.04459293589786393',) no score found for photo 1393679847 We are sending mail with results at report@fotonower.com args[1393679843] : ('0.04459293589786393',) no score found for photo 1393679843 We are sending mail with results at report@fotonower.com args[1393679839] : ('0.04459293589786393',) no score found for photo 1393679839 We are sending mail with results at report@fotonower.com args[1393679837] : ('0.04459293589786393',) no score found for photo 1393679837 We are sending mail with results at report@fotonower.com args[1393679834] : ('0.04459293589786393',) no score found for photo 1393679834 We are sending mail with results at report@fotonower.com args[1393679806] : ('0.04459293589786393',) no score found for photo 1393679806 We are sending mail with results at report@fotonower.com args[1393679776] : ('0.04459293589786393',) no score found for photo 1393679776 We are sending mail with results at report@fotonower.com args[1393679772] : ('0.04459293589786393',) no score found for photo 1393679772 We are sending mail with results at report@fotonower.com args[1393679763] : ('0.04459293589786393',) no score found for photo 1393679763 We are sending mail with results at report@fotonower.com args[1393679759] : ('0.04459293589786393',) no score found for photo 1393679759 We are sending mail with results at report@fotonower.com args[1393679749] : ('0.04459293589786393',) no score found for photo 1393679749 We are sending mail with results at report@fotonower.com refus_total : 0.04459293589786393 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=28375472 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_P28375472_10-11-2025_07_14_59.pdf results_Auto_P28375472_10-11-2025_07_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_14_59.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','28375472','results_Auto_P28375472_10-11-2025_07_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_14_59.pdf','pdf','','0.31','0.04459293589786393') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28375472]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] map_info['map_portfolio_photo'] : {28375472: [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749, 1393679649, 1393679615, 1393679582, 1393679581, 1393679580, 1393679572, 1393679436, 1393679432, 1393679429, 1393679425, 1393679418, 1393679416, 1393679412, 1393679405, 1393679380, 1393679376, 1393679373, 1393679370, 1393679368, 1393679366, 1393679332, 1393679330, 1393679329, 1393679327, 1393679119, 1393679046, 1393679009, 1393678975, 1393678944, 1393678912, 1393678584, 1393678583, 1393678582, 1393678580, 1393678525, 1393678522, 1393678518, 1393678509, 1393678507, 1393678505, 1393678112, 1393678069, 1393678038, 1393678005, 1393677665, 1393677631, 1393677598, 1393677564, 1393677532, 1393677501, 1393677319, 1393677315, 1393677314, 1393677313, 1393677312, 1393677273, 1393677270, 1393677267, 1393677263]} final : False mtd_id 4302 list_pids : [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] 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, '4024993') ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28375472', '1393679884', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993')] time used for this insertion : 0.01702570915222168 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.099706172943115 time spend to save output : 0.01727914810180664 total time spend for step 4 : 7.116985321044922 step5:split_time_score Mon Nov 10 07:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28375472'] 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 : [('28375472',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28375472) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393679776: {'path': 'temp/1762755298_1703138_1393679776_1fc6cab87fc9a7c325126b424c33306b.jpg', 'extension': 'jpg'}, 1393679806: {'path': 'temp/1762755298_1703138_1393679806_b9f2ac76b7a69593a9a5e1b07630045c.jpg', 'extension': 'jpg'}, 1393679834: {'path': 'temp/1762755298_1703138_1393679834_17729cb445074c715ae544d20401694f.jpg', 'extension': 'jpg'}, 1393679837: {'path': 'temp/1762755298_1703138_1393679837_22effdffc31b395f024a69d20bb8783b.jpg', 'extension': 'jpg'}, 1393679839: {'path': 'temp/1762755298_1703138_1393679839_f2389833d7bf625d0bbce4f86459ee1b.jpg', 'extension': 'jpg'}, 1393679843: {'path': 'temp/1762755298_1703138_1393679843_df01e7a59610e4e6c34a73577cff93d4.jpg', 'extension': 'jpg'}, 1393679847: {'path': 'temp/1762755298_1703138_1393679847_384391f6bedf7316e44ab19ed6163c56.jpg', 'extension': 'jpg'}, 1393679850: {'path': 'temp/1762755298_1703138_1393679850_252731daf10c67fc88f8fd84772de055.jpg', 'extension': 'jpg'}, 1393679873: {'path': 'temp/1762755298_1703138_1393679873_ef856b74f53e5fb537f3bd736f56a100.jpg', 'extension': 'jpg'}, 1393679881: {'path': 'temp/1762755298_1703138_1393679881_203bb686c7069583eaeb1df13c3e1a47.jpg', 'extension': 'jpg'}, 1393679883: {'path': 'temp/1762755298_1703138_1393679883_258142ad63c3009d834336fce5c50683.jpg', 'extension': 'jpg'}, 1393679884: {'path': 'temp/1762755298_1703138_1393679884_3fde26904fa89f9b1b79752fc6203a5a.jpg', 'extension': 'jpg'}, 1393679749: {'path': 'temp/1762755298_1703138_1393679749_ae3e0a7e018c2b75d524ec67f32c4f25.jpg', 'extension': 'jpg'}, 1393679759: {'path': 'temp/1762755298_1703138_1393679759_9c5a8ee1f7798f0e82cd6789338c344a.jpg', 'extension': 'jpg'}, 1393679763: {'path': 'temp/1762755298_1703138_1393679763_934822709a9cc01b41990e9a96959de3.jpg', 'extension': 'jpg'}, 1393679772: {'path': 'temp/1762755298_1703138_1393679772_3c8a9a5c4b1b8df6aab8e4487234e36e.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 = 28375472; (('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 = 28375472 group by h (('07', 75),) 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=28375472 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 (28375472) 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 (28375472) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10112025 28375472 Nombre de photos uploadées : 75 / 23040 (0%) 10112025 28375472 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 10112025 28375472 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1393677273, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/d6b2128813220979748380f162ee0101.jpg', 'username': None, 'uploaded_at': 1762754467, 'text': 'image_10112025_07_00_13_010196m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393677270, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/715903f0c7ad9288f4ec2ca0ae22160a.jpg', 'username': None, 'uploaded_at': 1762754467, 'text': 'image_10112025_07_00_23_010145m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1393677267, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/285be025ba55eb9de7e7ea460f518909.jpg', 'username': None, 'uploaded_at': 1762754467, 'text': 'image_10112025_07_00_34_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393677263, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cecc5eb2d09042504f744a70c4f0c320.jpg', 'username': None, 'uploaded_at': 1762754467, 'text': 'image_10112025_07_00_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003535747528076172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28375472, '2025-11-10' ) 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-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2549819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.26091504096984863 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= 2549819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28372304, 'dashboard_result_id': 17057057, '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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28372486, 'dashboard_result_id': 17057058, '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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28372713, 'dashboard_result_id': 17057059, '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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28373113, 'dashboard_result_id': 17057060, '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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28373480, 'dashboard_result_id': 17057061, '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_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28374053, 'dashboard_result_id': 17057062, '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_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28374472, 'dashboard_result_id': 17057063, '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_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28374942, 'dashboard_result_id': 17057064, '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_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557485, 'mtr_portfolio_id': 28375472, 'dashboard_result_id': 17057065, '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_P28375472_10-11-2025_07_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, '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 = 28372304 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': 4024530, 'mtr_portfolio_id': 28372304, 'created_at': datetime.datetime(2025, 11, 10, 5, 16, 29), 'result': '0.040350622235919155', 'result_long': None, 'result_double': None}] Qualite : 0.040350622235919155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372304 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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}" where mtr_portfolio_id = 28372304 and dashboard_run_id = 2557485 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`=28372304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057057, 0.040350622235919155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, '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 = 28372486 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': 4024551, 'mtr_portfolio_id': 28372486, 'created_at': datetime.datetime(2025, 11, 10, 5, 32, 58), 'result': '0.03267969703415672', 'result_long': None, 'result_double': None}] Qualite : 0.03267969703415672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372486 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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}" where mtr_portfolio_id = 28372486 and dashboard_run_id = 2557485 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`=28372486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057058, 0.03267969703415672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, '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 = 28372713 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': 4024586, 'mtr_portfolio_id': 28372713, 'created_at': datetime.datetime(2025, 11, 10, 5, 48, 57), 'result': '0.05104206465845779', 'result_long': None, 'result_double': None}] Qualite : 0.05104206465845779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372713 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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}" where mtr_portfolio_id = 28372713 and dashboard_run_id = 2557485 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`=28372713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057059, 0.05104206465845779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, '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 = 28373113 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': 4024643, 'mtr_portfolio_id': 28373113, 'created_at': datetime.datetime(2025, 11, 10, 6, 3), 'result': '0.038593374114432984', 'result_long': None, 'result_double': None}] Qualite : 0.038593374114432984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373113 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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}" where mtr_portfolio_id = 28373113 and dashboard_run_id = 2557485 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`=28373113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057060, 0.038593374114432984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, '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 = 28373480 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': 4024718, 'mtr_portfolio_id': 28373480, 'created_at': datetime.datetime(2025, 11, 10, 6, 18, 59), 'result': '0.07257098431664193', 'result_long': None, 'result_double': None}] Qualite : 0.07257098431664193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373480 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_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}" where mtr_portfolio_id = 28373480 and dashboard_run_id = 2557485 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`=28373480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057061, 0.07257098431664193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, '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 = 28374053 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': 4024775, 'mtr_portfolio_id': 28374053, 'created_at': datetime.datetime(2025, 11, 10, 6, 32, 58), 'result': '0.05042567139499325', 'result_long': None, 'result_double': None}] Qualite : 0.05042567139499325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374053 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_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}" where mtr_portfolio_id = 28374053 and dashboard_run_id = 2557487 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`=28374053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057062, 0.05042567139499325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, '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 = 28374472 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': 4024844, 'mtr_portfolio_id': 28374472, 'created_at': datetime.datetime(2025, 11, 10, 6, 48, 58), 'result': '0.06494757563686468', 'result_long': None, 'result_double': None}] Qualite : 0.06494757563686468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374472 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_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}" where mtr_portfolio_id = 28374472 and dashboard_run_id = 2557487 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`=28374472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057063, 0.06494757563686468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, '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 = 28374942 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': 4024918, 'mtr_portfolio_id': 28374942, 'created_at': datetime.datetime(2025, 11, 10, 7, 2, 59), 'result': '0.04917242315581193', 'result_long': None, 'result_double': None}] Qualite : 0.04917242315581193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374942 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_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}" where mtr_portfolio_id = 28374942 and dashboard_run_id = 2557487 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`=28374942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057064, 0.04917242315581193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, '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 = 28375472 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': 4024993, 'mtr_portfolio_id': 28375472, 'created_at': datetime.datetime(2025, 11, 10, 7, 14, 58), 'result': '0.04459293589786393', 'result_long': None, 'result_double': None}] Qualite : 0.04459293589786393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28375472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28375472 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_P28375472_10-11-2025_07_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}" where mtr_portfolio_id = 28375472 and dashboard_run_id = 2557487 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`=28375472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17057065, 0.04459293589786393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, '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 (28372304,28372486,28372713,28373113,28373480,28374053,28374472,28374942,28375472) result : ((1393667459,), (1393670449,), (1393670478,), (1393670523,), (1393670524,), (1393670525,), (1393670527,), (1393670543,), (1393670546,), (1393670568,), (1393670571,), (1393670573,), (1393670575,), (1393670592,), (1393670594,), (1393670596,), (1393670599,), (1393670604,), (1393670607,), (1393670673,), (1393670676,), (1393670678,), (1393670680,), (1393670707,), (1393670708,), (1393670709,), (1393670732,), (1393670757,), (1393670787,), (1393670822,), (1393670904,), (1393670906,), (1393670908,), (1393670910,), (1393670914,), (1393670917,), (1393670939,), (1393670943,), (1393670947,), (1393670951,), (1393671003,), (1393671008,), (1393671010,), (1393671012,), (1393671014,), (1393671016,), (1393671032,), (1393671033,), (1393671034,), (1393671035,), (1393671037,), (1393671064,), (1393671069,), (1393671071,), (1393671073,), (1393671076,), (1393671078,), (1393671102,), (1393671110,), (1393671113,), (1393671115,), (1393671117,), (1393671142,), (1393671145,), (1393671148,), (1393671150,), (1393671151,), (1393671153,), (1393671168,), (1393671169,), (1393671170,), (1393671171,), (1393671173,), (1393671176,), (1393671195,), (1393671199,), (1393671202,), (1393671206,), (1393671209,), (1393671264,), (1393671272,), (1393671274,), (1393671276,), (1393671278,), (1393671286,), (1393671253,), (1393671255,), (1393671257,), (1393671259,), (1393671262,), (1393671314,), (1393671315,), (1393671317,), (1393671318,), (1393671342,), (1393671343,), (1393671347,), (1393671348,), (1393671363,), (1393671366,), (1393671371,), (1393671372,), (1393671374,), (1393671375,), (1393671404,), (1393671407,), (1393671409,), (1393671412,), (1393671432,), (1393671434,), (1393671436,), (1393671438,), (1393671442,), (1393671471,), (1393671473,), (1393671475,), (1393671478,), (1393671500,), (1393671501,), (1393671504,), (1393671506,), (1393671511,), (1393671519,), (1393671561,), (1393671563,), (1393671565,), (1393671569,), (1393671587,), (1393671589,), (1393671591,), (1393671593,), (1393671596,), (1393671600,), (1393671623,), (1393671626,), (1393671628,), (1393671631,), (1393671644,), (1393671648,), (1393671652,), (1393671657,), (1393671678,), (1393671681,), (1393671685,), (1393671696,), (1393671711,), (1393671713,), (1393671732,), (1393671734,), (1393671735,), (1393671775,), (1393671776,), (1393671777,), (1393671780,), (1393671784,), (1393671787,), (1393671799,), (1393671802,), (1393671806,), (1393671809,), (1393671812,), (1393671815,), (1393671845,), (1393671836,), (1393671839,), (1393671841,), (1393671842,), (1393671843,), (1393671862,), (1393671865,), (1393671872,), (1393671888,), (1393671935,), (1393671937,), (1393671939,), (1393671942,), (1393671945,), (1393671961,), (1393671964,), (1393671966,), (1393671968,), (1393671971,), (1393671974,), (1393671995,), (1393671996,), (1393671997,), (1393671999,), (1393672020,), (1393672025,), (1393672031,), (1393672035,), (1393672038,), (1393672067,), (1393672069,), (1393672070,), (1393672074,), (1393672084,), (1393672112,), (1393672113,), (1393672115,), (1393672118,), (1393672121,), (1393672124,), (1393672134,), (1393672135,), (1393672136,), (1393672153,), (1393672156,), (1393672158,), (1393672161,), (1393672164,), (1393672165,), (1393672176,), (1393672179,), (1393672180,), (1393672181,), (1393672225,), (1393672227,), (1393672229,), (1393672232,), (1393672235,), (1393672238,), (1393672271,), (1393672273,), (1393672276,), (1393672280,), (1393672282,), (1393672284,), (1393672289,), (1393672291,), (1393672299,), (1393672309,), (1393672330,), (1393672333,), (1393672337,), (1393672339,), (1393672341,), (1393672343,), (1393672880,), (1393672904,), (1393672934,), (1393672969,), (1393673032,), (1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,), (1393674764,), (1393674769,), (1393674771,), (1393674773,), (1393674776,), (1393674779,), (1393674797,), (1393674799,), (1393674802,), (1393674805,), (1393674861,), (1393674845,), (1393674847,), (1393674849,), (1393674852,), (1393674856,), (1393674885,), (1393674888,), (1393674890,), (1393674893,), (1393674935,), (1393674937,), (1393674939,), (1393674944,), (1393674948,), (1393674952,), (1393674961,), (1393674962,), (1393674965,), (1393674968,), (1393674971,), (1393674999,), (1393675001,), (1393675002,), (1393675004,), (1393675008,), (1393675009,), (1393675034,), (1393675037,), (1393675042,), (1393675047,), (1393675081,), (1393675083,), (1393675085,), (1393675087,), (1393675111,), (1393675113,), (1393675115,), (1393675117,), (1393675120,), (1393675122,), (1393675154,), (1393675155,), (1393675156,), (1393675158,), (1393675192,), (1393675194,), (1393675196,), (1393675200,), (1393675204,), (1393675209,), (1393675238,), (1393675240,), (1393675242,), (1393675245,), (1393675249,), (1393675279,), (1393675282,), (1393675284,), (1393675287,), (1393675291,), (1393675293,), (1393675320,), (1393675321,), (1393675323,), (1393675327,), (1393675331,), (1393675335,), (1393675345,), (1393675346,), (1393675347,), (1393675348,), (1393675349,), (1393675370,), (1393675374,), (1393675378,), (1393675381,), (1393675408,), (1393675411,), (1393675413,), (1393675417,), (1393675420,), (1393675455,), (1393675457,), (1393675469,), (1393675471,), (1393675473,), (1393675476,), (1393675445,), (1393675447,), (1393675449,), (1393675452,), (1393675486,), (1393675488,), (1393675489,), (1393675497,), (1393675506,), (1393675521,), (1393675573,), (1393675575,), (1393675577,), (1393675614,), (1393675617,), (1393675620,), (1393675622,), (1393675625,), (1393675653,), (1393675658,), (1393675663,), (1393675667,), (1393675671,), (1393675673,), (1393675690,), (1393675693,), (1393675696,), (1393675698,), (1393675705,), (1393675722,), (1393675726,), (1393675727,), (1393675750,), (1393675751,), (1393675755,), (1393675765,), (1393675774,), (1393675811,), (1393675821,), (1393675828,), (1393675831,), (1393675835,), (1393675837,), (1393675854,), (1393675857,), (1393675860,), (1393675863,), (1393675887,), (1393675889,), (1393675891,), (1393675894,), (1393675898,), (1393675902,), (1393675929,), (1393675931,), (1393675933,), (1393675936,), (1393675984,), (1393675986,), (1393675988,), (1393675991,), (1393675996,), (1393675999,), (1393676019,), (1393676021,), (1393676022,), (1393676023,), (1393676052,), (1393676055,), (1393676058,), (1393676062,), (1393676067,), (1393676088,), (1393676089,), (1393676091,), (1393676094,), (1393676099,), (1393676151,), (1393676137,), (1393676140,), (1393676142,), (1393676145,), (1393676149,), (1393676168,), (1393676173,), (1393676180,), (1393676187,), (1393676200,), (1393676228,), (1393676231,), (1393676234,), (1393676238,), (1393676242,), (1393676245,), (1393676275,), (1393676276,), (1393676277,), (1393676279,), (1393676282,), (1393676317,), (1393676319,), (1393676321,), (1393676323,), (1393676328,), (1393676332,), (1393676350,), (1393676351,), (1393676353,), (1393676356,), (1393676395,), (1393676397,), (1393676403,), (1393676410,), (1393676429,), (1393676434,), (1393676459,), (1393676462,), (1393676465,), (1393676505,), (1393676506,), (1393676507,), (1393676509,), (1393676512,), (1393676516,), (1393676534,), (1393676537,), (1393676539,), (1393676542,), (1393676579,), (1393676580,), (1393676581,), (1393676583,), (1393676588,), (1393676591,), (1393676607,), (1393676609,), (1393676611,), (1393676613,), (1393676633,), (1393676887,), (1393676888,), (1393676890,), (1393676893,), (1393676920,), (1393677218,), (1393677224,), (1393677228,), (1393677232,), (1393677236,), (1393677238,), (1393677247,), (1393677248,), (1393677250,), (1393677252,), (1393677277,), (1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10112025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28375472]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] map_info['map_portfolio_photo'] : {28375472: [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749, 1393679649, 1393679615, 1393679582, 1393679581, 1393679580, 1393679572, 1393679436, 1393679432, 1393679429, 1393679425, 1393679418, 1393679416, 1393679412, 1393679405, 1393679380, 1393679376, 1393679373, 1393679370, 1393679368, 1393679366, 1393679332, 1393679330, 1393679329, 1393679327, 1393679119, 1393679046, 1393679009, 1393678975, 1393678944, 1393678912, 1393678584, 1393678583, 1393678582, 1393678580, 1393678525, 1393678522, 1393678518, 1393678509, 1393678507, 1393678505, 1393678112, 1393678069, 1393678038, 1393678005, 1393677665, 1393677631, 1393677598, 1393677564, 1393677532, 1393677501, 1393677319, 1393677315, 1393677314, 1393677313, 1393677312, 1393677273, 1393677270, 1393677267, 1393677263]} final : True mtd_id 4302 list_pids : [1393679884, 1393679883, 1393679881, 1393679873, 1393679850, 1393679847, 1393679843, 1393679839, 1393679837, 1393679834, 1393679806, 1393679776, 1393679772, 1393679763, 1393679759, 1393679749] Looping around the photos to save general results len do output : 1 /28375472Didn'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, '4024993') ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993') ('4302', None, None, None, None, None, None, None, '4024993') ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28375472', 'None', None, None, None, None, '4024993'), ('4302', '28375472', '1393679884', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679883', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679881', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679873', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679850', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679847', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679843', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679839', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679837', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679834', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679806', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679776', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679772', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679763', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679759', None, None, None, None, None, '4024993'), ('4302', '28375472', '1393679749', None, None, None, None, None, '4024993')] time used for this insertion : 0.014149188995361328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9934825897216797 time spend to save output : 0.01437687873840332 total time spend for step 5 : 1.007859468460083 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 (4024993) 2.26user 2.62system 0:12.48elapsed 39%CPU (0avgtext+0avgdata 161120maxresident)k 160inputs+18424outputs (1major+77335minor)pagefaults 0swaps