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 : 1524796 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 (2691756) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2691756) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719546 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2691756'] with mtr_portfolio_ids : ['21719546'] and first list_photo_ids : [] new path : /proc/1524796/ Name: python3 Umask: 0002 State: R (running) Tgid: 1524796 Ngid: 0 Pid: 1524796 PPid: 1524795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1524796 NSpid: 1524796 NSpgid: 1521458 NSsid: 1521458 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97844 kB VmRSS: 97844 kB RssAnon: 59764 kB RssFile: 38080 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1524796', 'Ngid': '0', 'Pid': '1524796', 'PPid': '1524795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1524796', 'NSpid': '1524796', 'NSpgid': '1521458', 'NSsid': '1521458', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97844 kB', 'VmRSS': '97844 kB', 'RssAnon': '59764 kB', 'RssFile': '38080 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1524796', '1106928', '0', '1106928', '865676', '97844', b'', 'marlene', '2691756') 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 (21719546) 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 (2691756 ) ) 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 (21719546) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347431992, 'portfolio_id': 21719546}, {'photo_id': 1347431986, 'portfolio_id': 21719546}, {'photo_id': 1347431978, 'portfolio_id': 21719546}, {'photo_id': 1347431974, 'portfolio_id': 21719546}, {'photo_id': 1347431970, 'portfolio_id': 21719546}, {'photo_id': 1347431928, 'portfolio_id': 21719546}, {'photo_id': 1347431923, 'portfolio_id': 21719546}, {'photo_id': 1347431920, 'portfolio_id': 21719546}, {'photo_id': 1347431915, 'portfolio_id': 21719546}, {'photo_id': 1347431913, 'portfolio_id': 21719546}, {'photo_id': 1347431911, 'portfolio_id': 21719546}, {'photo_id': 1347431876, 'portfolio_id': 21719546}, {'photo_id': 1347431870, 'portfolio_id': 21719546}, {'photo_id': 1347431867, 'portfolio_id': 21719546}, {'photo_id': 1347431862, 'portfolio_id': 21719546}, {'photo_id': 1347431838, 'portfolio_id': 21719546}, {'photo_id': 1347431833, 'portfolio_id': 21719546}, {'photo_id': 1347431828, 'portfolio_id': 21719546}, {'photo_id': 1347431821, 'portfolio_id': 21719546}, {'photo_id': 1347431816, 'portfolio_id': 21719546}, {'photo_id': 1347431814, 'portfolio_id': 21719546}, {'photo_id': 1347431791, 'portfolio_id': 21719546}, {'photo_id': 1347431778, 'portfolio_id': 21719546}, {'photo_id': 1347431763, 'portfolio_id': 21719546}, {'photo_id': 1347431759, 'portfolio_id': 21719546}, {'photo_id': 1347431721, 'portfolio_id': 21719546}, {'photo_id': 1347431702, 'portfolio_id': 21719546}, {'photo_id': 1347431696, 'portfolio_id': 21719546}, {'photo_id': 1347431689, 'portfolio_id': 21719546}, {'photo_id': 1347431686, 'portfolio_id': 21719546}, {'photo_id': 1347431683, 'portfolio_id': 21719546}, {'photo_id': 1347431646, 'portfolio_id': 21719546}, {'photo_id': 1347431635, 'portfolio_id': 21719546}, {'photo_id': 1347431606, 'portfolio_id': 21719546}, {'photo_id': 1347431601, 'portfolio_id': 21719546}, {'photo_id': 1347431595, 'portfolio_id': 21719546}, {'photo_id': 1347431590, 'portfolio_id': 21719546}, {'photo_id': 1347431587, 'portfolio_id': 21719546}, {'photo_id': 1347431584, 'portfolio_id': 21719546}, {'photo_id': 1347431564, 'portfolio_id': 21719546}, {'photo_id': 1347431561, 'portfolio_id': 21719546}, {'photo_id': 1347431554, 'portfolio_id': 21719546}, {'photo_id': 1347431548, 'portfolio_id': 21719546}, {'photo_id': 1347431546, 'portfolio_id': 21719546}, {'photo_id': 1347431542, 'portfolio_id': 21719546}, {'photo_id': 1347431513, 'portfolio_id': 21719546}, {'photo_id': 1347431508, 'portfolio_id': 21719546}, {'photo_id': 1347431504, 'portfolio_id': 21719546}, {'photo_id': 1347431500, 'portfolio_id': 21719546}, {'photo_id': 1347431475, 'portfolio_id': 21719546}, {'photo_id': 1347431470, 'portfolio_id': 21719546}, {'photo_id': 1347431465, 'portfolio_id': 21719546}, {'photo_id': 1347431461, 'portfolio_id': 21719546}, {'photo_id': 1347431451, 'portfolio_id': 21719546}, {'photo_id': 1347431407, 'portfolio_id': 21719546}, {'photo_id': 1347431404, 'portfolio_id': 21719546}, {'photo_id': 1347431401, 'portfolio_id': 21719546}, {'photo_id': 1347431376, 'portfolio_id': 21719546}, {'photo_id': 1347431373, 'portfolio_id': 21719546}, {'photo_id': 1347431367, 'portfolio_id': 21719546}, {'photo_id': 1347431359, 'portfolio_id': 21719546}, {'photo_id': 1347431352, 'portfolio_id': 21719546}, {'photo_id': 1347431320, 'portfolio_id': 21719546}, {'photo_id': 1347431316, 'portfolio_id': 21719546}, {'photo_id': 1347431306, 'portfolio_id': 21719546}, {'photo_id': 1347431299, 'portfolio_id': 21719546}, {'photo_id': 1347431295, 'portfolio_id': 21719546}] map_portfolio_id_photo_id: {21719546: [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911, 1347431876, 1347431870, 1347431867, 1347431862, 1347431838, 1347431833, 1347431828, 1347431821, 1347431816, 1347431814, 1347431791, 1347431778, 1347431763, 1347431759, 1347431721, 1347431702, 1347431696, 1347431689, 1347431686, 1347431683, 1347431646, 1347431635, 1347431606, 1347431601, 1347431595, 1347431590, 1347431587, 1347431584, 1347431564, 1347431561, 1347431554, 1347431548, 1347431546, 1347431542, 1347431513, 1347431508, 1347431504, 1347431500, 1347431475, 1347431470, 1347431465, 1347431461, 1347431451, 1347431407, 1347431404, 1347431401, 1347431376, 1347431373, 1347431367, 1347431359, 1347431352, 1347431320, 1347431316, 1347431306, 1347431299, 1347431295]} ##### 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.016696453094482422 #### 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 Wed Mar 26 06:45:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21719546) 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 : 21719546 get user id for portfolio 21719546 get sub ptf for main ptf 21719546, type 3726 and hashtags ['plastique', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'kraft', 'mal_croppe', 'cartonnette', 'metal', 'environnement', 'flou', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21719546 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','kraft','mal_croppe','cartonnette','metal','environnement','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21719546 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','kraft','mal_croppe','cartonnette','metal','environnement','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21719546, 'sub_port_id': 21719595, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247279, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'cartonnette': {'main_port_id': 21719546, 'sub_port_id': 21719596, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247280, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'mal_croppe': {'main_port_id': 21719546, 'sub_port_id': 21719597, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247281, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21719546, 'sub_port_id': 21719598, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247282, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'papier': {'main_port_id': 21719546, 'sub_port_id': 21719599, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247283, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'kraft': {'main_port_id': 21719546, 'sub_port_id': 21719600, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247284, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'plastique': {'main_port_id': 21719546, 'sub_port_id': 21719601, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247285, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'autre_refus': {'main_port_id': 21719546, 'sub_port_id': 21719602, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247286, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'Carton_brun': {'main_port_id': 21719546, 'sub_port_id': 21719603, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247287, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'metal': {'main_port_id': 21719546, 'sub_port_id': 21719604, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247288, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'flou': {'main_port_id': 21719546, 'sub_port_id': 21719605, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247289, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}, 'environnement': {'main_port_id': 21719546, 'sub_port_id': 21719606, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247290, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21719595 , 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=21719546 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 (21719595) result : ((1347431439,), (1347431449,), (1347431614,), (1347431615,), (1347431623,), (1347431624,), (1347431647,), (1347431771,), (1347431781,), (1347431846,), (1347431847,), (1347431946,), (1347431947,), (1347431948,), (1347431949,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719596 , 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=21719546 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 (21719596) result : ((1347431444,), (1347431452,), (1347431453,), (1347431454,), (1347431648,), (1347431650,), (1347431651,), (1347431774,), (1347431779,), (1347431780,), (1347431849,), (1347431966,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719597 , 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=21719546 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 (21719597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719598 , 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=21719546 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 (21719598) result : ((1347431433,), (1347431434,), (1347431435,), (1347431440,), (1347431441,), (1347431442,), (1347431610,), (1347431611,), (1347431612,), (1347431636,), (1347431638,), (1347431639,), (1347431640,), (1347431641,), (1347431642,), (1347431643,), (1347431645,), (1347431762,), (1347431764,), (1347431765,), (1347431766,), (1347431769,), (1347431770,), (1347431817,), (1347431909,), (1347431939,), (1347431940,), (1347431941,), (1347431942,), (1347431943,), (1347431961,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719599 , 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=21719546 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 (21719599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719600 , 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=21719546 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 (21719600) result : ((1347431792,), (1347431851,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719601 , 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=21719546 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 (21719601) result : ((1347431458,), (1347431459,), (1347431654,), (1347431786,), (1347431787,), (1347431789,), (1347431790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719602 , 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=21719546 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 (21719602) result : ((1347431437,), (1347431438,), (1347431445,), (1347431446,), (1347431505,), (1347431613,), (1347431768,), (1347431775,), (1347431776,), (1347431777,), (1347431944,), (1347431945,), (1347431962,), (1347431963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719603 , 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=21719546 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 (21719603) result : ((1347431448,), (1347431450,), (1347431455,), (1347431456,), (1347431616,), (1347431617,), (1347431618,), (1347431625,), (1347431652,), (1347431782,), (1347431783,), (1347431784,), (1347431785,), (1347431819,), (1347431850,), (1347431951,), (1347431952,), (1347431953,), (1347431954,), (1347431955,), (1347431968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719604 , 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=21719546 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 (21719604) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719605 , 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=21719546 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 (21719605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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 21719606 , 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=21719546 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 (21719606) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21719546) result : ((1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) 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 (1347431500) 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`=21719546 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','kraft','mal_croppe','cartonnette','metal','environnement','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21719546 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','kraft','mal_croppe','cartonnette','metal','environnement','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21719546, 'sub_port_id': 21719607, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247291, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'cartonnette': {'main_port_id': 21719546, 'sub_port_id': 21719608, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247292, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'mal_croppe': {'main_port_id': 21719546, 'sub_port_id': 21719609, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247293, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21719546, 'sub_port_id': 21719610, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247294, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'papier': {'main_port_id': 21719546, 'sub_port_id': 21719611, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247295, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'kraft': {'main_port_id': 21719546, 'sub_port_id': 21719612, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247296, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'plastique': {'main_port_id': 21719546, 'sub_port_id': 21719613, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247297, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'autre_refus': {'main_port_id': 21719546, 'sub_port_id': 21719614, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247298, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'Carton_brun': {'main_port_id': 21719546, 'sub_port_id': 21719615, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247299, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'metal': {'main_port_id': 21719546, 'sub_port_id': 21719616, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247300, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'flou': {'main_port_id': 21719546, 'sub_port_id': 21719617, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247301, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}, 'environnement': {'main_port_id': 21719546, 'sub_port_id': 21719618, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14247302, 'last_updated_at': datetime.datetime(2025, 3, 26, 6, 43, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 6, 43, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 6, 35, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21719618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21719606 lien utilise dans velours : https://www.fotonower.com/velours/21719607,21719608,21719609,21719610,21719611,21719612,21719613,21719614,21719615,21719616,21719617,21719618?tags=Carton_gris,cartonnette,mal_croppe,Teint_Dans_La_Masse,papier,kraft,plastique,autre_refus,Carton_brun,metal,flou,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21719546]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] map_info['map_portfolio_photo'] : {21719546: [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911, 1347431876, 1347431870, 1347431867, 1347431862, 1347431838, 1347431833, 1347431828, 1347431821, 1347431816, 1347431814, 1347431791, 1347431778, 1347431763, 1347431759, 1347431721, 1347431702, 1347431696, 1347431689, 1347431686, 1347431683, 1347431646, 1347431635, 1347431606, 1347431601, 1347431595, 1347431590, 1347431587, 1347431584, 1347431564, 1347431561, 1347431554, 1347431548, 1347431546, 1347431542, 1347431513, 1347431508, 1347431504, 1347431500, 1347431475, 1347431470, 1347431465, 1347431461, 1347431451, 1347431407, 1347431404, 1347431401, 1347431376, 1347431373, 1347431367, 1347431359, 1347431352, 1347431320, 1347431316, 1347431306, 1347431299, 1347431295]} final : False mtd_id 4302 list_pids : [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] Looping around the photos to save general results len do output : 1 /21719546. 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, '2691756') ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21719546', "{'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606}", None, None, None, None, '2691756'), ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756')] time used for this insertion : 0.013651609420776367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5943257808685303 time spend to save output : 0.013907909393310547 total time spend for step 1 : 0.6082336902618408 step2:final Wed Mar 26 06:45:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21719546) 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 21719546 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347431320,1347431316,1347431306,1347431299,1347431295,1347431376,1347431373,1347431367,1347431359,1347431352,1347431407,1347431404,1347431401,1347431475,1347431470,1347431465,1347431461,1347431451,1347431513,1347431508,1347431504,1347431500,1347431564,1347431561,1347431554,1347431548,1347431546,1347431542,1347431606,1347431601,1347431595,1347431590,1347431587,1347431584,1347431646,1347431635,1347431702,1347431696,1347431689,1347431686,1347431683,1347431791,1347431778,1347431763,1347431759,1347431721,1347431838,1347431833,1347431828,1347431821,1347431816,1347431814,1347431876,1347431870,1347431867,1347431862,1347431928,1347431923,1347431920,1347431915,1347431913,1347431911,1347431992,1347431986,1347431978,1347431974,1347431970); 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([21719546]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} new output for save of step final : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] map_info['map_portfolio_photo'] : {21719546: [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911, 1347431876, 1347431870, 1347431867, 1347431862, 1347431838, 1347431833, 1347431828, 1347431821, 1347431816, 1347431814, 1347431791, 1347431778, 1347431763, 1347431759, 1347431721, 1347431702, 1347431696, 1347431689, 1347431686, 1347431683, 1347431646, 1347431635, 1347431606, 1347431601, 1347431595, 1347431590, 1347431587, 1347431584, 1347431564, 1347431561, 1347431554, 1347431548, 1347431546, 1347431542, 1347431513, 1347431508, 1347431504, 1347431500, 1347431475, 1347431470, 1347431465, 1347431461, 1347431451, 1347431407, 1347431404, 1347431401, 1347431376, 1347431373, 1347431367, 1347431359, 1347431352, 1347431320, 1347431316, 1347431306, 1347431299, 1347431295]} final : False mtd_id 4302 list_pids : [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] Looping around the photos to save general results len do output : 11 /1347431992.Didn't retrieve data . /1347431986.Didn't retrieve data . /1347431978.Didn't retrieve data . /1347431974.Didn't retrieve data . /1347431970.Didn't retrieve data . /1347431928.Didn't retrieve data . /1347431923.Didn't retrieve data . /1347431920.Didn't retrieve data . /1347431915.Didn't retrieve data . /1347431913.Didn't retrieve data . /1347431911.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, '2691756') ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21719546', '1347431992', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431986', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431978', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431974', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431970', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431928', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431923', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431920', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431915', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431913', '0.03556920383210427', None, None, None, None, '2691756'), ('4302', '21719546', '1347431911', '0.03556920383210427', None, None, None, None, '2691756')] time used for this insertion : 0.01649641990661621 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07598686218261719 time spend to save output : 0.017030000686645508 total time spend for step 2 : 0.0930168628692627 step3:velours_tree Wed Mar 26 06:45:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21719546: [{'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606}]} input_args_next_step : {21719546: ()} output_args : {21719546: [{'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606}]} args : 21719546 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21719546) 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([21719546]) 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.26405882835388184 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.26410746574401855 step4:send_mail_cod Wed Mar 26 06:45:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} input_args_next_step : {1347431992: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431992 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431986 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431978 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431974 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431970 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431928 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431923 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431920 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431915 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431913 depend.output_id : 0 input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ()} output_args : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',)} args : 1347431911 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 : {21719546: [{'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606}]} input_args_next_step : {1347431992: ('0.03556920383210427',), 1347431986: ('0.03556920383210427',), 1347431978: ('0.03556920383210427',), 1347431974: ('0.03556920383210427',), 1347431970: ('0.03556920383210427',), 1347431928: ('0.03556920383210427',), 1347431923: ('0.03556920383210427',), 1347431920: ('0.03556920383210427',), 1347431915: ('0.03556920383210427',), 1347431913: ('0.03556920383210427',), 1347431911: ('0.03556920383210427',), 21719546: ()} output_args : {21719546: [{'Carton_gris': 21719595, 'cartonnette': 21719596, 'mal_croppe': 21719597, 'Teint_Dans_La_Masse': 21719598, 'papier': 21719599, 'kraft': 21719600, 'plastique': 21719601, 'autre_refus': 21719602, 'Carton_brun': 21719603, 'metal': 21719604, 'flou': 21719605, 'environnement': 21719606}]} args : 21719546 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.03556920383210427',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21719546) 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 (1347431992,1347431986,1347431978,1347431974,1347431970,1347431928,1347431923,1347431920,1347431915,1347431913,1347431911) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347431911 begin to download photo : 1347431920 begin to download photo : 1347431970 begin to download photo : 1347431986 download finish for photo 1347431970 begin to download photo : 1347431974 download finish for photo 1347431920 begin to download photo : 1347431923 download finish for photo 1347431911 begin to download photo : 1347431913 download finish for photo 1347431986 begin to download photo : 1347431992 download finish for photo 1347431923 begin to download photo : 1347431928 download finish for photo 1347431974 begin to download photo : 1347431978 download finish for photo 1347431992 download finish for photo 1347431913 begin to download photo : 1347431915 download finish for photo 1347431978 download finish for photo 1347431928 download finish for photo 1347431915 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21719546_26-03-2025_06_46_00.pdf 21719596 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=21719596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431444: '1742967281_3184786_1347431373_0c3ca332b15d818bedfeb294861b9365_rle_crop_3730812172_0.png', 1347431452: '1742967272_1448536_1347431320_86c33c6b34eca1251b821185b41acf27_rle_crop_3730812238_0.png', 1347431453: '1742967272_1448536_1347431320_86c33c6b34eca1251b821185b41acf27_rle_crop_3730812236_0.png', 1347431454: '1742967272_1448536_1347431295_de0925689b71271d9261b32705bdfde1_rle_crop_3730812303_0.png', 1347431648: '1742967524_3187655_1347431513_b50e3cd993b2d54b431f7f4ff3c63172_rle_crop_3730812862_0.png', 1347431650: '1742967524_3187655_1347431465_8119f8c586d283955360bb52d2050f06_rle_crop_3730812888_0.png', 1347431651: '1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812912_0.png', 1347431774: '1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813277_0.png', 1347431779: '1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813281_0.png', 1347431780: '1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813330_0.png', 1347431849: '1742967733_1452161_1347431686_68b630e86e035dce99fc34e6d9b7fc41_rle_crop_3730813561_0.png', 1347431966: '1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813967_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7074bc15a1001a72468a4f892d3cfaf0_46815893.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/169165878fc1bb89c0d6f489bfbc745a_33678975.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/12c65db6e921e4eb570dd1b68c15f324_99275236.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aed602add3e8711e02083b275cfd2235_8513456.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6ef3e9d5d4eb9c5f021c05043f7926a2_46757977.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/be15570e1796cec46c7eedab8fd3d149_99015902.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b14187fc4fe0518c265ce647e24a4e94_76115438.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/968429aca97cf86bb5dd5b2c82577a69_29076374.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e5fcfeb4dfc348927f01d677c3c4c4b5_51249501.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9f9bf5d150efa62d9c098b0592b8f62e_98215902.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c6743b22c88ee0ef3e22b80e5a8a4f03_33492498.png change filename to text .imagette217195961742967960/ imagette217195961742967960/1742967733_1452161_1347431686_68b630e86e035dce99fc34e6d9b7fc41_rle_crop_3730813561_0.png.png imagette217195961742967960/1742967524_3187655_1347431513_b50e3cd993b2d54b431f7f4ff3c63172_rle_crop_3730812862_0.png.png imagette217195961742967960/1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812912_0.png.png imagette217195961742967960/1742967524_3187655_1347431465_8119f8c586d283955360bb52d2050f06_rle_crop_3730812888_0.png.png imagette217195961742967960/1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813967_0.png.png imagette217195961742967960/1742967272_1448536_1347431295_de0925689b71271d9261b32705bdfde1_rle_crop_3730812303_0.png.png imagette217195961742967960/1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813277_0.png.png imagette217195961742967960/1742967281_3184786_1347431373_0c3ca332b15d818bedfeb294861b9365_rle_crop_3730812172_0.png.png imagette217195961742967960/1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813281_0.png.png imagette217195961742967960/1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813330_0.png.png imagette217195961742967960/1742967272_1448536_1347431320_86c33c6b34eca1251b821185b41acf27_rle_crop_3730812236_0.png.png imagette217195961742967960/1742967272_1448536_1347431320_86c33c6b34eca1251b821185b41acf27_rle_crop_3730812238_0.png.png imagette217195971742967960/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/43c10b69896dd27ae3527d724e0a32b9_52273906.png imagette217195961742967960 21719597 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=21719597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217195971742967960 21719600 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=21719600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431792: '1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813260_0.png', 1347431851: '1742967733_1452161_1347431683_2948e52869a3f78ee084164c1c39e0f2_rle_crop_3730813581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c60251e3338e5a06141af05cd703393e_11517273.png change filename to text .imagette217196001742967960/ imagette217196001742967960/1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813260_0.png.png imagette217196001742967960/1742967733_1452161_1347431683_2948e52869a3f78ee084164c1c39e0f2_rle_crop_3730813581_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4dbb19b1ffee4c8f842ab05b1a40b789_69773298.png imagette217196001742967960 21719601 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=21719601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431458: '1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812260_0.png', 1347431459: '1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812258_0.png', 1347431654: '1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812914_0.png', 1347431786: '1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813269_0.png', 1347431787: '1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813280_0.png', 1347431789: '1742967651_1451425_1347431561_68f51489d5e04d5eb71154e776349c93_rle_crop_3730813322_0.png', 1347431790: '1742967651_1451425_1347431548_8530e23983bb934e1392c81bcd7a9936_rle_crop_3730813366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0c921f5db57e9ad9a05ad7f377504645_90695422.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e9044a1805dc0d3f9bc74415a9dc6bfc_66427352.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d8c634dc9bca1ca93cd2f9d5dfacd4d8_65735823.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3d621700896946ba976dc0d8899db44f_54879641.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f447007c1a1da99a044602714408858a_31829681.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/13430b490afebc02bc1fb56e517ff150_59868635.png change filename to text .imagette217196011742967960/ imagette217196011742967960/1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813269_0.png.png imagette217196011742967960/1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812258_0.png.png imagette217196011742967960/1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812260_0.png.png imagette217196011742967960/1742967651_1451425_1347431561_68f51489d5e04d5eb71154e776349c93_rle_crop_3730813322_0.png.png imagette217196011742967960/1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812914_0.png.png imagette217196011742967960/1742967643_3190349_1347431595_a6f48390133cc4e03efa7c09037c1895_rle_crop_3730813280_0.png.png imagette217196011742967960/1742967651_1451425_1347431548_8530e23983bb934e1392c81bcd7a9936_rle_crop_3730813366_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b66e5e054425961cb091fe0472473660_74667526.png imagette217196011742967960 21719602 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=21719602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431437: '1742967281_3184786_1347431373_0c3ca332b15d818bedfeb294861b9365_rle_crop_3730812174_0.png', 1347431438: '1742967281_3184786_1347431359_d3fff539ef49dbac9bb9941ef4912255_rle_crop_3730812246_0.png', 1347431445: '1742967272_1448536_1347431376_0267be35a5eaf9e6f9d326b61e0871b8_rle_crop_3730812191_0.png', 1347431446: '1742967272_1448536_1347431295_de0925689b71271d9261b32705bdfde1_rle_crop_3730812305_0.png', 1347431505: '1742967353_1449280_1347431404_a7f3b6657d29ff21a08d267283e99c2d_rle_crop_3730812451_0.png', 1347431613: '1742967491_1450389_1347431500_30cedeed14b9b821ecafec9b5d159798_rle_crop_3730812666_0.png', 1347431768: '1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813262_0.png', 1347431775: '1742967651_1451425_1347431554_744217175cadf08bda0d088ff2f1c0ce_rle_crop_3730813354_0.png', 1347431776: '1742967651_1451425_1347431554_744217175cadf08bda0d088ff2f1c0ce_rle_crop_3730813360_0.png', 1347431777: '1742967651_1451425_1347431548_8530e23983bb934e1392c81bcd7a9936_rle_crop_3730813369_0.png', 1347431944: '1742967851_1453012_1347431821_71eecd0e13d1d67a288715dc6c06979e_rle_crop_3730813797_0.png', 1347431945: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813836_0.png', 1347431962: '1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813968_0.png', 1347431963: '1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3c23696644200e218be2eb211b198620_53619603.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c54d91901266be5b473eeb05a08b85f3_17668592.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4580700c86e50bed5d4cff56629f0002_67893542.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1edcfe1fc2fc309c388de0f2d8cf430f_36979639.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/28c48a263131e822bf782e6c8d993b9d_25368705.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2aadf79777e28b49a02f38695111baa0_64141034.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4ea053cbe6bded7c6f01335dfcb6eef3_4601226.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0f3cd85c68f84966bf4b40c8c45ebb01_18299765.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e80b19b13cf7c6d6d807f3fbd192bae6_44747447.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a4aec71c8243ff57f62dfcae0f4b3380_98996599.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/48b30be99b71db50c3688c723457225e_15580024.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4ae469ace8fc6bb89a21e8f47e1dfcfe_34196757.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/78f083c0d9b6f3c42f652ebab745a367_47385400.png change filename to text .imagette217196021742967961/ imagette217196021742967961/1742967651_1451425_1347431548_8530e23983bb934e1392c81bcd7a9936_rle_crop_3730813369_0.png.png imagette217196021742967961/1742967281_3184786_1347431373_0c3ca332b15d818bedfeb294861b9365_rle_crop_3730812174_0.png.png imagette217196021742967961/1742967491_1450389_1347431500_30cedeed14b9b821ecafec9b5d159798_rle_crop_3730812666_0.png.png imagette217196021742967961/1742967851_1453012_1347431821_71eecd0e13d1d67a288715dc6c06979e_rle_crop_3730813797_0.png.png imagette217196021742967961/1742967281_3184786_1347431359_d3fff539ef49dbac9bb9941ef4912255_rle_crop_3730812246_0.png.png imagette217196021742967961/1742967643_3190349_1347431601_44f1ec54eb3f24049e2b10e4f1d75a92_rle_crop_3730813262_0.png.png imagette217196021742967961/1742967651_1451425_1347431554_744217175cadf08bda0d088ff2f1c0ce_rle_crop_3730813354_0.png.png imagette217196021742967961/1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813968_0.png.png imagette217196021742967961/1742967353_1449280_1347431404_a7f3b6657d29ff21a08d267283e99c2d_rle_crop_3730812451_0.png.png imagette217196021742967961/1742967272_1448536_1347431376_0267be35a5eaf9e6f9d326b61e0871b8_rle_crop_3730812191_0.png.png imagette217196021742967961/1742967883_3193335_1347431759_1d935c0f79261a23baaf3779a1cdc976_rle_crop_3730813966_0.png.png imagette217196021742967961/1742967272_1448536_1347431295_de0925689b71271d9261b32705bdfde1_rle_crop_3730812305_0.png.png imagette217196021742967961/1742967651_1451425_1347431554_744217175cadf08bda0d088ff2f1c0ce_rle_crop_3730813360_0.png.png imagette217196021742967961/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813836_0.png.png imagette217196041742967962/ imagette217196051742967962/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/66b1c03ef51d10ce0d132e74bba96d18_54709481.png imagette217196021742967961 21719604 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=21719604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217196041742967962 21719605 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=21719605 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217196051742967962 21719595 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=21719595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431439: '1742967281_3184786_1347431352_2108da8eb30c4d453f4d9a1eddb5842f_rle_crop_3730812272_0.png', 1347431449: '1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812261_0.png', 1347431614: '1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812638_0.png', 1347431615: '1742967491_1450389_1347431500_30cedeed14b9b821ecafec9b5d159798_rle_crop_3730812668_0.png', 1347431623: '1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812708_0.png', 1347431624: '1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812719_0.png', 1347431647: '1742967524_3187655_1347431513_b50e3cd993b2d54b431f7f4ff3c63172_rle_crop_3730812866_0.png', 1347431771: '1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813346_0.png', 1347431781: '1742967651_1451425_1347431546_23864cb74b8542d664e6ddf40250f71e_rle_crop_3730813374_0.png', 1347431846: '1742967733_1452161_1347431689_469699f465fedab19da41530a15e2c3a_rle_crop_3730813552_0.png', 1347431847: '1742967733_1452161_1347431689_469699f465fedab19da41530a15e2c3a_rle_crop_3730813550_0.png', 1347431946: '1742967851_1453012_1347431833_521a5ae7287e4e038206ecf67a845284_rle_crop_3730813773_0.png', 1347431947: '1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813820_0.png', 1347431948: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813829_0.png', 1347431949: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/750cbc9befedcd6a5f64804ea0643e4d_48937866.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2ae9e345eface6ce3fd6e47c85168cf5_24058263.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fcca795ec5b8d658747cdf81c68c41d9_50477131.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b15522ed539fe2bc4839639b95ebf9e1_24808746.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9c308fb1c1028e8739b71b69188be328_14110257.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7cebbea435897a313de1095a8cb9938d_75306367.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3924a40317d4d5b2d5febe3bdaac104a_38266669.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6d2047af0a890b7937657a02fee8a910_30693276.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3bceb91a655c09a772498d58eff5a31f_70974672.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d6fe63ef6d9b1ab037dd16db7a75f349_71581104.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4f457bfbd4287d164370c43d787f7b24_54558731.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e1ba78f205e42339a524d48dfc08f064_20515682.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/83a226e1871ebfe7b8d0a63023a373b9_81677072.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/41e3c8a81163735f7528939fddcd11db_80951034.png change filename to text .imagette217195951742967962/ imagette217195951742967962/1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812719_0.png.png imagette217195951742967962/1742967491_1450389_1347431500_30cedeed14b9b821ecafec9b5d159798_rle_crop_3730812668_0.png.png imagette217195951742967962/1742967851_1453012_1347431833_521a5ae7287e4e038206ecf67a845284_rle_crop_3730813773_0.png.png imagette217195951742967962/1742967281_3184786_1347431352_2108da8eb30c4d453f4d9a1eddb5842f_rle_crop_3730812272_0.png.png imagette217195951742967962/1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812708_0.png.png imagette217195951742967962/1742967733_1452161_1347431689_469699f465fedab19da41530a15e2c3a_rle_crop_3730813550_0.png.png imagette217195951742967962/1742967651_1451425_1347431546_23864cb74b8542d664e6ddf40250f71e_rle_crop_3730813374_0.png.png imagette217195951742967962/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813831_0.png.png imagette217195951742967962/1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813346_0.png.png imagette217195951742967962/1742967733_1452161_1347431689_469699f465fedab19da41530a15e2c3a_rle_crop_3730813552_0.png.png imagette217195951742967962/1742967524_3187655_1347431513_b50e3cd993b2d54b431f7f4ff3c63172_rle_crop_3730812866_0.png.png imagette217195951742967962/1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812261_0.png.png imagette217195951742967962/1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812638_0.png.png imagette217195951742967962/1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813820_0.png.png imagette217195951742967962/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813829_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/97770399f7dc9157cf6f1ef036316c51_79810721.png imagette217195951742967962 21719598 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=21719598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431643: '1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812916_0.png', 1347431961: '1742967883_3193335_1347431763_ebfcf8baf78f096158bd3127d753b740_rle_crop_3730813950_0.png', 1347431943: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813835_0.png', 1347431942: '1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813822_0.png', 1347431941: '1742967851_1453012_1347431828_130ecef6d3981d0778d3edb43eefa666_rle_crop_3730813787_0.png', 1347431940: '1742967851_1453012_1347431828_130ecef6d3981d0778d3edb43eefa666_rle_crop_3730813785_0.png', 1347431939: '1742967851_1453012_1347431833_521a5ae7287e4e038206ecf67a845284_rle_crop_3730813776_0.png', 1347431909: '1742967833_1452848_1347431791_130a892bd7dd5ab133ed447cccb1217b_rle_crop_3730813610_0.png', 1347431817: '1742967712_1451914_1347431702_6c90860898e3f09c8cbb3f56405bbd9e_rle_crop_3730813449_0.png', 1347431770: '1742967651_1451425_1347431542_300da593bfd357bce6252eb29aa0022c_rle_crop_3730813392_0.png', 1347431769: '1742967651_1451425_1347431546_23864cb74b8542d664e6ddf40250f71e_rle_crop_3730813379_0.png', 1347431766: '1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813343_0.png', 1347431765: '1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813336_0.png', 1347431764: '1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813332_0.png', 1347431762: '1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813335_0.png', 1347431645: '1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812913_0.png', 1347431433: '1742967281_3184786_1347431367_bf37ed1995461526163e70929e7e68db_rle_crop_3730812205_0.png', 1347431642: '1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812903_0.png', 1347431641: '1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812907_0.png', 1347431640: '1742967524_3187655_1347431465_8119f8c586d283955360bb52d2050f06_rle_crop_3730812890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aba12e68ef2b4a642f3f3ef55eb1058b_36565729.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/780f80de3f3cd3f0b1115e1f83214a88_40520628.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/96546916ad0ea8f03af09d2d2e270a2e_39203245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cfea4a57683f6d52cd1aef12ab7b21cd_29740587.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9fc03fa1cbcdabef38b41cfd8a50ab7f_15305156.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/60593a5a2e3450d0c5e1dc09311aaec2_8606209.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/01df89a765ecb0846ad52d526691f01b_20449469.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/aa30605a085b8549c3ca416517d01bb4_51998064.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1454df05e5f92409c58743dec0b99e78_91970343.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d944e0e311a86d1f1ec97c2ef28892c1_28859633.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f8355d8507957f95a8a086552e3badf1_48345464.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/34e85070993705c87fd8c4443bf6094e_75307153.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2ecfc0438aeab1c677cf437d9fd2b685_95917504.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cf57f90ab6128e44b4523f000dd5acaf_76041872.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b9f9654dd74f4392470f236181fa3a87_63492591.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3cc2295bc8aa979077e3153b623f7020_35419212.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7fdc470f640c69db5801038764ee0de6_22142418.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2f55db6cfca9e92e8e9452f9e44fba05_36195916.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/04e8d76c281d584f05acf98e2f6f7c12_61484982.png change filename to text .imagette217195981742967963/ imagette217195981742967963/1742967851_1453012_1347431828_130ecef6d3981d0778d3edb43eefa666_rle_crop_3730813787_0.png.png imagette217195981742967963/1742967651_1451425_1347431542_300da593bfd357bce6252eb29aa0022c_rle_crop_3730813392_0.png.png imagette217195981742967963/1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812916_0.png.png imagette217195981742967963/1742967833_1452848_1347431791_130a892bd7dd5ab133ed447cccb1217b_rle_crop_3730813610_0.png.png imagette217195981742967963/1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813335_0.png.png imagette217195981742967963/1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812903_0.png.png imagette217195981742967963/1742967281_3184786_1347431367_bf37ed1995461526163e70929e7e68db_rle_crop_3730812205_0.png.png imagette217195981742967963/1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812907_0.png.png imagette217195981742967963/1742967883_3193335_1347431763_ebfcf8baf78f096158bd3127d753b740_rle_crop_3730813950_0.png.png imagette217195981742967963/1742967524_3187655_1347431465_8119f8c586d283955360bb52d2050f06_rle_crop_3730812890_0.png.png imagette217195981742967963/1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813332_0.png.png imagette217195981742967963/1742967712_1451914_1347431702_6c90860898e3f09c8cbb3f56405bbd9e_rle_crop_3730813449_0.png.png imagette217195981742967963/1742967651_1451425_1347431546_23864cb74b8542d664e6ddf40250f71e_rle_crop_3730813379_0.png.png imagette217195981742967963/1742967524_3187655_1347431451_4b6997a8e9b61228d80a7bae31c72323_rle_crop_3730812913_0.png.png imagette217195981742967963/1742967643_3190349_1347431587_c1611c29856ed603241cd65c2936dad8_rle_crop_3730813336_0.png.png imagette217195981742967963/1742967851_1453012_1347431828_130ecef6d3981d0778d3edb43eefa666_rle_crop_3730813785_0.png.png imagette217195981742967963/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813835_0.png.png imagette217195981742967963/1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813343_0.png.png imagette217195981742967963/1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813822_0.png.png imagette217195981742967963/1742967851_1453012_1347431833_521a5ae7287e4e038206ecf67a845284_rle_crop_3730813776_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/774b8566a1c55ff4a7b0e213d801e103_88091420.png imagette217195981742967963 21719603 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=21719603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347431783: '1742967651_1451425_1347431606_74842fb0a4ab8db775234e3e51650c43_rle_crop_3730813315_0.png', 1347431968: '1742967883_3193335_1347431763_ebfcf8baf78f096158bd3127d753b740_rle_crop_3730813956_0.png', 1347431955: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813830_0.png', 1347431954: '1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813839_0.png', 1347431953: '1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813813_0.png', 1347431952: '1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813817_0.png', 1347431951: '1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813816_0.png', 1347431850: '1742967733_1452161_1347431686_68b630e86e035dce99fc34e6d9b7fc41_rle_crop_3730813564_0.png', 1347431819: '1742967712_1451914_1347431702_6c90860898e3f09c8cbb3f56405bbd9e_rle_crop_3730813446_0.png', 1347431785: '1742967651_1451425_1347431542_300da593bfd357bce6252eb29aa0022c_rle_crop_3730813391_0.png', 1347431784: '1742967651_1451425_1347431561_68f51489d5e04d5eb71154e776349c93_rle_crop_3730813323_0.png', 1347431448: '1742967281_3184786_1347431367_bf37ed1995461526163e70929e7e68db_rle_crop_3730812201_0.png', 1347431782: '1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813340_0.png', 1347431652: '1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812906_0.png', 1347431625: '1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812711_0.png', 1347431618: '1742967491_1450389_1347431504_383e99d3af7224ff11a985a2f3bf8a05_rle_crop_3730812658_0.png', 1347431617: '1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812641_0.png', 1347431616: '1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812642_0.png', 1347431456: '1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812262_0.png', 1347431455: '1742967272_1448536_1347431376_0267be35a5eaf9e6f9d326b61e0871b8_rle_crop_3730812190_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/152d459b592b273ddd4973b73491868e_4180454.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/dd9365c579a0e4bb4423ca83d6795af7_10699549.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0248d9976f490df7791edbbf2df7da97_30133722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ef037c1b590417b4613c8fb92c9dd11b_50566869.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e494726f3e259f7a3bc0bb8fd2b89897_28618620.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/27395b0838a4621e869498ee5adc7a77_82439063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1d895ca4ae6f7d866286ee6e3cfdb543_66061480.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/85ece478573212e5d65ccd870c886ab8_50445975.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e02e7a0a4cceafec0a206eaa281df8f5_52193617.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/54c7bd3eaa19d628d38b784b5123891a_91748983.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/367079d8177e82543ac5a2e15e8cbe00_14873745.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/124e026d8dad3c0fde9a55c39dce57aa_94601704.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/af09776c494d95f478828bb0261069aa_54335341.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e9ce5f4e0688d305d053e186bf70d10b_86145733.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6f1e17eba51caca80f07b8674dd1d9c5_15098474.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c9676c871c4f94dad8622e32b6d406d5_27957486.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f1ef421af4a003331182dc326f58ad3f_87978886.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/288ffda4d07a98579efc9e15102e11b2_94127178.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7ff4edff36f8e70bbbaf9f5e45568fac_20640908.png change filename to text .imagette217196031742967964/ imagette217196031742967964/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813839_0.png.png imagette217196031742967964/1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813816_0.png.png imagette217196031742967964/1742967883_3193335_1347431763_ebfcf8baf78f096158bd3127d753b740_rle_crop_3730813956_0.png.png imagette217196031742967964/1742967511_1450513_1347431475_8c81e3ef11d70e36f88968a7b1f68216_rle_crop_3730812711_0.png.png imagette217196031742967964/1742967281_3184786_1347431367_bf37ed1995461526163e70929e7e68db_rle_crop_3730812201_0.png.png imagette217196031742967964/1742967651_1451425_1347431561_68f51489d5e04d5eb71154e776349c93_rle_crop_3730813323_0.png.png imagette217196031742967964/1742967651_1451425_1347431542_300da593bfd357bce6252eb29aa0022c_rle_crop_3730813391_0.png.png imagette217196031742967964/1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813813_0.png.png imagette217196031742967964/1742967712_1451914_1347431702_6c90860898e3f09c8cbb3f56405bbd9e_rle_crop_3730813446_0.png.png imagette217196031742967964/1742967851_1453012_1347431816_459493a830af13721e330f58217ebaee_rle_crop_3730813817_0.png.png imagette217196031742967964/1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812641_0.png.png imagette217196031742967964/1742967733_1452161_1347431686_68b630e86e035dce99fc34e6d9b7fc41_rle_crop_3730813564_0.png.png imagette217196031742967964/1742967272_1448536_1347431376_0267be35a5eaf9e6f9d326b61e0871b8_rle_crop_3730812190_0.png.png imagette217196031742967964/1742967651_1451425_1347431606_74842fb0a4ab8db775234e3e51650c43_rle_crop_3730813315_0.png.png imagette217196031742967964/1742967851_1453012_1347431814_35299f7fe28eda6a3ed8a3cab1acfde1_rle_crop_3730813830_0.png.png imagette217196031742967964/1742967272_1448536_1347431316_a5df28135a6624fba1bf117d95005fdb_rle_crop_3730812262_0.png.png imagette217196031742967964/1742967643_3190349_1347431584_d6a55a8e66ad7e06c81cc0022daae63d_rle_crop_3730813340_0.png.png imagette217196031742967964/1742967524_3187655_1347431461_4d39adda23088339e6480b0154f56406_rle_crop_3730812906_0.png.png imagette217196031742967964/1742967491_1450389_1347431508_2833884bff86b2e9b7150c8791934c0e_rle_crop_3730812642_0.png.png imagette217196031742967964/1742967491_1450389_1347431504_383e99d3af7224ff11a985a2f3bf8a05_rle_crop_3730812658_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6fb353c4076e70c3d3ce6c409d2d63bd_23866796.png imagette217196031742967964 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21719546 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21719607,21719608,21719609,21719610,21719611,21719612,21719613,21719614,21719615,21719616,21719617,21719618?tags=Carton_gris,cartonnette,mal_croppe,Teint_Dans_La_Masse,papier,kraft,plastique,autre_refus,Carton_brun,metal,flou,environnement your option no_mail is active, we will not send the real mail to your client args[1347431992] : ('0.03556920383210427',) no score found for photo 1347431992 We are sending mail with results at report@fotonower.com args[1347431986] : ('0.03556920383210427',) no score found for photo 1347431986 We are sending mail with results at report@fotonower.com args[1347431978] : ('0.03556920383210427',) no score found for photo 1347431978 We are sending mail with results at report@fotonower.com args[1347431974] : ('0.03556920383210427',) no score found for photo 1347431974 We are sending mail with results at report@fotonower.com args[1347431970] : ('0.03556920383210427',) no score found for photo 1347431970 We are sending mail with results at report@fotonower.com args[1347431928] : ('0.03556920383210427',) no score found for photo 1347431928 We are sending mail with results at report@fotonower.com args[1347431923] : ('0.03556920383210427',) no score found for photo 1347431923 We are sending mail with results at report@fotonower.com args[1347431920] : ('0.03556920383210427',) no score found for photo 1347431920 We are sending mail with results at report@fotonower.com args[1347431915] : ('0.03556920383210427',) no score found for photo 1347431915 We are sending mail with results at report@fotonower.com args[1347431913] : ('0.03556920383210427',) no score found for photo 1347431913 We are sending mail with results at report@fotonower.com args[1347431911] : ('0.03556920383210427',) no score found for photo 1347431911 We are sending mail with results at report@fotonower.com refus_total : 0.03556920383210427 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=21719546 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_P21719546_26-03-2025_06_46_00.pdf results_Auto_P21719546_26-03-2025_06_46_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719546_26-03-2025_06_46_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21719546','results_Auto_P21719546_26-03-2025_06_46_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719546_26-03-2025_06_46_00.pdf','pdf','','0.33','0.03556920383210427') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21719546]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] map_info['map_portfolio_photo'] : {21719546: [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911, 1347431876, 1347431870, 1347431867, 1347431862, 1347431838, 1347431833, 1347431828, 1347431821, 1347431816, 1347431814, 1347431791, 1347431778, 1347431763, 1347431759, 1347431721, 1347431702, 1347431696, 1347431689, 1347431686, 1347431683, 1347431646, 1347431635, 1347431606, 1347431601, 1347431595, 1347431590, 1347431587, 1347431584, 1347431564, 1347431561, 1347431554, 1347431548, 1347431546, 1347431542, 1347431513, 1347431508, 1347431504, 1347431500, 1347431475, 1347431470, 1347431465, 1347431461, 1347431451, 1347431407, 1347431404, 1347431401, 1347431376, 1347431373, 1347431367, 1347431359, 1347431352, 1347431320, 1347431316, 1347431306, 1347431299, 1347431295]} final : False mtd_id 4302 list_pids : [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] 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, '2691756') ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21719546', '1347431992', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756')] time used for this insertion : 0.017858028411865234 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.140329837799072 time spend to save output : 0.018095016479492188 total time spend for step 4 : 7.1584248542785645 step5:split_time_score Wed Mar 26 06:46:06 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 : ['21719546'] 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 : [('21719546',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21719546) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347431986: {'path': 'temp/1742967959_1524796_1347431986_faabd28517b3986c343f5eacc4acda5a.jpg', 'extension': 'jpg'}, 1347431992: {'path': 'temp/1742967959_1524796_1347431992_d04041d36c38ef984c0a65abb1085bcc.jpg', 'extension': 'jpg'}, 1347431970: {'path': 'temp/1742967959_1524796_1347431970_588d5bf22d38016e30f76ff5a80c414e.jpg', 'extension': 'jpg'}, 1347431974: {'path': 'temp/1742967959_1524796_1347431974_77757f1f63dab4a1624881d32209a5ef.jpg', 'extension': 'jpg'}, 1347431978: {'path': 'temp/1742967959_1524796_1347431978_754c683cd7f338bbdc3bdbe2250cb764.jpg', 'extension': 'jpg'}, 1347431920: {'path': 'temp/1742967959_1524796_1347431920_c497d2a862cad943c8f14ff9c3a7f929.jpg', 'extension': 'jpg'}, 1347431923: {'path': 'temp/1742967959_1524796_1347431923_e0c825436aa58e2f2a087f78cdafdd59.jpg', 'extension': 'jpg'}, 1347431928: {'path': 'temp/1742967959_1524796_1347431928_407a323373f1e5407d637fa00c016d47.jpg', 'extension': 'jpg'}, 1347431911: {'path': 'temp/1742967959_1524796_1347431911_b7125fb52e08b60b3813540c5eea42c6.jpg', 'extension': 'jpg'}, 1347431913: {'path': 'temp/1742967959_1524796_1347431913_dabb648eec572f464369cc8785e32799.jpg', 'extension': 'jpg'}, 1347431915: {'path': 'temp/1742967959_1524796_1347431915_682062fbbc8adb8f91a31f9f6e10adda.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 = 21719546; (('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 = 21719546 group by h (('06', 67),) 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=21719546 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 (21719546) 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 (21719546) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21719546 Nombre de photos uploadées : 67 / 23040 (0%) 26032025 21719546 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 26032025 21719546 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1347431320, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/86c33c6b34eca1251b821185b41acf27.jpg', 'username': None, 'uploaded_at': 1742967133, 'text': 'image_26032025_06_30_03_009156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347431316, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a5df28135a6624fba1bf117d95005fdb.jpg', 'username': None, 'uploaded_at': 1742967133, 'text': 'image_26032025_06_30_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347431306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/73a53a727dd05f6fc096721462735599.jpg', 'username': None, 'uploaded_at': 1742967133, 'text': 'image_26032025_06_30_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347431299, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9f4247cb4c7779b131f9f408ad6eb16e.jpg', 'username': None, 'uploaded_at': 1742967133, 'text': 'image_26032025_06_30_34_010140m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030279159545898438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21719546, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.04582929611206055 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697462, 'mtr_portfolio_id': 21718923, 'dashboard_result_id': 9629597, '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_P21718923_26-03-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21718948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21718949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21718950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21718951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21718952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21718953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21718954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21718955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21718957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21718958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21718959, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697462, 'mtr_portfolio_id': 21719113, 'dashboard_result_id': 9629599, '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_P21719113_26-03-2025_06_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719149, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697462, 'mtr_portfolio_id': 21719546, 'dashboard_result_id': 9629600, '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_P21719546_26-03-2025_06_43_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719606, '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 = 21718923 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': 2691710, 'mtr_portfolio_id': 21718923, 'created_at': datetime.datetime(2025, 3, 26, 6, 18, 58), 'result': '0.03558548245261636', 'result_long': None, 'result_double': None}] Qualite : 0.03558548245261636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21718923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21718923_26-03-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21718923 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_P21718923_26-03-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21718948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21718949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21718950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21718951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21718952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21718953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21718954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21718955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21718957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21718958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21718959, 'pht': 3726}}" where mtr_portfolio_id = 21718923 and dashboard_run_id = 1697462 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`=21718923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9629597, 0.03558548245261636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21718923_26-03-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21718948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21718949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21718950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21718951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21718952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21718953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21718954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21718955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21718957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21718958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21718959, '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 = 21719113 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': 2691720, 'mtr_portfolio_id': 21719113, 'created_at': datetime.datetime(2025, 3, 26, 6, 34, 57), 'result': '0.030993241953474745', 'result_long': None, 'result_double': None}] Qualite : 0.030993241953474745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21719113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719113_26-03-2025_06_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21719113 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_P21719113_26-03-2025_06_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719149, 'pht': 3726}}" where mtr_portfolio_id = 21719113 and dashboard_run_id = 1697462 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`=21719113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9629599, 0.030993241953474745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719113_26-03-2025_06_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719149, '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 = 21719546 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': 2691756, 'mtr_portfolio_id': 21719546, 'created_at': datetime.datetime(2025, 3, 26, 6, 45, 59), 'result': '0.03556920383210427', 'result_long': None, 'result_double': None}] Qualite : 0.03556920383210427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21719546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719546_26-03-2025_06_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21719546 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_P21719546_26-03-2025_06_46_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719606, 'pht': 3726}}" where mtr_portfolio_id = 21719546 and dashboard_run_id = 1697462 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`=21719546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9629600, 0.03556920383210427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21719546_26-03-2025_06_46_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21719595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21719596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21719597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21719598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21719599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21719600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21719601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21719602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21719603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21719604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21719605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21719606, '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 (21718923,21719113,21719546) result : ((1347429903,), (1347430374,), (1347430376,), (1347430379,), (1347430383,), (1347430385,), (1347430389,), (1347430421,), (1347430424,), (1347430427,), (1347430433,), (1347430438,), (1347430469,), (1347430472,), (1347430475,), (1347430506,), (1347430508,), (1347430510,), (1347430516,), (1347430520,), (1347430578,), (1347430558,), (1347430562,), (1347430566,), (1347430571,), (1347430574,), (1347430609,), (1347430617,), (1347430626,), (1347430668,), (1347430669,), (1347430670,), (1347430674,), (1347430678,), (1347430684,), (1347430708,), (1347430710,), (1347430712,), (1347430715,), (1347430764,), (1347430766,), (1347430769,), (1347430809,), (1347430812,), (1347430815,), (1347430821,), (1347430864,), (1347430868,), (1347430874,), (1347430877,), (1347430903,), (1347430905,), (1347430907,), (1347430918,), (1347430970,), (1347430973,), (1347430978,), (1347430982,), (1347431010,), (1347431012,), (1347431014,), (1347431018,), (1347431021,), (1347431054,), (1347431056,), (1347431059,), (1347431065,), (1347431070,), (1347431076,), (1347431102,), (1347431105,), (1347431109,), (1347431145,), (1347431148,), (1347431152,), (1347431156,), (1347431159,), (1347431164,), (1347431187,), (1347431190,), (1347431195,), (1347431199,), (1347431201,), (1347431205,), (1347431258,), (1347431261,), (1347431263,), (1347431268,), (1347431327,), (1347431295,), (1347431299,), (1347431306,), (1347431316,), (1347431320,), (1347431352,), (1347431359,), (1347431367,), (1347431373,), (1347431376,), (1347431401,), (1347431404,), (1347431407,), (1347431451,), (1347431461,), (1347431465,), (1347431470,), (1347431475,), (1347431500,), (1347431504,), (1347431508,), (1347431513,), (1347431542,), (1347431546,), (1347431548,), (1347431554,), (1347431561,), (1347431564,), (1347431584,), (1347431587,), (1347431590,), (1347431595,), (1347431601,), (1347431606,), (1347431635,), (1347431646,), (1347431683,), (1347431686,), (1347431689,), (1347431696,), (1347431702,), (1347431721,), (1347431759,), (1347431763,), (1347431778,), (1347431791,), (1347431814,), (1347431816,), (1347431821,), (1347431828,), (1347431833,), (1347431838,), (1347431862,), (1347431867,), (1347431870,), (1347431876,), (1347431911,), (1347431913,), (1347431915,), (1347431920,), (1347431923,), (1347431928,), (1347431970,), (1347431974,), (1347431978,), (1347431986,), (1347431992,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21719546]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] map_info['map_portfolio_photo'] : {21719546: [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911, 1347431876, 1347431870, 1347431867, 1347431862, 1347431838, 1347431833, 1347431828, 1347431821, 1347431816, 1347431814, 1347431791, 1347431778, 1347431763, 1347431759, 1347431721, 1347431702, 1347431696, 1347431689, 1347431686, 1347431683, 1347431646, 1347431635, 1347431606, 1347431601, 1347431595, 1347431590, 1347431587, 1347431584, 1347431564, 1347431561, 1347431554, 1347431548, 1347431546, 1347431542, 1347431513, 1347431508, 1347431504, 1347431500, 1347431475, 1347431470, 1347431465, 1347431461, 1347431451, 1347431407, 1347431404, 1347431401, 1347431376, 1347431373, 1347431367, 1347431359, 1347431352, 1347431320, 1347431316, 1347431306, 1347431299, 1347431295]} final : True mtd_id 4302 list_pids : [1347431992, 1347431986, 1347431978, 1347431974, 1347431970, 1347431928, 1347431923, 1347431920, 1347431915, 1347431913, 1347431911] Looping around the photos to save general results len do output : 1 /21719546Didn'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, '2691756') ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756') ('4302', None, None, None, None, None, None, None, '2691756') ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21719546', 'None', None, None, None, None, '2691756'), ('4302', '21719546', '1347431992', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431986', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431978', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431974', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431970', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431928', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431923', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431920', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431915', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431913', None, None, None, None, None, '2691756'), ('4302', '21719546', '1347431911', None, None, None, None, None, '2691756')] time used for this insertion : 0.014155387878417969 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.312497615814209 time spend to save output : 0.01443624496459961 total time spend for step 5 : 0.3269338607788086 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 (2691756) 2.25user 2.48system 0:11.28elapsed 42%CPU (0avgtext+0avgdata 159756maxresident)k 320inputs+16896outputs (22major+74956minor)pagefaults 0swaps