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 : 1604055 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 (2658690) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2658690) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294338 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2658690'] with mtr_portfolio_ids : ['21294338'] and first list_photo_ids : [] new path : /proc/1604055/ Name: python3 Umask: 0002 State: R (running) Tgid: 1604055 Ngid: 0 Pid: 1604055 PPid: 1604054 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1604055 NSpid: 1604055 NSpgid: 1601009 NSsid: 1601009 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98456 kB VmRSS: 98456 kB RssAnon: 59760 kB RssFile: 38696 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 54 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1604055', 'Ngid': '0', 'Pid': '1604055', 'PPid': '1604054', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1604055', 'NSpid': '1604055', 'NSpgid': '1601009', 'NSsid': '1601009', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98456 kB', 'VmRSS': '98456 kB', 'RssAnon': '59760 kB', 'RssFile': '38696 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '54', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '1604055', '1106844', '0', '1106844', '865592', '98456', b'', 'marlene', '2658690') 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 (21294338) 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 (2658690 ) ) 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 (21294338) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343089120, 'portfolio_id': 21294338}, {'photo_id': 1343088995, 'portfolio_id': 21294338}, {'photo_id': 1343088770, 'portfolio_id': 21294338}, {'photo_id': 1343088610, 'portfolio_id': 21294338}, {'photo_id': 1343088508, 'portfolio_id': 21294338}, {'photo_id': 1343088504, 'portfolio_id': 21294338}, {'photo_id': 1343088469, 'portfolio_id': 21294338}, {'photo_id': 1343088439, 'portfolio_id': 21294338}, {'photo_id': 1343088415, 'portfolio_id': 21294338}, {'photo_id': 1343088374, 'portfolio_id': 21294338}, {'photo_id': 1343088317, 'portfolio_id': 21294338}, {'photo_id': 1343087973, 'portfolio_id': 21294338}, {'photo_id': 1343087962, 'portfolio_id': 21294338}, {'photo_id': 1343087957, 'portfolio_id': 21294338}, {'photo_id': 1343087946, 'portfolio_id': 21294338}, {'photo_id': 1343087942, 'portfolio_id': 21294338}, {'photo_id': 1343087939, 'portfolio_id': 21294338}, {'photo_id': 1343087725, 'portfolio_id': 21294338}, {'photo_id': 1343087713, 'portfolio_id': 21294338}, {'photo_id': 1343087704, 'portfolio_id': 21294338}, {'photo_id': 1343087699, 'portfolio_id': 21294338}, {'photo_id': 1343087576, 'portfolio_id': 21294338}, {'photo_id': 1343087559, 'portfolio_id': 21294338}, {'photo_id': 1343087510, 'portfolio_id': 21294338}, {'photo_id': 1343087463, 'portfolio_id': 21294338}, {'photo_id': 1343087417, 'portfolio_id': 21294338}, {'photo_id': 1343087379, 'portfolio_id': 21294338}, {'photo_id': 1343087095, 'portfolio_id': 21294338}, {'photo_id': 1343087038, 'portfolio_id': 21294338}, {'photo_id': 1343086990, 'portfolio_id': 21294338}, {'photo_id': 1343086964, 'portfolio_id': 21294338}, {'photo_id': 1343086851, 'portfolio_id': 21294338}, {'photo_id': 1343086827, 'portfolio_id': 21294338}, {'photo_id': 1343086775, 'portfolio_id': 21294338}, {'photo_id': 1343086740, 'portfolio_id': 21294338}, {'photo_id': 1343086610, 'portfolio_id': 21294338}, {'photo_id': 1343086363, 'portfolio_id': 21294338}, {'photo_id': 1343086276, 'portfolio_id': 21294338}, {'photo_id': 1343086229, 'portfolio_id': 21294338}, {'photo_id': 1343086146, 'portfolio_id': 21294338}, {'photo_id': 1343086112, 'portfolio_id': 21294338}, {'photo_id': 1343086070, 'portfolio_id': 21294338}, {'photo_id': 1343085670, 'portfolio_id': 21294338}, {'photo_id': 1343085632, 'portfolio_id': 21294338}, {'photo_id': 1343085602, 'portfolio_id': 21294338}, {'photo_id': 1343085232, 'portfolio_id': 21294338}, {'photo_id': 1343085209, 'portfolio_id': 21294338}, {'photo_id': 1343085121, 'portfolio_id': 21294338}, {'photo_id': 1343084893, 'portfolio_id': 21294338}, {'photo_id': 1343084855, 'portfolio_id': 21294338}, {'photo_id': 1343084820, 'portfolio_id': 21294338}, {'photo_id': 1343084797, 'portfolio_id': 21294338}, {'photo_id': 1343084773, 'portfolio_id': 21294338}, {'photo_id': 1343084460, 'portfolio_id': 21294338}, {'photo_id': 1343084423, 'portfolio_id': 21294338}, {'photo_id': 1343084350, 'portfolio_id': 21294338}, {'photo_id': 1343084268, 'portfolio_id': 21294338}, {'photo_id': 1343084247, 'portfolio_id': 21294338}, {'photo_id': 1343084065, 'portfolio_id': 21294338}, {'photo_id': 1343084047, 'portfolio_id': 21294338}, {'photo_id': 1343084045, 'portfolio_id': 21294338}] map_portfolio_id_photo_id: {21294338: [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939, 1343087725, 1343087713, 1343087704, 1343087699, 1343087576, 1343087559, 1343087510, 1343087463, 1343087417, 1343087379, 1343087095, 1343087038, 1343086990, 1343086964, 1343086851, 1343086827, 1343086775, 1343086740, 1343086610, 1343086363, 1343086276, 1343086229, 1343086146, 1343086112, 1343086070, 1343085670, 1343085632, 1343085602, 1343085232, 1343085209, 1343085121, 1343084893, 1343084855, 1343084820, 1343084797, 1343084773, 1343084460, 1343084423, 1343084350, 1343084268, 1343084247, 1343084065, 1343084047, 1343084045]} ##### 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.13861536979675293 #### 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 Tue Mar 11 16:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21294338) 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 : 21294338 get user id for portfolio 21294338 get sub ptf for main ptf 21294338, type 3726 and hashtags ['plastique', 'metal', 'Carton_gris', 'cartonnette', 'papier', 'autre_refus', 'Carton_brun', 'mal_croppe', 'environnement', 'kraft', 'flou', 'Teint_Dans_La_Masse'] 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`=21294338 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','cartonnette','papier','autre_refus','Carton_brun','mal_croppe','environnement','kraft','flou','Teint_Dans_La_Masse')) 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`=21294338 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','cartonnette','papier','autre_refus','Carton_brun','mal_croppe','environnement','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21294338, 'sub_port_id': 21294339, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879385, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'flou': {'main_port_id': 21294338, 'sub_port_id': 21294340, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879386, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'kraft': {'main_port_id': 21294338, 'sub_port_id': 21294341, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879387, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'cartonnette': {'main_port_id': 21294338, 'sub_port_id': 21294342, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879388, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'Carton_brun': {'main_port_id': 21294338, 'sub_port_id': 21294343, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879389, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21294338, 'sub_port_id': 21294344, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879390, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'mal_croppe': {'main_port_id': 21294338, 'sub_port_id': 21294345, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879391, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'environnement': {'main_port_id': 21294338, 'sub_port_id': 21294346, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879392, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'autre_refus': {'main_port_id': 21294338, 'sub_port_id': 21294347, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879393, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'metal': {'main_port_id': 21294338, 'sub_port_id': 21294348, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879394, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'plastique': {'main_port_id': 21294338, 'sub_port_id': 21294349, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879395, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}, 'papier': {'main_port_id': 21294338, 'sub_port_id': 21294350, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879396, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294339 , 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=21294338 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 (21294339) result : ((1343087534,), (1343087535,), (1343087593,), (1343087594,), (1343088449,), (1343088834,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294340 , 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=21294338 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 (21294340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294341 , 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=21294338 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 (21294341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294342 , 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=21294338 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 (21294342) result : ((1343087182,), (1343087186,), (1343087548,), (1343087969,), (1343088870,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294343 , 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=21294338 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 (21294343) result : ((1343087604,), (1343087605,), (1343087606,), (1343089004,), (1343089007,), (1343089009,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294344 , 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=21294338 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 (21294344) result : ((1343087137,), (1343087461,), (1343087575,), (1343088420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294345 , 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=21294338 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 (21294345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294346 , 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=21294338 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 (21294346) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294347 , 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=21294338 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 (21294347) result : ((1343087160,), (1343087163,), (1343087166,), (1343087487,), (1343087488,), (1343087489,), (1343087490,), (1343087518,), (1343087519,), (1343087520,), (1343087581,), (1343087582,), (1343087583,), (1343087584,), (1343087964,), (1343087965,), (1343087966,), (1343087967,), (1343088428,), (1343088434,), (1343088436,), (1343088438,), (1343088441,), (1343088752,), (1343088754,), (1343088756,), (1343088761,), (1343088763,), (1343088765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294348 , 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=21294338 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 (21294348) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294349 , 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=21294338 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 (21294349) result : ((1343087191,), (1343087564,), (1343087565,), (1343087615,), (1343087975,), (1343087976,), (1343089063,), (1343089065,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21294350 , 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=21294338 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 (21294350) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21294338) result : ((1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21294338 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','cartonnette','papier','autre_refus','Carton_brun','mal_croppe','environnement','kraft','flou','Teint_Dans_La_Masse')) 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`=21294338 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','cartonnette','papier','autre_refus','Carton_brun','mal_croppe','environnement','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21294338, 'sub_port_id': 21294351, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879397, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'flou': {'main_port_id': 21294338, 'sub_port_id': 21294352, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879398, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'kraft': {'main_port_id': 21294338, 'sub_port_id': 21294353, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879399, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'cartonnette': {'main_port_id': 21294338, 'sub_port_id': 21294354, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879400, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'Carton_brun': {'main_port_id': 21294338, 'sub_port_id': 21294355, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879401, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21294338, 'sub_port_id': 21294356, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879402, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'mal_croppe': {'main_port_id': 21294338, 'sub_port_id': 21294357, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879403, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'environnement': {'main_port_id': 21294338, 'sub_port_id': 21294358, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879404, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'autre_refus': {'main_port_id': 21294338, 'sub_port_id': 21294359, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879405, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'metal': {'main_port_id': 21294338, 'sub_port_id': 21294360, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879406, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'plastique': {'main_port_id': 21294338, 'sub_port_id': 21294361, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879407, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}, 'papier': {'main_port_id': 21294338, 'sub_port_id': 21294362, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13879408, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 12, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21294362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21294350 lien utilise dans velours : https://www.fotonower.com/velours/21294351,21294352,21294353,21294354,21294355,21294356,21294357,21294358,21294359,21294360,21294361,21294362?tags=Carton_gris,flou,kraft,cartonnette,Carton_brun,Teint_Dans_La_Masse,mal_croppe,environnement,autre_refus,metal,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21294338]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] map_info['map_portfolio_photo'] : {21294338: [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939, 1343087725, 1343087713, 1343087704, 1343087699, 1343087576, 1343087559, 1343087510, 1343087463, 1343087417, 1343087379, 1343087095, 1343087038, 1343086990, 1343086964, 1343086851, 1343086827, 1343086775, 1343086740, 1343086610, 1343086363, 1343086276, 1343086229, 1343086146, 1343086112, 1343086070, 1343085670, 1343085632, 1343085602, 1343085232, 1343085209, 1343085121, 1343084893, 1343084855, 1343084820, 1343084797, 1343084773, 1343084460, 1343084423, 1343084350, 1343084268, 1343084247, 1343084065, 1343084047, 1343084045]} final : False mtd_id 4302 list_pids : [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] Looping around the photos to save general results len do output : 1 /21294338. 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, '2658690') ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21294338', "{'Carton_gris': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350}", None, None, None, None, '2658690'), ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690')] time used for this insertion : 0.018648147583007812 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3381829261779785 time spend to save output : 0.019024372100830078 total time spend for step 1 : 3.3572072982788086 step2:final Tue Mar 11 16:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21294338) 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 21294338 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343084065,1343084047,1343084045,1343084460,1343084423,1343084350,1343084268,1343084247,1343084893,1343084855,1343084820,1343084797,1343084773,1343085232,1343085209,1343085121,1343085670,1343085632,1343085602,1343086363,1343086276,1343086229,1343086146,1343086112,1343086070,1343086851,1343086827,1343086775,1343086740,1343086610,1343087095,1343087038,1343086990,1343086964,1343087576,1343087559,1343087510,1343087463,1343087417,1343087379,1343087725,1343087713,1343087704,1343087699,1343087973,1343087962,1343087957,1343087946,1343087942,1343087939,1343088469,1343088439,1343088415,1343088374,1343088317,1343089120,1343088995,1343088770,1343088610,1343088508,1343088504); 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([21294338]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} new output for save of step final : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] map_info['map_portfolio_photo'] : {21294338: [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939, 1343087725, 1343087713, 1343087704, 1343087699, 1343087576, 1343087559, 1343087510, 1343087463, 1343087417, 1343087379, 1343087095, 1343087038, 1343086990, 1343086964, 1343086851, 1343086827, 1343086775, 1343086740, 1343086610, 1343086363, 1343086276, 1343086229, 1343086146, 1343086112, 1343086070, 1343085670, 1343085632, 1343085602, 1343085232, 1343085209, 1343085121, 1343084893, 1343084855, 1343084820, 1343084797, 1343084773, 1343084460, 1343084423, 1343084350, 1343084268, 1343084247, 1343084065, 1343084047, 1343084045]} final : False mtd_id 4302 list_pids : [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] Looping around the photos to save general results len do output : 17 /1343089120.Didn't retrieve data . /1343088995.Didn't retrieve data . /1343088770.Didn't retrieve data . /1343088610.Didn't retrieve data . /1343088508.Didn't retrieve data . /1343088504.Didn't retrieve data . /1343088469.Didn't retrieve data . /1343088439.Didn't retrieve data . /1343088415.Didn't retrieve data . /1343088374.Didn't retrieve data . /1343088317.Didn't retrieve data . /1343087973.Didn't retrieve data . /1343087962.Didn't retrieve data . /1343087957.Didn't retrieve data . /1343087946.Didn't retrieve data . /1343087942.Didn't retrieve data . /1343087939.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, '2658690') ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '21294338', '1343089120', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088995', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088770', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088610', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088508', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088504', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088469', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088439', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088415', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088374', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343088317', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087973', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087962', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087957', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087946', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087942', '0.06510504077882595', None, None, None, None, '2658690'), ('4302', '21294338', '1343087939', '0.06510504077882595', None, None, None, None, '2658690')] time used for this insertion : 0.01896524429321289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07167363166809082 time spend to save output : 0.01979231834411621 total time spend for step 2 : 0.09146595001220703 step3:velours_tree Tue Mar 11 16:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21294338: [{'Carton_gris': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350}]} input_args_next_step : {21294338: ()} output_args : {21294338: [{'Carton_gris': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350}]} args : 21294338 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': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21294338) 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([21294338]) 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.3793010711669922 time spend to save output : 7.891654968261719e-05 total time spend for step 3 : 0.3793799877166748 step4:send_mail_cod Tue Mar 11 16:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} input_args_next_step : {1343089120: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343089120 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088995 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088770 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088610 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088508 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088504 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088469 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088439 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088415 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088374 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343088317 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087973 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087962 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087957 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087946 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087942 depend.output_id : 0 input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ()} output_args : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',)} args : 1343087939 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 : {21294338: [{'Carton_gris': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350}]} input_args_next_step : {1343089120: ('0.06510504077882595',), 1343088995: ('0.06510504077882595',), 1343088770: ('0.06510504077882595',), 1343088610: ('0.06510504077882595',), 1343088508: ('0.06510504077882595',), 1343088504: ('0.06510504077882595',), 1343088469: ('0.06510504077882595',), 1343088439: ('0.06510504077882595',), 1343088415: ('0.06510504077882595',), 1343088374: ('0.06510504077882595',), 1343088317: ('0.06510504077882595',), 1343087973: ('0.06510504077882595',), 1343087962: ('0.06510504077882595',), 1343087957: ('0.06510504077882595',), 1343087946: ('0.06510504077882595',), 1343087942: ('0.06510504077882595',), 1343087939: ('0.06510504077882595',), 21294338: ()} output_args : {21294338: [{'Carton_gris': 21294339, 'flou': 21294340, 'kraft': 21294341, 'cartonnette': 21294342, 'Carton_brun': 21294343, 'Teint_Dans_La_Masse': 21294344, 'mal_croppe': 21294345, 'environnement': 21294346, 'autre_refus': 21294347, 'metal': 21294348, 'plastique': 21294349, 'papier': 21294350}]} args : 21294338 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 :18, first value : ('0.06510504077882595',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21294338) 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 (1343089120,1343088995,1343088770,1343088610,1343088508,1343088504,1343088469,1343088439,1343088415,1343088374,1343088317,1343087973,1343087962,1343087957,1343087946,1343087942,1343087939) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343087939 begin to download photo : 1343087962 begin to download photo : 1343088415 begin to download photo : 1343088508 begin to download photo : 1343089120 download finish for photo 1343088415 begin to download photo : 1343088439 download finish for photo 1343089120 download finish for photo 1343088508 begin to download photo : 1343088610 download finish for photo 1343087962 begin to download photo : 1343087973 download finish for photo 1343087939 begin to download photo : 1343087942 download finish for photo 1343088439 begin to download photo : 1343088469 download finish for photo 1343088610 begin to download photo : 1343088770 download finish for photo 1343087942 begin to download photo : 1343087946 download finish for photo 1343088469 begin to download photo : 1343088504 download finish for photo 1343087973 begin to download photo : 1343088317 download finish for photo 1343088770 begin to download photo : 1343088995 download finish for photo 1343088504 download finish for photo 1343087946 begin to download photo : 1343087957 download finish for photo 1343088317 begin to download photo : 1343088374 download finish for photo 1343088995 download finish for photo 1343088374 download finish for photo 1343087957 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212943401741706104/ imagette212943411741706104/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P21294338_11-03-2025_16_15_04.pdf 21294340 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=21294340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212943401741706104 21294341 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=21294341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212943411741706104 21294342 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=21294342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087182: '1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756858_0.png', 1343087186: '1741705645_2046302_1343085121_9653cbaf2d0e58a12bcbfb07452af09f_rle_crop_3705757725_0.png', 1343087548: '1741705616_1413126_1343084423_51e172116dd90e3c20ac29681fa3e63f_rle_crop_3705758609_0.png', 1343087969: '1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769710_0.png', 1343088870: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0973abde54e56f6f43f968af366f219f_41125306.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/18f16824de45c9fad906ab3e51fc30b3_81752158.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5621a11c1db3b2cf783dfe10da092564_20748523.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5e2b8acf9121b497984b65c625364963_41455592.png change filename to text .imagette212943421741706104/ imagette212943421741706104/1741705616_1413126_1343084423_51e172116dd90e3c20ac29681fa3e63f_rle_crop_3705758609_0.png.png imagette212943421741706104/1741705645_2046302_1343085121_9653cbaf2d0e58a12bcbfb07452af09f_rle_crop_3705757725_0.png.png imagette212943421741706104/1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756858_0.png.png imagette212943421741706104/1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769710_0.png.png imagette212943421741706104/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774038_0.png.png imagette212943451741706104/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/896041e8afcebd274db2f891c8b083ac_88503170.png imagette212943421741706104 21294345 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=21294345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212943451741706104 21294347 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=21294347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087964: '1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768955_0.png', 1343088765: '1741705854_1417059_1343086070_2ec35569edb45795e245a128b04b3249_rle_crop_3705778173_0.png', 1343088763: '1741705854_1417059_1343086112_1968f931601d1720b82254723a7eb296_rle_crop_3705777193_0.png', 1343088761: '1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774283_0.png', 1343088756: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774040_0.png', 1343088754: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774033_0.png', 1343088752: '1741705854_1417059_1343086851_9a8650192dff690b21a79b6100f38880_rle_crop_3705773354_0.png', 1343088441: '1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773118_0.png', 1343088438: '1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773114_0.png', 1343088436: '1741705829_2051233_1343086740_1b6de7e86ac245169d720d099a8ab916_rle_crop_3705772830_0.png', 1343088434: '1741705829_2051233_1343086775_5b6fe451e05ee7f4f33c4863e299a717_rle_crop_3705770946_0.png', 1343088428: '1741705829_2051233_1343086827_138a776d1d613c63f52f5fa0dd3072a8_rle_crop_3705770373_0.png', 1343087967: '1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769712_0.png', 1343087966: '1741705832_1416804_1343085632_425bd61dcfc64b2f4bf659a2742257a6_rle_crop_3705769582_0.png', 1343087965: '1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768956_0.png', 1343087160: '1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756856_0.png', 1343087584: '1741705633_1413357_1343084773_9475180967eb601c21de1873bba31a69_rle_crop_3705760745_0.png', 1343087583: '1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758948_0.png', 1343087582: '1741705633_1413357_1343084855_d0c9c9c393d41316492fd41c0cbb25e2_rle_crop_3705758628_0.png', 1343087581: '1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1fa144fc4f563ff5986b08f473633af1_74252585.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c5bf7f80fe773e66bee57059e4d47d0c_63488336.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/44d3e1de0cad3fc47042471b672b7c12_29602884.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d48fb3458294e9e3ae9fae28cda010e4_79171672.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b130eec0648ebb3b3b6597ca8cd964ab_5776339.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6aebb8dcbff241fd11f45f971fe8e57c_29191504.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b2ee99ef4fae1706147a14be76156635_1990451.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fe5332e39dc4cdd7221dec0318594a8e_18594226.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/92a1327da8414ed1ada15b4df1645eea_23656648.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/615cb6646ed27741f3b2466dbbe758b2_22997558.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b65fe897ad351fa8762da15e1453a7d3_26778370.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2444daa438e65d8e2052f78b0a366589_76853464.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fafe99f85fc0e7a96013dadb961577d9_31174180.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/743ee682f408677c90bc312e5cb9b88a_21905431.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fea8186b11f7d5e2908048156c3c9a2b_53384225.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d8fd6823eabff57350624e0f3e531889_69325001.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e7ea462d1a13823b75b61fb18e0938d3_70295688.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b6d71a2944d1350ad8102fd2fd4a3d9e_53358072.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/587b8bdd3eb27149855fa276548a0d51_58275334.png change filename to text .imagette212943471741706104/ imagette212943471741706104/1741705854_1417059_1343086851_9a8650192dff690b21a79b6100f38880_rle_crop_3705773354_0.png.png imagette212943471741706104/1741705829_2051233_1343086827_138a776d1d613c63f52f5fa0dd3072a8_rle_crop_3705770373_0.png.png imagette212943471741706104/1741705854_1417059_1343086112_1968f931601d1720b82254723a7eb296_rle_crop_3705777193_0.png.png imagette212943471741706104/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774033_0.png.png imagette212943471741706104/1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768955_0.png.png imagette212943471741706104/1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769712_0.png.png imagette212943471741706104/1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774283_0.png.png imagette212943471741706104/1741705829_2051233_1343086740_1b6de7e86ac245169d720d099a8ab916_rle_crop_3705772830_0.png.png imagette212943471741706104/1741705832_1416804_1343085632_425bd61dcfc64b2f4bf659a2742257a6_rle_crop_3705769582_0.png.png imagette212943471741706104/1741705633_1413357_1343084855_d0c9c9c393d41316492fd41c0cbb25e2_rle_crop_3705758628_0.png.png imagette212943471741706104/1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756856_0.png.png imagette212943471741706104/1741705829_2051233_1343086775_5b6fe451e05ee7f4f33c4863e299a717_rle_crop_3705770946_0.png.png imagette212943471741706104/1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773118_0.png.png imagette212943471741706104/1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758369_0.png.png imagette212943471741706104/1741705633_1413357_1343084773_9475180967eb601c21de1873bba31a69_rle_crop_3705760745_0.png.png imagette212943471741706104/1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758948_0.png.png imagette212943471741706104/1741705854_1417059_1343086070_2ec35569edb45795e245a128b04b3249_rle_crop_3705778173_0.png.png imagette212943471741706104/1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768956_0.png.png imagette212943471741706104/1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773114_0.png.png imagette212943471741706104/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774040_0.png.png imagette212943481741706105/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e21aea3bfbc507c9c063698e008feacd_21407202.png imagette212943471741706104 21294348 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=21294348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212943481741706105 21294349 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=21294349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087191: '1741705645_2046302_1343085121_9653cbaf2d0e58a12bcbfb07452af09f_rle_crop_3705757722_0.png', 1343087564: '1741705616_1413126_1343084350_47d612892bc09d37984dd76544611aff_rle_crop_3705758929_0.png', 1343087565: '1741705616_1413126_1343084268_bc216e95d6ab86fce2530693599ddcd1_rle_crop_3705759658_0.png', 1343087615: '1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758951_0.png', 1343087975: '1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768954_0.png', 1343087976: '1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769711_0.png', 1343089063: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774032_0.png', 1343089065: '1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/49c0f4f3b1d64ea198c8ac2504e299dc_2158199.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35d06027be426cf33ed9a0139f7456a2_72347216.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/83218ab25eb63ee7bc9d2fa62d6e08ca_9866908.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/41bb6de9d2476a50e8a61f7755d03538_49844893.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/95f98a2f8e9ea2d1269e3eb052e0a3f5_45357432.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/25a5007c1eba4ef13c372d5b8ee9c058_45560531.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/19a4c43ea37d33d6484e3053a3597b0b_49556686.png change filename to text .imagette212943491741706105/ imagette212943491741706105/1741705616_1413126_1343084268_bc216e95d6ab86fce2530693599ddcd1_rle_crop_3705759658_0.png.png imagette212943491741706105/1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774284_0.png.png imagette212943491741706105/1741705832_1416804_1343085602_998bc8508fec6f2bef5016b95be88ca5_rle_crop_3705769711_0.png.png imagette212943491741706105/1741705832_1416804_1343086363_72f9dea52ab5e5f41915c3ff001af47d_rle_crop_3705768954_0.png.png imagette212943491741706105/1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758951_0.png.png imagette212943491741706105/1741705645_2046302_1343085121_9653cbaf2d0e58a12bcbfb07452af09f_rle_crop_3705757722_0.png.png imagette212943491741706105/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774032_0.png.png imagette212943491741706105/1741705616_1413126_1343084350_47d612892bc09d37984dd76544611aff_rle_crop_3705758929_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7df1c29960f353d1eef2a428ee321567_75353371.png imagette212943491741706105 21294339 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=21294339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087534: '1741705616_1413126_1343084893_c3b38d50cf93962940227bf66289a162_rle_crop_3705757744_0.png', 1343087535: '1741705616_1413126_1343084423_51e172116dd90e3c20ac29681fa3e63f_rle_crop_3705758605_0.png', 1343087593: '1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758945_0.png', 1343087594: '1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758954_0.png', 1343088449: '1741705829_2051233_1343086740_1b6de7e86ac245169d720d099a8ab916_rle_crop_3705772828_0.png', 1343088834: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774035_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1c9b81bd742965f2df4272b043c4e585_38512293.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/efce73cf685ce4a5f357b81674deb0b1_90344137.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64be9d7f97d9ce1518f893593355d591_34726711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e2b5b90513b137716194d5a013259277_20657985.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/45d91a985949a411b7b36ed6e42fa080_25447662.png change filename to text .imagette212943391741706106/ imagette212943391741706106/1741705616_1413126_1343084423_51e172116dd90e3c20ac29681fa3e63f_rle_crop_3705758605_0.png.png imagette212943391741706106/1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758945_0.png.png imagette212943391741706106/1741705829_2051233_1343086740_1b6de7e86ac245169d720d099a8ab916_rle_crop_3705772828_0.png.png imagette212943391741706106/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774035_0.png.png imagette212943391741706106/1741705633_1413357_1343084820_27f1d92df017c717271294c51988ee6b_rle_crop_3705758954_0.png.png imagette212943391741706106/1741705616_1413126_1343084893_c3b38d50cf93962940227bf66289a162_rle_crop_3705757744_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b7355d30ff9edfcbb08be8dd8122007b_95129195.png imagette212943391741706106 21294343 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=21294343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087604: '1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758364_0.png', 1343087605: '1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758365_0.png', 1343087606: '1741705633_1413357_1343084773_9475180967eb601c21de1873bba31a69_rle_crop_3705760743_0.png', 1343089004: '1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774036_0.png', 1343089007: '1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774279_0.png', 1343089009: '1741705854_1417059_1343086146_50f0637dd0e6d46e8a342e0355466ac6_rle_crop_3705775092_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/053771a541d11cd09724f5853a07e45e_71183061.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b795dd06d6163de035e0832df1ce7dbe_43029711.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3c06b2a9cd4906db2a805af39c3fd48b_96513502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7703124a038ef7aaa082d472d4e8912a_85180746.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bb7d0459145bccd011360b061e843c50_63889385.png change filename to text .imagette212943431741706106/ imagette212943431741706106/1741705854_1417059_1343086229_d45f1e3b09ce61904c78e86385af8e5b_rle_crop_3705774279_0.png.png imagette212943431741706106/1741705854_1417059_1343086146_50f0637dd0e6d46e8a342e0355466ac6_rle_crop_3705775092_0.png.png imagette212943431741706106/1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758365_0.png.png imagette212943431741706106/1741705854_1417059_1343086276_3d09fd632e7de7251bc6aa828b096acf_rle_crop_3705774036_0.png.png imagette212943431741706106/1741705633_1413357_1343084773_9475180967eb601c21de1873bba31a69_rle_crop_3705760743_0.png.png imagette212943431741706106/1741705633_1413357_1343085232_f67d12c2a572681d00f6a4a658a69a3b_rle_crop_3705758364_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/720a8fbd9b9f0c6e7b0675ce4f7a3d6d_58913582.png imagette212943431741706106 21294344 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=21294344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343087137: '1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756861_0.png', 1343087461: '1741705652_1413728_1343084460_c79e75558dabcc8a5433d30a71884721_rle_crop_3705757702_0.png', 1343087575: '1741705633_1413357_1343084797_9e6a2cf5cc9a6a7da3bc26860a54d3ec_rle_crop_3705760088_0.png', 1343088420: '1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773120_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b38b0e726f668804024666b88f198b1b_85934392.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/68855bd2a76d4763cca9e25bf302b9aa_91126112.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ef64ad4e7e9184332ae3b4652046aad9_4440923.png change filename to text .imagette212943441741706106/ imagette212943441741706106/1741705645_2046302_1343085209_09dc0c9f57c99989be494580e781187c_rle_crop_3705756861_0.png.png imagette212943441741706106/1741705633_1413357_1343084797_9e6a2cf5cc9a6a7da3bc26860a54d3ec_rle_crop_3705760088_0.png.png imagette212943441741706106/1741705829_2051233_1343086610_5671f9062fb305e4803a0c9b86be1bd0_rle_crop_3705773120_0.png.png imagette212943441741706106/1741705652_1413728_1343084460_c79e75558dabcc8a5433d30a71884721_rle_crop_3705757702_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ee33a3f7c3c45ecd7c923309bd745160_46751953.png imagette212943441741706106 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21294338 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21294351,21294352,21294353,21294354,21294355,21294356,21294357,21294358,21294359,21294360,21294361,21294362?tags=Carton_gris,flou,kraft,cartonnette,Carton_brun,Teint_Dans_La_Masse,mal_croppe,environnement,autre_refus,metal,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1343089120] : ('0.06510504077882595',) no score found for photo 1343089120 We are sending mail with results at report@fotonower.com args[1343088995] : ('0.06510504077882595',) no score found for photo 1343088995 We are sending mail with results at report@fotonower.com args[1343088770] : ('0.06510504077882595',) no score found for photo 1343088770 We are sending mail with results at report@fotonower.com args[1343088610] : ('0.06510504077882595',) no score found for photo 1343088610 We are sending mail with results at report@fotonower.com args[1343088508] : ('0.06510504077882595',) no score found for photo 1343088508 We are sending mail with results at report@fotonower.com args[1343088504] : ('0.06510504077882595',) no score found for photo 1343088504 We are sending mail with results at report@fotonower.com args[1343088469] : ('0.06510504077882595',) no score found for photo 1343088469 We are sending mail with results at report@fotonower.com args[1343088439] : ('0.06510504077882595',) no score found for photo 1343088439 We are sending mail with results at report@fotonower.com args[1343088415] : ('0.06510504077882595',) no score found for photo 1343088415 We are sending mail with results at report@fotonower.com args[1343088374] : ('0.06510504077882595',) no score found for photo 1343088374 We are sending mail with results at report@fotonower.com args[1343088317] : ('0.06510504077882595',) no score found for photo 1343088317 We are sending mail with results at report@fotonower.com args[1343087973] : ('0.06510504077882595',) no score found for photo 1343087973 We are sending mail with results at report@fotonower.com args[1343087962] : ('0.06510504077882595',) no score found for photo 1343087962 We are sending mail with results at report@fotonower.com args[1343087957] : ('0.06510504077882595',) no score found for photo 1343087957 We are sending mail with results at report@fotonower.com args[1343087946] : ('0.06510504077882595',) no score found for photo 1343087946 We are sending mail with results at report@fotonower.com args[1343087942] : ('0.06510504077882595',) no score found for photo 1343087942 We are sending mail with results at report@fotonower.com args[1343087939] : ('0.06510504077882595',) no score found for photo 1343087939 We are sending mail with results at report@fotonower.com refus_total : 0.06510504077882595 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=21294338 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_P21294338_11-03-2025_16_15_04.pdf results_Auto_P21294338_11-03-2025_16_15_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21294338_11-03-2025_16_15_04.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','21294338','results_Auto_P21294338_11-03-2025_16_15_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21294338_11-03-2025_16_15_04.pdf','pdf','','0.29','0.06510504077882595') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21294338]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] map_info['map_portfolio_photo'] : {21294338: [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939, 1343087725, 1343087713, 1343087704, 1343087699, 1343087576, 1343087559, 1343087510, 1343087463, 1343087417, 1343087379, 1343087095, 1343087038, 1343086990, 1343086964, 1343086851, 1343086827, 1343086775, 1343086740, 1343086610, 1343086363, 1343086276, 1343086229, 1343086146, 1343086112, 1343086070, 1343085670, 1343085632, 1343085602, 1343085232, 1343085209, 1343085121, 1343084893, 1343084855, 1343084820, 1343084797, 1343084773, 1343084460, 1343084423, 1343084350, 1343084268, 1343084247, 1343084065, 1343084047, 1343084045]} final : False mtd_id 4302 list_pids : [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] 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, '2658690') ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21294338', '1343089120', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690')] time used for this insertion : 0.01863884925842285 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.801742792129517 time spend to save output : 0.019110679626464844 total time spend for step 4 : 4.8208534717559814 step5:split_time_score Tue Mar 11 16:15:08 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 : ['21294338'] 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 : [('21294338',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21294338) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343089120: {'path': 'temp/1741706103_1604055_1343089120_2b10f86e93fb6238597af2428f18a70f.jpg', 'extension': 'jpg'}, 1343088415: {'path': 'temp/1741706103_1604055_1343088415_b04c941a1dac921a401ec8a09781bb7b.jpg', 'extension': 'jpg'}, 1343088439: {'path': 'temp/1741706103_1604055_1343088439_1e264d4cbcadaf05f1b4db1b5afd9d5a.jpg', 'extension': 'jpg'}, 1343088469: {'path': 'temp/1741706103_1604055_1343088469_73fbb589064adbfb1c312ecbb954ef87.jpg', 'extension': 'jpg'}, 1343088504: {'path': 'temp/1741706103_1604055_1343088504_ca37dbe7fa6a42f012960f3bcf407ce3.jpg', 'extension': 'jpg'}, 1343088508: {'path': 'temp/1741706103_1604055_1343088508_686fc6b78cbaee2b2c7e9dbfc6d4d114.jpg', 'extension': 'jpg'}, 1343088610: {'path': 'temp/1741706103_1604055_1343088610_c5d2483c9d0c8d9b576b07da78be860e.jpg', 'extension': 'jpg'}, 1343088770: {'path': 'temp/1741706103_1604055_1343088770_8b82c89dabc747e56f7bc57046485a7c.jpg', 'extension': 'jpg'}, 1343088995: {'path': 'temp/1741706103_1604055_1343088995_795bc449ed32f859ce008281c05ecacc.jpg', 'extension': 'jpg'}, 1343087962: {'path': 'temp/1741706103_1604055_1343087962_c49df900574543e16a8359a252777585.jpg', 'extension': 'jpg'}, 1343087973: {'path': 'temp/1741706103_1604055_1343087973_334199f14970c2da4ae7e59219316283.jpg', 'extension': 'jpg'}, 1343088317: {'path': 'temp/1741706103_1604055_1343088317_1fad036d42e39ed3ffe3bc9559242eda.jpg', 'extension': 'jpg'}, 1343088374: {'path': 'temp/1741706103_1604055_1343088374_0a003d6e308127814909d816bb2622f5.jpg', 'extension': 'jpg'}, 1343087939: {'path': 'temp/1741706103_1604055_1343087939_2896128378f6fedc751a7df57f6c1b1e.jpg', 'extension': 'jpg'}, 1343087942: {'path': 'temp/1741706103_1604055_1343087942_b2f100fd23e9bc69e40ed18ec013867b.jpg', 'extension': 'jpg'}, 1343087946: {'path': 'temp/1741706103_1604055_1343087946_1383da65dc25f61c4ba3a3473e3ade25.jpg', 'extension': 'jpg'}, 1343087957: {'path': 'temp/1741706103_1604055_1343087957_2eadc42e21842fb57ef3a8359d992ec9.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 = 21294338; (('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 = 21294338 group by h (('16', 61),) 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=21294338 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 (21294338) 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 (21294338) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21294338 Nombre de photos uploadées : 61 / 23040 (0%) 11032025 21294338 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 11032025 21294338 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1343084065, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a66f30f121fac98ce7433275fe46a214.jpg', 'username': None, 'uploaded_at': 1741705299, 'text': 'image_11032025_16_00_14_010194m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343084047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f16b5251ab28097d680235e2663caabc.jpg', 'username': None, 'uploaded_at': 1741705299, 'text': 'image_11032025_16_00_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343084045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/afa0fee5318b11e197f96ffaabdd7f0a.jpg', 'username': None, 'uploaded_at': 1741705299, 'text': 'image_11032025_16_00_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343084460, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c79e75558dabcc8a5433d30a71884721.jpg', 'username': None, 'uploaded_at': 1741705359, 'text': 'image_11032025_16_00_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002779722213745117 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21294338, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026145458221435547 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666967, 'mtr_portfolio_id': 21291523, 'dashboard_result_id': 9351635, '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_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666967, 'mtr_portfolio_id': 21292609, 'dashboard_result_id': 9351636, '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_P21292609_11-03-2025_15_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21292622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21292623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21292624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21292625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21292626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21292627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21292629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21292630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21292631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21292632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21292633, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666967, 'mtr_portfolio_id': 21293205, 'dashboard_result_id': 9351638, '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_P21293205_11-03-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21293252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21293253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21293254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21293255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21293256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21293257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21293258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21293259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21293260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21293261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21293262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21293263, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666967, 'mtr_portfolio_id': 21294338, 'dashboard_result_id': 9351639, '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_P21294338_11-03-2025_16_12_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21294339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21294340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21294341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21294342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21294343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21294344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21294345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21294346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21294347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21294348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21294349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21294350, '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 = 21291523 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': 2658529, 'mtr_portfolio_id': 21291523, 'created_at': datetime.datetime(2025, 3, 11, 15, 33), 'result': '0.07358332947441941', 'result_long': None, 'result_double': None}] Qualite : 0.07358332947441941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21291523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21291523_11-03-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21291523 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_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, 'pht': 3726}}" where mtr_portfolio_id = 21291523 and dashboard_run_id = 1666967 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`=21291523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9351635, 0.07358332947441941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, '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 = 21292609 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': 2658596, 'mtr_portfolio_id': 21292609, 'created_at': datetime.datetime(2025, 3, 11, 15, 49, 28), 'result': '0.07274373967134913', 'result_long': None, 'result_double': None}] Qualite : 0.07274373967134913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21292609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21292609 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_P21292609_11-03-2025_15_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21292622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21292623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21292624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21292625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21292626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21292627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21292629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21292630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21292631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21292632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21292633, 'pht': 3726}}" where mtr_portfolio_id = 21292609 and dashboard_run_id = 1666967 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`=21292609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9351636, 0.07274373967134913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21292622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21292623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21292624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21292625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21292626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21292627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21292629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21292630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21292631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21292632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21292633, '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 = 21293205 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': 2658622, 'mtr_portfolio_id': 21293205, 'created_at': datetime.datetime(2025, 3, 11, 16, 2, 59), 'result': '0.0658398990723713', 'result_long': None, 'result_double': None}] Qualite : 0.0658398990723713 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21293205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21293205_11-03-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21293205 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_P21293205_11-03-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21293252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21293253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21293254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21293255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21293256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21293257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21293258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21293259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21293260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21293261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21293262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21293263, 'pht': 3726}}" where mtr_portfolio_id = 21293205 and dashboard_run_id = 1666967 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`=21293205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9351638, 0.0658398990723713, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21293205_11-03-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21293252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21293253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21293254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21293255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21293256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21293257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21293258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21293259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21293260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21293261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21293262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21293263, '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 = 21294338 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': 2658690, 'mtr_portfolio_id': 21294338, 'created_at': datetime.datetime(2025, 3, 11, 16, 15, 3), 'result': '0.06510504077882595', 'result_long': None, 'result_double': None}] Qualite : 0.06510504077882595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21294338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21294338_11-03-2025_16_15_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21294338 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_P21294338_11-03-2025_16_15_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21294339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21294340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21294341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21294342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21294343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21294344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21294345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21294346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21294347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21294348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21294349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21294350, 'pht': 3726}}" where mtr_portfolio_id = 21294338 and dashboard_run_id = 1666967 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`=21294338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9351639, 0.06510504077882595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21294338_11-03-2025_16_15_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21294339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21294340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21294341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21294342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21294343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21294344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21294345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21294346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21294347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21294348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21294349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21294350, '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 (21291523,21292609,21293205,21294338) result : ((1343065603,), (1343065638,), (1343065687,), (1343065730,), (1343066285,), (1343066327,), (1343066355,), (1343066405,), (1343066445,), (1343066490,), (1343066891,), (1343066920,), (1343066970,), (1343067423,), (1343067452,), (1343067485,), (1343067498,), (1343067526,), (1343067552,), (1343067696,), (1343067708,), (1343067716,), (1343067744,), (1343068119,), (1343068149,), (1343068175,), (1343068206,), (1343068228,), (1343068252,), (1343068401,), (1343068421,), (1343068473,), (1343068524,), (1343069006,), (1343069025,), (1343069042,), (1343069065,), (1343069115,), (1343069162,), (1343069667,), (1343069748,), (1343069841,), (1343069873,), (1343069913,), (1343069919,), (1343070257,), (1343070328,), (1343070359,), (1343070408,), (1343070605,), (1343070634,), (1343070674,), (1343070714,), (1343070754,), (1343070821,), (1343071087,), (1343071692,), (1343071723,), (1343071766,), (1343071819,), (1343071856,), (1343071875,), (1343072003,), (1343072027,), (1343072034,), (1343072054,), (1343072146,), (1343072150,), (1343072152,), (1343072182,), (1343072678,), (1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,), (1343073536,), (1343073558,), (1343073565,), (1343073590,), (1343073631,), (1343073749,), (1343073766,), (1343073810,), (1343073840,), (1343074144,), (1343074214,), (1343074225,), (1343074232,), (1343074236,), (1343074254,), (1343074305,), (1343074330,), (1343074366,), (1343074421,), (1343074531,), (1343074562,), (1343074656,), (1343074721,), (1343074907,), (1343075016,), (1343075025,), (1343075155,), (1343075167,), (1343075255,), (1343075547,), (1343075635,), (1343075691,), (1343076054,), (1343076074,), (1343076116,), (1343076153,), (1343076202,), (1343076226,), (1343076595,), (1343076650,), (1343076680,), (1343076745,), (1343076806,), (1343077352,), (1343077396,), (1343077459,), (1343077535,), (1343078065,), (1343077902,), (1343077939,), (1343077952,), (1343077986,), (1343078019,), (1343078229,), (1343078281,), (1343078332,), (1343078383,), (1343078432,), (1343078809,), (1343078858,), (1343078898,), (1343078943,), (1343079048,), (1343079063,), (1343079087,), (1343079113,), (1343079135,), (1343079148,), (1343079330,), (1343079483,), (1343079521,), (1343079752,), (1343079789,), (1343079815,), (1343079863,), (1343079901,), (1343079945,), (1343080295,), (1343080368,), (1343080452,), (1343080505,), (1343080587,), (1343081032,), (1343081063,), (1343081133,), (1343081169,), (1343081221,), (1343081275,), (1343081442,), (1343081521,), (1343081563,), (1343081580,), (1343081638,), (1343081669,), (1343081686,), (1343081717,), (1343081745,), (1343081780,), (1343082037,), (1343082133,), (1343082143,), (1343082198,), (1343082673,), (1343082766,), (1343082813,), (1343082872,), (1343082902,), (1343082930,), (1343083066,), (1343083086,), (1343083109,), (1343083136,), (1343083176,), (1343083755,), (1343083782,), (1343083807,), (1343083828,), (1343083856,), (1343084109,), (1343084045,), (1343084047,), (1343084065,), (1343084247,), (1343084268,), (1343084350,), (1343084423,), (1343084460,), (1343084773,), (1343084797,), (1343084820,), (1343084855,), (1343084893,), (1343085121,), (1343085209,), (1343085232,), (1343085602,), (1343085632,), (1343085670,), (1343086070,), (1343086112,), (1343086146,), (1343086229,), (1343086276,), (1343086363,), (1343086610,), (1343086740,), (1343086775,), (1343086827,), (1343086851,), (1343086964,), (1343086990,), (1343087038,), (1343087095,), (1343087379,), (1343087417,), (1343087463,), (1343087510,), (1343087559,), (1343087576,), (1343087699,), (1343087704,), (1343087713,), (1343087725,), (1343087939,), (1343087942,), (1343087946,), (1343087957,), (1343087962,), (1343087973,), (1343088317,), (1343088374,), (1343088415,), (1343088439,), (1343088469,), (1343088504,), (1343088508,), (1343088610,), (1343088770,), (1343088995,), (1343089120,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21294338]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] map_info['map_portfolio_photo'] : {21294338: [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939, 1343087725, 1343087713, 1343087704, 1343087699, 1343087576, 1343087559, 1343087510, 1343087463, 1343087417, 1343087379, 1343087095, 1343087038, 1343086990, 1343086964, 1343086851, 1343086827, 1343086775, 1343086740, 1343086610, 1343086363, 1343086276, 1343086229, 1343086146, 1343086112, 1343086070, 1343085670, 1343085632, 1343085602, 1343085232, 1343085209, 1343085121, 1343084893, 1343084855, 1343084820, 1343084797, 1343084773, 1343084460, 1343084423, 1343084350, 1343084268, 1343084247, 1343084065, 1343084047, 1343084045]} final : True mtd_id 4302 list_pids : [1343089120, 1343088995, 1343088770, 1343088610, 1343088508, 1343088504, 1343088469, 1343088439, 1343088415, 1343088374, 1343088317, 1343087973, 1343087962, 1343087957, 1343087946, 1343087942, 1343087939] Looping around the photos to save general results len do output : 1 /21294338Didn'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, '2658690') ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690') ('4302', None, None, None, None, None, None, None, '2658690') ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21294338', 'None', None, None, None, None, '2658690'), ('4302', '21294338', '1343089120', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088995', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088770', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088610', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088508', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088504', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088469', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088439', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088415', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088374', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343088317', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087973', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087962', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087957', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087946', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087942', None, None, None, None, None, '2658690'), ('4302', '21294338', '1343087939', None, None, None, None, None, '2658690')] time used for this insertion : 0.02096080780029297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6703770160675049 time spend to save output : 0.021208524703979492 total time spend for step 5 : 0.6915855407714844 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 (2658690) 2.39user 2.07system 0:13.08elapsed 34%CPU (0avgtext+0avgdata 160488maxresident)k 26104inputs+16600outputs (108major+88411minor)pagefaults 0swaps