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 : 1031503 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 (3274040) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3274040) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867390 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3274040'] with mtr_portfolio_ids : ['24867390'] and first list_photo_ids : [] new path : /proc/1031503/ Name: python3 Umask: 0002 State: R (running) Tgid: 1031503 Ngid: 0 Pid: 1031503 PPid: 1031502 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1031503 NSpid: 1031503 NSpgid: 1029073 NSsid: 1029073 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98752 kB VmRSS: 98752 kB RssAnon: 59820 kB RssFile: 38932 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1031503', 'Ngid': '0', 'Pid': '1031503', 'PPid': '1031502', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1031503', 'NSpid': '1031503', 'NSpgid': '1029073', 'NSsid': '1029073', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98752 kB', 'VmRSS': '98752 kB', 'RssAnon': '59820 kB', 'RssFile': '38932 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1031503', '1106868', '0', '1106868', '865620', '98752', b'', 'marlene', '3274040') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24867390) 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 (3274040 ) ) 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 (24867390) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371774180, 'portfolio_id': 24867390}, {'photo_id': 1371774174, 'portfolio_id': 24867390}, {'photo_id': 1371774169, 'portfolio_id': 24867390}, {'photo_id': 1371774167, 'portfolio_id': 24867390}, {'photo_id': 1371774164, 'portfolio_id': 24867390}, {'photo_id': 1371774161, 'portfolio_id': 24867390}, {'photo_id': 1371774026, 'portfolio_id': 24867390}, {'photo_id': 1371773981, 'portfolio_id': 24867390}, {'photo_id': 1371773932, 'portfolio_id': 24867390}, {'photo_id': 1371773876, 'portfolio_id': 24867390}, {'photo_id': 1371773843, 'portfolio_id': 24867390}, {'photo_id': 1371773812, 'portfolio_id': 24867390}, {'photo_id': 1371773254, 'portfolio_id': 24867390}, {'photo_id': 1371773246, 'portfolio_id': 24867390}, {'photo_id': 1371773232, 'portfolio_id': 24867390}, {'photo_id': 1371773220, 'portfolio_id': 24867390}, {'photo_id': 1371773198, 'portfolio_id': 24867390}, {'photo_id': 1371773175, 'portfolio_id': 24867390}, {'photo_id': 1371772918, 'portfolio_id': 24867390}, {'photo_id': 1371772913, 'portfolio_id': 24867390}, {'photo_id': 1371772886, 'portfolio_id': 24867390}, {'photo_id': 1371772860, 'portfolio_id': 24867390}, {'photo_id': 1371772830, 'portfolio_id': 24867390}, {'photo_id': 1371772807, 'portfolio_id': 24867390}, {'photo_id': 1371772666, 'portfolio_id': 24867390}, {'photo_id': 1371772645, 'portfolio_id': 24867390}, {'photo_id': 1371772623, 'portfolio_id': 24867390}, {'photo_id': 1371772583, 'portfolio_id': 24867390}, {'photo_id': 1371772550, 'portfolio_id': 24867390}, {'photo_id': 1371772528, 'portfolio_id': 24867390}, {'photo_id': 1371772224, 'portfolio_id': 24867390}, {'photo_id': 1371772192, 'portfolio_id': 24867390}, {'photo_id': 1371772175, 'portfolio_id': 24867390}, {'photo_id': 1371772147, 'portfolio_id': 24867390}, {'photo_id': 1371772123, 'portfolio_id': 24867390}, {'photo_id': 1371772100, 'portfolio_id': 24867390}, {'photo_id': 1371771836, 'portfolio_id': 24867390}, {'photo_id': 1371771816, 'portfolio_id': 24867390}, {'photo_id': 1371771811, 'portfolio_id': 24867390}, {'photo_id': 1371771790, 'portfolio_id': 24867390}, {'photo_id': 1371771774, 'portfolio_id': 24867390}, {'photo_id': 1371771770, 'portfolio_id': 24867390}, {'photo_id': 1371771675, 'portfolio_id': 24867390}, {'photo_id': 1371771647, 'portfolio_id': 24867390}, {'photo_id': 1371771631, 'portfolio_id': 24867390}, {'photo_id': 1371771588, 'portfolio_id': 24867390}, {'photo_id': 1371771564, 'portfolio_id': 24867390}, {'photo_id': 1371771490, 'portfolio_id': 24867390}, {'photo_id': 1371771056, 'portfolio_id': 24867390}, {'photo_id': 1371771003, 'portfolio_id': 24867390}, {'photo_id': 1371770952, 'portfolio_id': 24867390}, {'photo_id': 1371770906, 'portfolio_id': 24867390}, {'photo_id': 1371770863, 'portfolio_id': 24867390}, {'photo_id': 1371770824, 'portfolio_id': 24867390}, {'photo_id': 1371770199, 'portfolio_id': 24867390}, {'photo_id': 1371770174, 'portfolio_id': 24867390}, {'photo_id': 1371770148, 'portfolio_id': 24867390}, {'photo_id': 1371770122, 'portfolio_id': 24867390}, {'photo_id': 1371770099, 'portfolio_id': 24867390}, {'photo_id': 1371770071, 'portfolio_id': 24867390}, {'photo_id': 1371769979, 'portfolio_id': 24867390}, {'photo_id': 1371769945, 'portfolio_id': 24867390}, {'photo_id': 1371769917, 'portfolio_id': 24867390}, {'photo_id': 1371769883, 'portfolio_id': 24867390}, {'photo_id': 1371769857, 'portfolio_id': 24867390}, {'photo_id': 1371769831, 'portfolio_id': 24867390}, {'photo_id': 1371769585, 'portfolio_id': 24867390}, {'photo_id': 1371769558, 'portfolio_id': 24867390}, {'photo_id': 1371769523, 'portfolio_id': 24867390}, {'photo_id': 1371769461, 'portfolio_id': 24867390}, {'photo_id': 1371769405, 'portfolio_id': 24867390}, {'photo_id': 1371769369, 'portfolio_id': 24867390}, {'photo_id': 1371768674, 'portfolio_id': 24867390}, {'photo_id': 1371768569, 'portfolio_id': 24867390}, {'photo_id': 1371768538, 'portfolio_id': 24867390}, {'photo_id': 1371768481, 'portfolio_id': 24867390}, {'photo_id': 1371768431, 'portfolio_id': 24867390}, {'photo_id': 1371768392, 'portfolio_id': 24867390}] map_portfolio_id_photo_id: {24867390: [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812, 1371773254, 1371773246, 1371773232, 1371773220, 1371773198, 1371773175, 1371772918, 1371772913, 1371772886, 1371772860, 1371772830, 1371772807, 1371772666, 1371772645, 1371772623, 1371772583, 1371772550, 1371772528, 1371772224, 1371772192, 1371772175, 1371772147, 1371772123, 1371772100, 1371771836, 1371771816, 1371771811, 1371771790, 1371771774, 1371771770, 1371771675, 1371771647, 1371771631, 1371771588, 1371771564, 1371771490, 1371771056, 1371771003, 1371770952, 1371770906, 1371770863, 1371770824, 1371770199, 1371770174, 1371770148, 1371770122, 1371770099, 1371770071, 1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} ##### 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.016364336013793945 #### 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 Sat Jul 12 01:44: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 (24867390) 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 : 24867390 get user id for portfolio 24867390 get sub ptf for main ptf 24867390, type 3726 and hashtags ['cartonnette', 'flou', 'environnement', 'plastique', 'kraft', 'metal', 'autre_refus', 'papier', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_brun', 'Carton_gris'] 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`=24867390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','plastique','kraft','metal','autre_refus','papier','Teint_Dans_La_Masse','mal_croppe','Carton_brun','Carton_gris')) 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`=24867390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','plastique','kraft','metal','autre_refus','papier','Teint_Dans_La_Masse','mal_croppe','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24867390, 'sub_port_id': 24867515, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740767, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'plastique': {'main_port_id': 24867390, 'sub_port_id': 24867516, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740768, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'autre_refus': {'main_port_id': 24867390, 'sub_port_id': 24867517, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740769, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'papier': {'main_port_id': 24867390, 'sub_port_id': 24867518, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740770, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'environnement': {'main_port_id': 24867390, 'sub_port_id': 24867519, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740771, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'cartonnette': {'main_port_id': 24867390, 'sub_port_id': 24867520, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740772, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24867390, 'sub_port_id': 24867521, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740773, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'flou': {'main_port_id': 24867390, 'sub_port_id': 24867522, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740774, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Carton_brun': {'main_port_id': 24867390, 'sub_port_id': 24867523, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740775, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Carton_gris': {'main_port_id': 24867390, 'sub_port_id': 24867524, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740776, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'kraft': {'main_port_id': 24867390, 'sub_port_id': 24867525, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740777, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'mal_croppe': {'main_port_id': 24867390, 'sub_port_id': 24867526, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740778, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867515 , 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=24867390 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 (24867515) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867516 , 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=24867390 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 (24867516) result : ((1371770067,), (1371771653,), (1371771654,), (1371771655,), (1371771658,), (1371771663,), (1371771667,), (1371773591,), (1371773594,), (1371774069,), (1371774072,), (1371774198,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867517 , 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=24867390 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 (24867517) result : ((1371772041,), (1371772043,), (1371772765,), (1371772932,), (1371772933,), (1371773551,), (1371774191,), (1371774210,), (1371774211,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867518 , 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=24867390 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 (24867518) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867519 , 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=24867390 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 (24867519) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867520 , 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=24867390 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 (24867520) result : ((1371770052,), (1371771648,), (1371771649,), (1371771650,), (1371771651,), (1371771652,), (1371772956,), (1371772958,), (1371772960,), (1371773569,), (1371773572,), (1371773575,), (1371774056,), (1371774196,), (1371774197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867521 , 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=24867390 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 (24867521) result : ((1371772029,), (1371772031,), (1371772757,), (1371772927,), (1371772928,), (1371772929,), (1371773538,), (1371774044,), (1371774046,), (1371774188,), (1371774189,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867522 , 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=24867390 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 (24867522) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867523 , 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=24867390 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 (24867523) result : ((1371770060,), (1371772062,), (1371772969,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867524 , 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=24867390 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 (24867524) result : ((1371770033,), (1371770035,), (1371770037,), (1371770040,), (1371770042,), (1371770044,), (1371771208,), (1371771209,), (1371771210,), (1371771211,), (1371772030,), (1371772033,), (1371772053,), (1371772055,), (1371772935,), (1371772936,), (1371772938,), (1371772940,), (1371772943,), (1371772945,), (1371774194,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867525 , 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=24867390 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 (24867525) result : ((1371773607,), (1371774201,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867526 , 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=24867390 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 (24867526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) 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 (1371772100) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24867390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','plastique','kraft','metal','autre_refus','papier','Teint_Dans_La_Masse','mal_croppe','Carton_brun','Carton_gris')) 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`=24867390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','environnement','plastique','kraft','metal','autre_refus','papier','Teint_Dans_La_Masse','mal_croppe','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24867390, 'sub_port_id': 24867527, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740779, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'plastique': {'main_port_id': 24867390, 'sub_port_id': 24867528, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740780, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'autre_refus': {'main_port_id': 24867390, 'sub_port_id': 24867529, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740781, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'papier': {'main_port_id': 24867390, 'sub_port_id': 24867530, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740782, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'environnement': {'main_port_id': 24867390, 'sub_port_id': 24867531, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740783, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'cartonnette': {'main_port_id': 24867390, 'sub_port_id': 24867532, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740784, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 24867390, 'sub_port_id': 24867533, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740785, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'flou': {'main_port_id': 24867390, 'sub_port_id': 24867534, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740786, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Carton_brun': {'main_port_id': 24867390, 'sub_port_id': 24867535, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740787, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Carton_gris': {'main_port_id': 24867390, 'sub_port_id': 24867536, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740788, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'kraft': {'main_port_id': 24867390, 'sub_port_id': 24867537, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740789, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'mal_croppe': {'main_port_id': 24867390, 'sub_port_id': 24867538, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740790, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867527,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867515 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867517 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867530,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867518 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867531,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867519 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867532,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867520 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867533,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867534,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867535,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867526 lien utilise dans velours : https://www.fotonower.com/velours/24867527,24867528,24867529,24867530,24867531,24867532,24867533,24867534,24867535,24867536,24867537,24867538?tags=metal,plastique,autre_refus,papier,environnement,cartonnette,Teint_Dans_La_Masse,flou,Carton_brun,Carton_gris,kraft,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] map_info['map_portfolio_photo'] : {24867390: [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812, 1371773254, 1371773246, 1371773232, 1371773220, 1371773198, 1371773175, 1371772918, 1371772913, 1371772886, 1371772860, 1371772830, 1371772807, 1371772666, 1371772645, 1371772623, 1371772583, 1371772550, 1371772528, 1371772224, 1371772192, 1371772175, 1371772147, 1371772123, 1371772100, 1371771836, 1371771816, 1371771811, 1371771790, 1371771774, 1371771770, 1371771675, 1371771647, 1371771631, 1371771588, 1371771564, 1371771490, 1371771056, 1371771003, 1371770952, 1371770906, 1371770863, 1371770824, 1371770199, 1371770174, 1371770148, 1371770122, 1371770099, 1371770071, 1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] Looping around the photos to save general results len do output : 1 /24867390. 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, '3274040') ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24867390', "{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}", None, None, None, None, '3274040'), ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040')] time used for this insertion : 0.11877942085266113 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7717146873474121 time spend to save output : 0.11909031867980957 total time spend for step 1 : 0.8908050060272217 step2:final Sat Jul 12 01:44:57 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 (24867390) 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 24867390 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371768674,1371768569,1371768538,1371768481,1371768431,1371768392,1371769585,1371769558,1371769523,1371769461,1371769405,1371769369,1371769979,1371769945,1371769917,1371769883,1371769857,1371769831,1371770199,1371770174,1371770148,1371770122,1371770099,1371770071,1371771056,1371771003,1371770952,1371770906,1371770863,1371770824,1371771675,1371771647,1371771631,1371771588,1371771564,1371771490,1371771836,1371771816,1371771811,1371771790,1371771774,1371771770,1371772224,1371772192,1371772175,1371772147,1371772123,1371772100,1371772666,1371772645,1371772623,1371772583,1371772550,1371772528,1371772918,1371772913,1371772886,1371772860,1371772830,1371772807,1371773254,1371773246,1371773232,1371773220,1371773198,1371773175,1371774026,1371773981,1371773932,1371773876,1371773843,1371773812,1371774180,1371774174,1371774169,1371774167,1371774164,1371774161); 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([24867390]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} new output for save of step final : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] map_info['map_portfolio_photo'] : {24867390: [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812, 1371773254, 1371773246, 1371773232, 1371773220, 1371773198, 1371773175, 1371772918, 1371772913, 1371772886, 1371772860, 1371772830, 1371772807, 1371772666, 1371772645, 1371772623, 1371772583, 1371772550, 1371772528, 1371772224, 1371772192, 1371772175, 1371772147, 1371772123, 1371772100, 1371771836, 1371771816, 1371771811, 1371771790, 1371771774, 1371771770, 1371771675, 1371771647, 1371771631, 1371771588, 1371771564, 1371771490, 1371771056, 1371771003, 1371770952, 1371770906, 1371770863, 1371770824, 1371770199, 1371770174, 1371770148, 1371770122, 1371770099, 1371770071, 1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] Looping around the photos to save general results len do output : 12 /1371774180.Didn't retrieve data . /1371774174.Didn't retrieve data . /1371774169.Didn't retrieve data . /1371774167.Didn't retrieve data . /1371774164.Didn't retrieve data . /1371774161.Didn't retrieve data . /1371774026.Didn't retrieve data . /1371773981.Didn't retrieve data . /1371773932.Didn't retrieve data . /1371773876.Didn't retrieve data . /1371773843.Didn't retrieve data . /1371773812.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, '3274040') ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24867390', '1371774180', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774174', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774169', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774167', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774164', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774161', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371774026', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371773981', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371773932', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371773876', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371773843', '0.04251807022907347', None, None, None, None, '3274040'), ('4302', '24867390', '1371773812', '0.04251807022907347', None, None, None, None, '3274040')] time used for this insertion : 0.02142190933227539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07887935638427734 time spend to save output : 0.02199697494506836 total time spend for step 2 : 0.1008763313293457 step3:velours_tree Sat Jul 12 01:44:57 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 : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} input_args_next_step : {24867390: ()} output_args : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} args : 24867390 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) 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([24867390]) 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.27791690826416016 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.27796030044555664 step4:send_mail_cod Sat Jul 12 01:44:57 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 : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} input_args_next_step : {1371774180: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774180 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774174 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774169 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774167 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774164 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774161 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371774026 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371773981 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371773932 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371773876 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371773843 depend.output_id : 0 input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ()} output_args : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',)} args : 1371773812 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 : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} input_args_next_step : {1371774180: ('0.04251807022907347',), 1371774174: ('0.04251807022907347',), 1371774169: ('0.04251807022907347',), 1371774167: ('0.04251807022907347',), 1371774164: ('0.04251807022907347',), 1371774161: ('0.04251807022907347',), 1371774026: ('0.04251807022907347',), 1371773981: ('0.04251807022907347',), 1371773932: ('0.04251807022907347',), 1371773876: ('0.04251807022907347',), 1371773843: ('0.04251807022907347',), 1371773812: ('0.04251807022907347',), 24867390: ()} output_args : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} args : 24867390 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.04251807022907347',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1371774180,1371774174,1371774169,1371774167,1371774164,1371774161,1371774026,1371773981,1371773932,1371773876,1371773843,1371773812) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371773812 begin to download photo : 1371773932 begin to download photo : 1371774161 begin to download photo : 1371774169 download finish for photo 1371774161 begin to download photo : 1371774164 download finish for photo 1371774169 begin to download photo : 1371774174 download finish for photo 1371773812 begin to download photo : 1371773843 download finish for photo 1371773932 begin to download photo : 1371773981 download finish for photo 1371774164 begin to download photo : 1371774167 download finish for photo 1371774174 begin to download photo : 1371774180 download finish for photo 1371773843 begin to download photo : 1371773876 download finish for photo 1371773981 begin to download photo : 1371774026 download finish for photo 1371774167 download finish for photo 1371773876 download finish for photo 1371774180 download finish for photo 1371774026 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette248675151752277498/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24867390_12-07-2025_01_44_58.pdf 24867515 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675151752277498 24867516 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770067: '1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842666_0.png', 1371771653: '1752276965_3868354_1371769585_60e64c05ff0db524e282ea3ee0e5dd4f_rle_crop_3880847807_0.png', 1371771654: '1752276965_3868354_1371769585_60e64c05ff0db524e282ea3ee0e5dd4f_rle_crop_3880847804_0.png', 1371771655: '1752276965_3868354_1371769558_ef09d56049b5514a9d4f6c9acbad8655_rle_crop_3880847821_0.png', 1371771658: '1752276965_3868354_1371769558_ef09d56049b5514a9d4f6c9acbad8655_rle_crop_3880847817_0.png', 1371771663: '1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847833_0.png', 1371771667: '1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847836_0.png', 1371773591: '1752277287_2109737_1371772645_fde4d10e1095d2a66e953a5f3c78b52d_rle_crop_3880861365_0.png', 1371773594: '1752277287_2109737_1371772623_a6d6cabe9e9d066a462043e7b01b42ba_rle_crop_3880861378_0.png', 1371774069: '1752277326_3887114_1371772147_38670e2b3ba695a539009ca7a22bc5e6_rle_crop_3880861772_0.png', 1371774072: '1752277326_3887114_1371772123_f7ccc3895779c0bf779fbc289be09da9_rle_crop_3880861788_0.png', 1371774198: '1752277407_2112722_1371773246_5fec143ae5cdacd5271a203764c85736_rle_crop_3880861990_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/854e356fae49e3fa457ecc742bfa015e_10510482.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1ffedff93d55264a23499efd348ee1d3_59749553.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0f1f77ad46a66f5609ed3dc458c39312_78365494.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/831cfa88d4a1e4fc439b997fa23a3870_71712767.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/af87ce9935200a222463fcaa3e386d77_72831372.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/403fd903193cf3960ea110a65a6b94ac_25287910.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/61a761ebc10df8df39b1767e3c3aba94_26854210.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/2e0fcd04bf886248bc759be468628b01_83359706.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f1b27173d16691fbcbde11bc81022add_74113149.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/b0285b7fffd95638d996ddfc5ee3bf91_5691196.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5c79fe0ac3de326eba8477a2a8cf8380_73186426.png change filename to text .imagette248675161752277498/ imagette248675161752277498/1752276965_3868354_1371769558_ef09d56049b5514a9d4f6c9acbad8655_rle_crop_3880847821_0.png.png imagette248675161752277498/1752277407_2112722_1371773246_5fec143ae5cdacd5271a203764c85736_rle_crop_3880861990_0.png.png imagette248675161752277498/1752277326_3887114_1371772147_38670e2b3ba695a539009ca7a22bc5e6_rle_crop_3880861772_0.png.png imagette248675161752277498/1752277287_2109737_1371772623_a6d6cabe9e9d066a462043e7b01b42ba_rle_crop_3880861378_0.png.png imagette248675161752277498/1752277326_3887114_1371772123_f7ccc3895779c0bf779fbc289be09da9_rle_crop_3880861788_0.png.png imagette248675161752277498/1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847836_0.png.png imagette248675161752277498/1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842666_0.png.png imagette248675161752277498/1752276965_3868354_1371769558_ef09d56049b5514a9d4f6c9acbad8655_rle_crop_3880847817_0.png.png imagette248675161752277498/1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847833_0.png.png imagette248675161752277498/1752276965_3868354_1371769585_60e64c05ff0db524e282ea3ee0e5dd4f_rle_crop_3880847807_0.png.png imagette248675161752277498/1752276965_3868354_1371769585_60e64c05ff0db524e282ea3ee0e5dd4f_rle_crop_3880847804_0.png.png imagette248675161752277498/1752277287_2109737_1371772645_fde4d10e1095d2a66e953a5f3c78b52d_rle_crop_3880861365_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9f47d0c742284ec738e4210816870a50_9307688.png imagette248675161752277498 24867517 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867517 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371772041: '1752277044_3872564_1371770148_d9ba6149f7324b84e9f982fa35f7204b_rle_crop_3880853008_0.png', 1371772043: '1752277044_3872564_1371770122_2aa276bfa01f75c05396b11cf459f353_rle_crop_3880853151_0.png', 1371772765: '1752277165_2106373_1371771836_6acc52ba925f5c3eddeb972f1303b37f_rle_crop_3880854998_0.png', 1371772932: '1752277207_3882725_1371771631_586ae6ee33df397eda85239e59c411dd_rle_crop_3880856402_0.png', 1371772933: '1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856412_0.png', 1371773551: '1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861432_0.png', 1371774191: '1752277407_2112722_1371773254_83c1b3d3e810689bad8df95503cdc707_rle_crop_3880861979_0.png', 1371774210: '1752277447_3892414_1371772830_e4cf9de60806295d95deebccc0771d85_rle_crop_3880862178_0.png', 1371774211: '1752277447_3892414_1371772807_8dcc5afa139f3a40b963dda221146636_rle_crop_3880862189_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/304560eed53fb0e36aa8c2b4e0696611_73726136.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/599d67d743d6cca46d5ab27252bdc715_62807697.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9fed55a12ae89db444051ce7531ceebc_83081376.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/cb047e4d94cc8e5722edf6f0951baba2_69604451.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5b09363d36f513eaf01a815ead8de847_88576026.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/38fe5b7d27a9934d539c15e09928e36f_12088062.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/91a9fbd565704fba9e3aa1c9572dd4d6_98669903.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/cccaaafa3f98ca93f605c9b3c5b61d64_18429858.png change filename to text .imagette248675171752277498/ imagette248675171752277498/1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856412_0.png.png imagette248675171752277498/1752277407_2112722_1371773254_83c1b3d3e810689bad8df95503cdc707_rle_crop_3880861979_0.png.png imagette248675171752277498/1752277165_2106373_1371771836_6acc52ba925f5c3eddeb972f1303b37f_rle_crop_3880854998_0.png.png imagette248675171752277498/1752277447_3892414_1371772830_e4cf9de60806295d95deebccc0771d85_rle_crop_3880862178_0.png.png imagette248675171752277498/1752277044_3872564_1371770148_d9ba6149f7324b84e9f982fa35f7204b_rle_crop_3880853008_0.png.png imagette248675171752277498/1752277447_3892414_1371772807_8dcc5afa139f3a40b963dda221146636_rle_crop_3880862189_0.png.png imagette248675171752277498/1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861432_0.png.png imagette248675171752277498/1752277207_3882725_1371771631_586ae6ee33df397eda85239e59c411dd_rle_crop_3880856402_0.png.png imagette248675171752277498/1752277044_3872564_1371770122_2aa276bfa01f75c05396b11cf459f353_rle_crop_3880853151_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f02112829b7e96817fa4812b7a3ef7eb_15246574.png imagette248675171752277498 24867520 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867520 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770052: '1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842663_0.png', 1371771648: '1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847829_0.png', 1371771649: '1752276965_3868354_1371769461_324e538bec552512da1cd2dab0777032_rle_crop_3880847845_0.png', 1371771650: '1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847864_0.png', 1371771651: '1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847862_0.png', 1371771652: '1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847857_0.png', 1371772956: '1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856414_0.png', 1371772958: '1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856439_0.png', 1371772960: '1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856943_0.png', 1371773569: '1752277287_2109737_1371772645_fde4d10e1095d2a66e953a5f3c78b52d_rle_crop_3880861358_0.png', 1371773572: '1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861431_0.png', 1371773575: '1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861434_0.png', 1371774056: '1752277326_3887114_1371772192_cf899d15ae1336b2297602d4354eb9c4_rle_crop_3880861741_0.png', 1371774196: '1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862009_0.png', 1371774197: '1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862016_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/640edb0620408276b8161b982e572536_55724081.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/8cad60666462a524aac5ebcb4da624cf_36518068.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1ab7849d38908fa8bda37e66deb2adc9_42606065.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/944575e7fde1536cb1be0ca322b7ee2e_74499025.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/d8381f3f1a28bb8044f37c38c6be64c4_90073103.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/443ba355ee9f31b71476cd9f18ebff76_2809146.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4ff38429897bbe109a73bd0039af68db_31910167.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0e4d2f3ac8366697f0a557f7cf58575e_3590805.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/181cbd7190916fc3906844dd5de0ac2d_82426228.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/781a607f3ee45811d9a8906c319a4d11_66241568.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c921d50de271ba9d38fd5fe6fa77eed6_1647850.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9f8dd081471b8fc0b0adf0c13a358958_27124060.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c5b8b10f0eab0175710898ca217a925e_28517569.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4611de188e57c123c7761684cac80202_8376339.png change filename to text .imagette248675201752277499/ imagette248675201752277499/1752277326_3887114_1371772192_cf899d15ae1336b2297602d4354eb9c4_rle_crop_3880861741_0.png.png imagette248675201752277499/1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856414_0.png.png imagette248675201752277499/1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861431_0.png.png imagette248675201752277499/1752276965_3868354_1371769523_ab196a4f75f85c9d1828fc27ab43159d_rle_crop_3880847829_0.png.png imagette248675201752277499/1752276965_3868354_1371769461_324e538bec552512da1cd2dab0777032_rle_crop_3880847845_0.png.png imagette248675201752277499/1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862009_0.png.png imagette248675201752277499/1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847862_0.png.png imagette248675201752277499/1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862016_0.png.png imagette248675201752277499/1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847864_0.png.png imagette248675201752277499/1752277287_2109737_1371772645_fde4d10e1095d2a66e953a5f3c78b52d_rle_crop_3880861358_0.png.png imagette248675201752277499/1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856943_0.png.png imagette248675201752277499/1752277287_2109737_1371772583_054178b45d4ca71b1dbc2c357ce17e7e_rle_crop_3880861434_0.png.png imagette248675201752277499/1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856439_0.png.png imagette248675201752277499/1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842663_0.png.png imagette248675201752277499/1752276965_3868354_1371769405_ff0bd47106219a4522bb255030c7ca1c_rle_crop_3880847857_0.png.png imagette248675221752277500/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/8adca7d357c7d203915e2cc58fd9ed1f_41638385.png imagette248675201752277499 24867522 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867522 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675221752277500 24867525 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371773607: '1752277287_2109737_1371772666_7b6fe5320de09d4134f8f6cd1f92e5a9_rle_crop_3880861346_0.png', 1371774201: '1752277407_2112722_1371773232_0f5f31398ea532b3952663212f8226e5_rle_crop_3880861997_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/b68289b796596c7e1ef6df41e75b3ed7_10510287.png change filename to text .imagette248675251752277500/ imagette248675251752277500/1752277407_2112722_1371773232_0f5f31398ea532b3952663212f8226e5_rle_crop_3880861997_0.png.png imagette248675251752277500/1752277287_2109737_1371772666_7b6fe5320de09d4134f8f6cd1f92e5a9_rle_crop_3880861346_0.png.png imagette248675261752277500/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ab71ff915b95e67988992c5b07390302_78210638.png imagette248675251752277500 24867526 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867526 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675261752277500 24867521 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867521 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371772029: '1752277044_3872564_1371770099_900c87b2483a093c79c62f5c0428198d_rle_crop_3880853626_0.png', 1371772031: '1752277044_3872564_1371770071_529171bc2d7a3071468ad626659ea4df_rle_crop_3880853704_0.png', 1371772757: '1752277165_2106373_1371771770_8ca8ee914892caf042ded23ebee3ad17_rle_crop_3880855101_0.png', 1371772927: '1752277207_3882725_1371771647_75be64cb7691ee1382d753a13f65dcb8_rle_crop_3880856333_0.png', 1371772928: '1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856444_0.png', 1371772929: '1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856945_0.png', 1371773538: '1752277287_2109737_1371772666_7b6fe5320de09d4134f8f6cd1f92e5a9_rle_crop_3880861343_0.png', 1371774044: '1752277326_3887114_1371772224_e9caaf95068e270ccbea455b78fbd0f6_rle_crop_3880861734_0.png', 1371774046: '1752277326_3887114_1371772224_e9caaf95068e270ccbea455b78fbd0f6_rle_crop_3880861737_0.png', 1371774188: '1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862013_0.png', 1371774189: '1752277407_2112722_1371773198_5c7badfc75ae8e975e8d8cd1b713e21d_rle_crop_3880862037_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0bf854601fedf39ecf6bb28a33b4403f_12519759.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ca500f611db94075b0a4daae000cbc77_7242965.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/03e6ea53d4988801203ff638b9e521ee_93322816.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/6e42c3bcbe65de144a8dad3e06fe71d2_34736879.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/63288db11f5d5d5bbdf19cefbedc9242_33845876.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c68e339b2e981bcd3f761aa8387daa0c_47982339.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1c3361ca5ee27a432243cb8992c847f3_86261575.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0e64c893393586e367bd350558798a12_87381882.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/a8be6662229bf72defcc6eb05c160364_7938110.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ebfa505b3f25137ccf5d96d653b80a37_63426927.png change filename to text .imagette248675211752277500/ imagette248675211752277500/1752277326_3887114_1371772224_e9caaf95068e270ccbea455b78fbd0f6_rle_crop_3880861734_0.png.png imagette248675211752277500/1752277407_2112722_1371773198_5c7badfc75ae8e975e8d8cd1b713e21d_rle_crop_3880862037_0.png.png imagette248675211752277500/1752277326_3887114_1371772224_e9caaf95068e270ccbea455b78fbd0f6_rle_crop_3880861737_0.png.png imagette248675211752277500/1752277165_2106373_1371771770_8ca8ee914892caf042ded23ebee3ad17_rle_crop_3880855101_0.png.png imagette248675211752277500/1752277287_2109737_1371772666_7b6fe5320de09d4134f8f6cd1f92e5a9_rle_crop_3880861343_0.png.png imagette248675211752277500/1752277207_3882725_1371771647_75be64cb7691ee1382d753a13f65dcb8_rle_crop_3880856333_0.png.png imagette248675211752277500/1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856444_0.png.png imagette248675211752277500/1752277044_3872564_1371770099_900c87b2483a093c79c62f5c0428198d_rle_crop_3880853626_0.png.png imagette248675211752277500/1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856945_0.png.png imagette248675211752277500/1752277044_3872564_1371770071_529171bc2d7a3071468ad626659ea4df_rle_crop_3880853704_0.png.png imagette248675211752277500/1752277407_2112722_1371773220_2e1a68222e41b0bb9f255e0c76cb5b4a_rle_crop_3880862013_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/7bac5049e3f31b2408529a9ba793cf09_79294484.png imagette248675211752277500 24867523 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770060: '1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842610_0.png', 1371772062: '1752277044_3872564_1371770099_900c87b2483a093c79c62f5c0428198d_rle_crop_3880853625_0.png', 1371772969: '1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/da15845d10b3144b2f8a40d9dd75b545_5452846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e6f6c4cf24940e1a597667f11670e139_30035742.png change filename to text .imagette248675231752277501/ imagette248675231752277501/1752277044_3872564_1371770099_900c87b2483a093c79c62f5c0428198d_rle_crop_3880853625_0.png.png imagette248675231752277501/1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842610_0.png.png imagette248675231752277501/1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856422_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/09a7b41777070523086640e88e68032d_83275192.png imagette248675231752277501 24867524 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371772030: '1752277047_2103659_1371771056_a37af6cb87c779f479b2652dcb6f9575_rle_crop_3880852427_0.png', 1371774194: '1752277407_2112722_1371773254_83c1b3d3e810689bad8df95503cdc707_rle_crop_3880861973_0.png', 1371772945: '1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856949_0.png', 1371772943: '1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856941_0.png', 1371772940: '1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856445_0.png', 1371772938: '1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856440_0.png', 1371772936: '1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856418_0.png', 1371772935: '1752277207_3882725_1371771631_586ae6ee33df397eda85239e59c411dd_rle_crop_3880856397_0.png', 1371772055: '1752277044_3872564_1371770174_0aafb0926cc7e7d221512a096cb33d40_rle_crop_3880852675_0.png', 1371772053: '1752277044_3872564_1371770199_942ca6bf784a62cb644f68ba34b3f188_rle_crop_3880852216_0.png', 1371772033: '1752277047_2103659_1371771003_af52a0fc0bf932712b9c86d6e58dd0d0_rle_crop_3880852682_0.png', 1371770033: '1752276807_2097282_1371768674_0dc0d54b96842a0b3f6c3803d7ca7284_rle_crop_3880842569_0.png', 1371771211: '1752276927_2100355_1371769831_9b86c7428165f973759ce3383bd25d27_rle_crop_3880845982_0.png', 1371771210: '1752276927_2100355_1371769857_5892951ed8d0e575ecf0de57050e4753_rle_crop_3880845970_0.png', 1371771209: '1752276927_2100355_1371769883_c67576134086266ecd8fcf714be9f002_rle_crop_3880845432_0.png', 1371771208: '1752276927_2100355_1371769917_d1953172ab3ede967a5ba9b2d0ffdf71_rle_crop_3880845419_0.png', 1371770044: '1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842611_0.png', 1371770042: '1752276807_2097282_1371768481_3e9556eed84dea3a1094530ec071075c_rle_crop_3880842597_0.png', 1371770040: '1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842585_0.png', 1371770037: '1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842588_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/94dc38e11550e56470101146aaeda53b_98679351.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/54a0b376f789582bba6e6715276c3e6f_82804308.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1b5ea4839b4364b2890187e8c511fad9_40046569.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/42f3d30ef59fecba5af19cecc65e1259_70706317.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/b5bdde73f237ae33355741db08716c33_85311894.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9190861ac8e5e06436c1f97d29f1b5f8_34422377.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f4a989149b4905c1967cbcd5ef2e5130_76661792.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0b5c5cfaf24be170b6f39da85ac1aa29_48973315.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e35249a899ec633f74ee7f582e963743_60351126.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/a9d41f98e34ef0a366d692fbd67f1e2d_78387934.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ef9a0616d1f267856466e94762f24943_910814.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/d8a6c56dcc7433a018838d3ef0efed5c_67745550.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/d21ce3cc309a86164afda9b630878714_82995663.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0b79205472f2e724561a5be91442248b_24592075.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/3c737d19b27d32b1f002083d7163cc28_42337051.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/33704212a436b3ee6ea6e44c3aa7f362_76878569.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c8f47e7178871459dc0a62a441949054_76288270.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0f6578df39d229185f2fb702634e2a8b_55619852.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5f77085776df8c41946bd381723c7168_74476204.png change filename to text .imagette248675241752277501/ imagette248675241752277501/1752276927_2100355_1371769831_9b86c7428165f973759ce3383bd25d27_rle_crop_3880845982_0.png.png imagette248675241752277501/1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856941_0.png.png imagette248675241752277501/1752277407_2112722_1371773254_83c1b3d3e810689bad8df95503cdc707_rle_crop_3880861973_0.png.png imagette248675241752277501/1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842611_0.png.png imagette248675241752277501/1752277207_3882725_1371771588_8b43e4291737a9d97f81fd0f9208b83d_rle_crop_3880856418_0.png.png imagette248675241752277501/1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856445_0.png.png imagette248675241752277501/1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842588_0.png.png imagette248675241752277501/1752276927_2100355_1371769857_5892951ed8d0e575ecf0de57050e4753_rle_crop_3880845970_0.png.png imagette248675241752277501/1752277207_3882725_1371771631_586ae6ee33df397eda85239e59c411dd_rle_crop_3880856397_0.png.png imagette248675241752277501/1752276927_2100355_1371769883_c67576134086266ecd8fcf714be9f002_rle_crop_3880845432_0.png.png imagette248675241752277501/1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842585_0.png.png imagette248675241752277501/1752277047_2103659_1371771056_a37af6cb87c779f479b2652dcb6f9575_rle_crop_3880852427_0.png.png imagette248675241752277501/1752276927_2100355_1371769917_d1953172ab3ede967a5ba9b2d0ffdf71_rle_crop_3880845419_0.png.png imagette248675241752277501/1752277044_3872564_1371770199_942ca6bf784a62cb644f68ba34b3f188_rle_crop_3880852216_0.png.png imagette248675241752277501/1752277047_2103659_1371771003_af52a0fc0bf932712b9c86d6e58dd0d0_rle_crop_3880852682_0.png.png imagette248675241752277501/1752276807_2097282_1371768674_0dc0d54b96842a0b3f6c3803d7ca7284_rle_crop_3880842569_0.png.png imagette248675241752277501/1752276807_2097282_1371768481_3e9556eed84dea3a1094530ec071075c_rle_crop_3880842597_0.png.png imagette248675241752277501/1752277207_3882725_1371771564_c61275c16e5fedbdb6781721f6e992f4_rle_crop_3880856440_0.png.png imagette248675241752277501/1752277207_3882725_1371771490_bc5fe142da736c015dd47344b0e78872_rle_crop_3880856949_0.png.png imagette248675241752277501/1752277044_3872564_1371770174_0aafb0926cc7e7d221512a096cb33d40_rle_crop_3880852675_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/80942f7954adfb3f6fb821d1173c3914_63512354.png imagette248675241752277501 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24867390 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24867527,24867528,24867529,24867530,24867531,24867532,24867533,24867534,24867535,24867536,24867537,24867538?tags=metal,plastique,autre_refus,papier,environnement,cartonnette,Teint_Dans_La_Masse,flou,Carton_brun,Carton_gris,kraft,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1371774180] : ('0.04251807022907347',) no score found for photo 1371774180 We are sending mail with results at report@fotonower.com args[1371774174] : ('0.04251807022907347',) no score found for photo 1371774174 We are sending mail with results at report@fotonower.com args[1371774169] : ('0.04251807022907347',) no score found for photo 1371774169 We are sending mail with results at report@fotonower.com args[1371774167] : ('0.04251807022907347',) no score found for photo 1371774167 We are sending mail with results at report@fotonower.com args[1371774164] : ('0.04251807022907347',) no score found for photo 1371774164 We are sending mail with results at report@fotonower.com args[1371774161] : ('0.04251807022907347',) no score found for photo 1371774161 We are sending mail with results at report@fotonower.com args[1371774026] : ('0.04251807022907347',) no score found for photo 1371774026 We are sending mail with results at report@fotonower.com args[1371773981] : ('0.04251807022907347',) no score found for photo 1371773981 We are sending mail with results at report@fotonower.com args[1371773932] : ('0.04251807022907347',) no score found for photo 1371773932 We are sending mail with results at report@fotonower.com args[1371773876] : ('0.04251807022907347',) no score found for photo 1371773876 We are sending mail with results at report@fotonower.com args[1371773843] : ('0.04251807022907347',) no score found for photo 1371773843 We are sending mail with results at report@fotonower.com args[1371773812] : ('0.04251807022907347',) no score found for photo 1371773812 We are sending mail with results at report@fotonower.com refus_total : 0.04251807022907347 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867390 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_P24867390_12-07-2025_01_44_58.pdf results_Auto_P24867390_12-07-2025_01_44_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_44_58.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','24867390','results_Auto_P24867390_12-07-2025_01_44_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_44_58.pdf','pdf','','0.29','0.04251807022907347') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] map_info['map_portfolio_photo'] : {24867390: [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812, 1371773254, 1371773246, 1371773232, 1371773220, 1371773198, 1371773175, 1371772918, 1371772913, 1371772886, 1371772860, 1371772830, 1371772807, 1371772666, 1371772645, 1371772623, 1371772583, 1371772550, 1371772528, 1371772224, 1371772192, 1371772175, 1371772147, 1371772123, 1371772100, 1371771836, 1371771816, 1371771811, 1371771790, 1371771774, 1371771770, 1371771675, 1371771647, 1371771631, 1371771588, 1371771564, 1371771490, 1371771056, 1371771003, 1371770952, 1371770906, 1371770863, 1371770824, 1371770199, 1371770174, 1371770148, 1371770122, 1371770099, 1371770071, 1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] 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, '3274040') ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24867390', '1371774180', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040')] time used for this insertion : 0.018949508666992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.7309746742248535 time spend to save output : 0.019185304641723633 total time spend for step 4 : 5.750159978866577 step5:split_time_score Sat Jul 12 01:45:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24867390'] 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 : [('24867390',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371774161: {'path': 'temp/1752277497_1031503_1371774161_8b6ddea85003fb39d38a711e725dc61b.jpg', 'extension': 'jpg'}, 1371774164: {'path': 'temp/1752277497_1031503_1371774164_c9c92c6f8cf497171250f5e726a52b54.jpg', 'extension': 'jpg'}, 1371774167: {'path': 'temp/1752277497_1031503_1371774167_042a9a9c085126ac000d86be75d2cbec.jpg', 'extension': 'jpg'}, 1371773812: {'path': 'temp/1752277497_1031503_1371773812_d4f6039904211114eefef94155fe2bdb.jpg', 'extension': 'jpg'}, 1371773843: {'path': 'temp/1752277497_1031503_1371773843_6e2ab172535888515d7d413ae8ad9e51.jpg', 'extension': 'jpg'}, 1371773876: {'path': 'temp/1752277497_1031503_1371773876_553098ffd5b38c634f451cd36ecf9065.jpg', 'extension': 'jpg'}, 1371774169: {'path': 'temp/1752277497_1031503_1371774169_6dd36eb2387a6eacc596d972f741b14c.jpg', 'extension': 'jpg'}, 1371774174: {'path': 'temp/1752277497_1031503_1371774174_5e5ace308c2c784e0eab64e2d98e3051.jpg', 'extension': 'jpg'}, 1371774180: {'path': 'temp/1752277497_1031503_1371774180_c8c66017a2b5fe5e976a10c199ebfa59.jpg', 'extension': 'jpg'}, 1371773932: {'path': 'temp/1752277497_1031503_1371773932_ea83402ee1b4c039526c45f7c1af5590.jpg', 'extension': 'jpg'}, 1371773981: {'path': 'temp/1752277497_1031503_1371773981_5a05c1a102af38135ae19e5a3ca62831.jpg', 'extension': 'jpg'}, 1371774026: {'path': 'temp/1752277497_1031503_1371774026_fdb1cfaa2e1969c68bf37fdc3ce99f1e.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 = 24867390; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24867390 group by h (('01', 78),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24867390 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 (24867390) 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 (24867390) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12072025 24867390 Nombre de photos uploadées : 78 / 23040 (0%) 12072025 24867390 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 12072025 24867390 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1371768674, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0dc0d54b96842a0b3f6c3803d7ca7284.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_03_010147m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371768569, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0b02815e35024db23c645ae0dee97173.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371768538, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/cb8467b210d271b0af33e64831d001f5.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371768481, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/3e9556eed84dea3a1094530ec071075c.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_34_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034346580505371094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24867390, '2025-07-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1972167,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028516530990600586 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= 1972167 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24862874, 'dashboard_result_id': 12450122, '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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24863716, 'dashboard_result_id': 12450123, '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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24864264, 'dashboard_result_id': 12450124, '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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24864799, 'dashboard_result_id': 12450125, '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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24865363, 'dashboard_result_id': 12450126, '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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24866369, 'dashboard_result_id': 12450127, '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_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979699, 'mtr_portfolio_id': 24867390, 'dashboard_result_id': 12450128, '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_P24867390_12-07-2025_01_43_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24867515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24867516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24867517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24867518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24867519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24867520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24867521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24867522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24867523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24867524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24867525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24867526, '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 = 24862874 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': 3273672, 'mtr_portfolio_id': 24862874, 'created_at': datetime.datetime(2025, 7, 12, 0, 16, 59), 'result': '0.037367531886799636', 'result_long': None, 'result_double': None}] Qualite : 0.037367531886799636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24862874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24862874 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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}" where mtr_portfolio_id = 24862874 and dashboard_run_id = 1979699 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`=24862874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450122, 0.037367531886799636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, '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 = 24863716 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': 3273753, 'mtr_portfolio_id': 24863716, 'created_at': datetime.datetime(2025, 7, 12, 0, 32, 58), 'result': '0.03280463110763884', 'result_long': None, 'result_double': None}] Qualite : 0.03280463110763884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24863716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24863716 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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}" where mtr_portfolio_id = 24863716 and dashboard_run_id = 1979699 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`=24863716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450123, 0.03280463110763884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, '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 = 24864264 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': 3273801, 'mtr_portfolio_id': 24864264, 'created_at': datetime.datetime(2025, 7, 12, 0, 46, 56), 'result': '0.045803300599373216', 'result_long': None, 'result_double': None}] Qualite : 0.045803300599373216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864264 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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}" where mtr_portfolio_id = 24864264 and dashboard_run_id = 1979699 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`=24864264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450124, 0.045803300599373216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, '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 = 24864799 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': 3273845, 'mtr_portfolio_id': 24864799, 'created_at': datetime.datetime(2025, 7, 12, 1, 2, 58), 'result': '0.05501512360551966', 'result_long': None, 'result_double': None}] Qualite : 0.05501512360551966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864799 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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}" where mtr_portfolio_id = 24864799 and dashboard_run_id = 1979698 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`=24864799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450125, 0.05501512360551966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, '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 = 24865363 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': 3273898, 'mtr_portfolio_id': 24865363, 'created_at': datetime.datetime(2025, 7, 12, 1, 16, 59), 'result': '0.03769358954030426', 'result_long': None, 'result_double': None}] Qualite : 0.03769358954030426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24865363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24865363 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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}" where mtr_portfolio_id = 24865363 and dashboard_run_id = 1979698 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`=24865363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450126, 0.03769358954030426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, '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 = 24866369 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': 3273993, 'mtr_portfolio_id': 24866369, 'created_at': datetime.datetime(2025, 7, 12, 1, 32, 57), 'result': '0.04421412132428314', 'result_long': None, 'result_double': None}] Qualite : 0.04421412132428314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24866369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24866369 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_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, 'pht': 3726}}" where mtr_portfolio_id = 24866369 and dashboard_run_id = 1979698 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`=24866369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450127, 0.04421412132428314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, '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 = 24867390 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': 3274040, 'mtr_portfolio_id': 24867390, 'created_at': datetime.datetime(2025, 7, 12, 1, 44, 57), 'result': '0.04251807022907347', 'result_long': None, 'result_double': None}] Qualite : 0.04251807022907347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24867390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_44_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24867390 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_P24867390_12-07-2025_01_44_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24867515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24867516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24867517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24867518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24867519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24867520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24867521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24867522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24867523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24867524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24867525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24867526, 'pht': 3726}}" where mtr_portfolio_id = 24867390 and dashboard_run_id = 1979698 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`=24867390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12450128, 0.04251807022907347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_44_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24867515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24867516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24867517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24867518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24867519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24867520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24867521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24867522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24867523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24867524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24867525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24867526, '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 (24862874,24863716,24864264,24864799,24865363,24866369,24867390) result : ((1371742379,), (1371742409,), (1371742439,), (1371742467,), (1371742493,), (1371742810,), (1371742839,), (1371742869,), (1371742894,), (1371742918,), (1371742943,), (1371743083,), (1371743084,), (1371743103,), (1371743104,), (1371743131,), (1371743137,), (1371743164,), (1371743167,), (1371743191,), (1371743196,), (1371743220,), (1371743223,), (1371743306,), (1371743309,), (1371743312,), (1371743340,), (1371743358,), (1371743368,), (1371743470,), (1371743474,), (1371743479,), (1371743505,), (1371743531,), (1371743558,), (1371743769,), (1371743777,), (1371743781,), (1371743786,), (1371743808,), (1371743836,), (1371743987,), (1371744038,), (1371744092,), (1371744216,), (1371744321,), (1371744440,), (1371744789,), (1371744950,), (1371745105,), (1371745166,), (1371745248,), (1371745345,), (1371745593,), (1371745621,), (1371745663,), (1371745726,), (1371745808,), (1371745824,), (1371746189,), (1371746240,), (1371746298,), (1371746311,), (1371746325,), (1371746331,), (1371746501,), (1371746504,), (1371746508,), (1371746512,), (1371746515,), (1371746520,), (1371746569,), (1371746583,), (1371746607,), (1371746632,), (1371746659,), (1371746685,), (1371746815,), (1371746817,), (1371746818,), (1371746838,), (1371746843,), (1371746854,), (1371747126,), (1371747160,), (1371747186,), (1371747211,), (1371747235,), (1371747269,), (1371747638,), (1371747660,), (1371747687,), (1371747705,), (1371747710,), (1371747716,), (1371747773,), (1371747803,), (1371747842,), (1371747869,), (1371747882,), (1371747883,), (1371748191,), (1371748226,), (1371748292,), (1371748342,), (1371748367,), (1371748380,), (1371748740,), (1371748777,), (1371748817,), (1371748841,), (1371748871,), (1371748900,), (1371749035,), (1371749067,), (1371749121,), (1371749168,), (1371749218,), (1371749277,), (1371749616,), (1371749631,), (1371749649,), (1371749652,), (1371749653,), (1371749657,), (1371749730,), (1371749732,), (1371749735,), (1371749737,), (1371749739,), (1371749741,), (1371749784,), (1371749788,), (1371749791,), (1371749794,), (1371749799,), (1371749804,), (1371749818,), (1371749821,), (1371749823,), (1371749826,), (1371749829,), (1371749833,), (1371749877,), (1371749879,), (1371749883,), (1371749887,), (1371749891,), (1371749895,), (1371749945,), (1371749947,), (1371749949,), (1371749950,), (1371749970,), (1371749981,), (1371750000,), (1371750004,), (1371750007,), (1371750022,), (1371750048,), (1371750075,), (1371750384,), (1371750395,), (1371750398,), (1371750403,), (1371750406,), (1371750407,), (1371750451,), (1371750455,), (1371750459,), (1371750462,), (1371750467,), (1371750470,), (1371750523,), (1371750526,), (1371750528,), (1371750533,), (1371750538,), (1371750545,), (1371750621,), (1371750663,), (1371750711,), (1371750754,), (1371750800,), (1371750854,), (1371751193,), (1371751204,), (1371751218,), (1371751221,), (1371751224,), (1371751226,), (1371751298,), (1371751302,), (1371751313,), (1371751317,), (1371751321,), (1371751326,), (1371751335,), (1371751336,), (1371751343,), (1371751344,), (1371751351,), (1371751353,), (1371751356,), (1371751358,), (1371751362,), (1371751366,), (1371751374,), (1371751376,), (1371751394,), (1371751397,), (1371751399,), (1371751413,), (1371751421,), (1371751428,), (1371751438,), (1371751467,), (1371751472,), (1371751476,), (1371751480,), (1371751484,), (1371751492,), (1371751493,), (1371751495,), (1371751496,), (1371751498,), (1371751499,), (1371751501,), (1371751502,), (1371751504,), (1371751505,), (1371751508,), (1371751509,), (1371751527,), (1371751539,), (1371751544,), (1371751548,), (1371751552,), (1371751555,), (1371751613,), (1371751618,), (1371751622,), (1371751639,), (1371751665,), (1371751689,), (1371752002,), (1371752028,), (1371752051,), (1371752078,), (1371752104,), (1371752129,), (1371752184,), (1371752189,), (1371752193,), (1371752195,), (1371752198,), (1371752201,), (1371752337,), (1371752367,), (1371752392,), (1371752421,), (1371752446,), (1371752477,), (1371752620,), (1371752626,), (1371752631,), (1371752635,), (1371752639,), (1371752642,), (1371752818,), (1371752820,), (1371752824,), (1371752828,), (1371752832,), (1371752834,), (1371753104,), (1371753112,), (1371753115,), (1371753118,), (1371753120,), (1371753122,), (1371753173,), (1371753174,), (1371753177,), (1371753178,), (1371753182,), (1371753183,), (1371753189,), (1371753191,), (1371753200,), (1371753202,), (1371753207,), (1371753210,), (1371753216,), (1371753218,), (1371753221,), (1371753224,), (1371753228,), (1371753234,), (1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,), (1371755321,), (1371755325,), (1371755332,), (1371755364,), (1371755411,), (1371755496,), (1371755650,), (1371755722,), (1371755786,), (1371755844,), (1371755870,), (1371755897,), (1371756004,), (1371756031,), (1371756036,), (1371756052,), (1371756079,), (1371756151,), (1371756377,), (1371756421,), (1371756510,), (1371756560,), (1371756623,), (1371756665,), (1371757110,), (1371757119,), (1371757123,), (1371757129,), (1371757172,), (1371757216,), (1371757558,), (1371757570,), (1371757572,), (1371757574,), (1371757576,), (1371757626,), (1371757629,), (1371757631,), (1371757634,), (1371757637,), (1371757640,), (1371757661,), (1371757663,), (1371757666,), (1371757668,), (1371757671,), (1371757675,), (1371757691,), (1371757694,), (1371757699,), (1371757702,), (1371757703,), (1371757706,), (1371757734,), (1371757736,), (1371757739,), (1371757743,), (1371757745,), (1371757750,), (1371757776,), (1371757779,), (1371757781,), (1371757783,), (1371757786,), (1371757789,), (1371757825,), (1371757830,), (1371757835,), (1371757839,), (1371757844,), (1371757849,), (1371757862,), (1371757870,), (1371757885,), (1371757908,), (1371757934,), (1371757961,), (1371758310,), (1371758334,), (1371758359,), (1371758382,), (1371758386,), (1371758404,), (1371758485,), (1371758498,), (1371758510,), (1371758552,), (1371758596,), (1371758636,), (1371759065,), (1371759135,), (1371759194,), (1371759254,), (1371759329,), (1371759391,), (1371760020,), (1371760075,), (1371760108,), (1371760146,), (1371760171,), (1371760195,), (1371760545,), (1371760549,), (1371760570,), (1371760576,), (1371760588,), (1371760593,), (1371760596,), (1371760598,), (1371760600,), (1371760602,), (1371760605,), (1371760607,), (1371760730,), (1371760833,), (1371760936,), (1371760993,), (1371761086,), (1371761140,), (1371761572,), (1371761631,), (1371761679,), (1371761682,), (1371761684,), (1371761687,), (1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,), (1371766432,), (1371766474,), (1371766509,), (1371766535,), (1371766592,), (1371766622,), (1371766701,), (1371766705,), (1371766709,), (1371766711,), (1371766717,), (1371766719,), (1371766975,), (1371766977,), (1371766999,), (1371767003,), (1371767023,), (1371767028,), (1371767084,), (1371767099,), (1371767169,), (1371767188,), (1371767230,), (1371767235,), (1371767299,), (1371767323,), (1371767345,), (1371767407,), (1371767409,), (1371767415,), (1371767520,), (1371767523,), (1371767527,), (1371767531,), (1371767533,), (1371767536,), (1371767704,), (1371767706,), (1371767728,), (1371767730,), (1371767746,), (1371767789,), (1371767904,), (1371767932,), (1371767957,), (1371767984,), (1371767999,), (1371768000,), (1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,), (1371770071,), (1371770099,), (1371770122,), (1371770148,), (1371770174,), (1371770199,), (1371770824,), (1371770863,), (1371770906,), (1371770952,), (1371771003,), (1371771056,), (1371771490,), (1371771564,), (1371771588,), (1371771631,), (1371771647,), (1371771675,), (1371771770,), (1371771774,), (1371771790,), (1371771811,), (1371771816,), (1371771836,), (1371772100,), (1371772123,), (1371772147,), (1371772175,), (1371772192,), (1371772224,), (1371772528,), (1371772550,), (1371772583,), (1371772623,), (1371772645,), (1371772666,), (1371772807,), (1371772830,), (1371772860,), (1371772886,), (1371772913,), (1371772918,), (1371773175,), (1371773198,), (1371773220,), (1371773232,), (1371773246,), (1371773254,), (1371773812,), (1371773843,), (1371773876,), (1371773932,), (1371773981,), (1371774026,), (1371774161,), (1371774164,), (1371774167,), (1371774169,), (1371774174,), (1371774180,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12072025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] map_info['map_portfolio_photo'] : {24867390: [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812, 1371773254, 1371773246, 1371773232, 1371773220, 1371773198, 1371773175, 1371772918, 1371772913, 1371772886, 1371772860, 1371772830, 1371772807, 1371772666, 1371772645, 1371772623, 1371772583, 1371772550, 1371772528, 1371772224, 1371772192, 1371772175, 1371772147, 1371772123, 1371772100, 1371771836, 1371771816, 1371771811, 1371771790, 1371771774, 1371771770, 1371771675, 1371771647, 1371771631, 1371771588, 1371771564, 1371771490, 1371771056, 1371771003, 1371770952, 1371770906, 1371770863, 1371770824, 1371770199, 1371770174, 1371770148, 1371770122, 1371770099, 1371770071, 1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : True mtd_id 4302 list_pids : [1371774180, 1371774174, 1371774169, 1371774167, 1371774164, 1371774161, 1371774026, 1371773981, 1371773932, 1371773876, 1371773843, 1371773812] Looping around the photos to save general results len do output : 1 /24867390Didn'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, '3274040') ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24867390', 'None', None, None, None, None, '3274040'), ('4302', '24867390', '1371774180', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774174', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774169', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774167', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774164', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774161', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371774026', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773981', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773932', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773876', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773843', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371773812', None, None, None, None, None, '3274040')] time used for this insertion : 0.01688098907470703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6063106060028076 time spend to save output : 0.017102479934692383 total time spend for step 5 : 0.6234130859375 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 (3274040) 2.11user 2.55system 0:09.69elapsed 48%CPU (0avgtext+0avgdata 159884maxresident)k 112inputs+15720outputs (1major+64304minor)pagefaults 0swaps