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 : 2066190 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 (2589162) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2589162) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572736 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2589162'] with mtr_portfolio_ids : ['20572736'] and first list_photo_ids : [] new path : /proc/2066190/ Name: python3 Umask: 0002 State: R (running) Tgid: 2066190 Ngid: 0 Pid: 2066190 PPid: 2066189 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2066190 NSpid: 2066190 NSpgid: 2036203 NSsid: 2036203 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99328 kB VmRSS: 99328 kB RssAnon: 59760 kB RssFile: 39568 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 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: 49 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2066190', 'Ngid': '0', 'Pid': '2066190', 'PPid': '2066189', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2066190', 'NSpid': '2066190', 'NSpgid': '2036203', 'NSsid': '2036203', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99328 kB', 'VmRSS': '99328 kB', 'RssAnon': '59760 kB', 'RssFile': '39568 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '49', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '2066190', '1106932', '0', '1106932', '865684', '99328', b'', 'marlene', '2589162') 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 (20572736) 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 (2589162 ) ) 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 (20572736) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337697813, 'portfolio_id': 20572736}, {'photo_id': 1337697793, 'portfolio_id': 20572736}, {'photo_id': 1337697785, 'portfolio_id': 20572736}, {'photo_id': 1337697773, 'portfolio_id': 20572736}, {'photo_id': 1337697768, 'portfolio_id': 20572736}, {'photo_id': 1337697725, 'portfolio_id': 20572736}, {'photo_id': 1337697723, 'portfolio_id': 20572736}, {'photo_id': 1337697714, 'portfolio_id': 20572736}, {'photo_id': 1337697663, 'portfolio_id': 20572736}, {'photo_id': 1337697651, 'portfolio_id': 20572736}, {'photo_id': 1337697359, 'portfolio_id': 20572736}, {'photo_id': 1337697302, 'portfolio_id': 20572736}, {'photo_id': 1337697294, 'portfolio_id': 20572736}, {'photo_id': 1337697283, 'portfolio_id': 20572736}, {'photo_id': 1337697280, 'portfolio_id': 20572736}, {'photo_id': 1337697253, 'portfolio_id': 20572736}, {'photo_id': 1337697249, 'portfolio_id': 20572736}, {'photo_id': 1337697242, 'portfolio_id': 20572736}, {'photo_id': 1337697240, 'portfolio_id': 20572736}, {'photo_id': 1337697141, 'portfolio_id': 20572736}, {'photo_id': 1337697134, 'portfolio_id': 20572736}, {'photo_id': 1337697131, 'portfolio_id': 20572736}, {'photo_id': 1337697104, 'portfolio_id': 20572736}, {'photo_id': 1337697081, 'portfolio_id': 20572736}, {'photo_id': 1337697077, 'portfolio_id': 20572736}, {'photo_id': 1337697073, 'portfolio_id': 20572736}, {'photo_id': 1337697070, 'portfolio_id': 20572736}, {'photo_id': 1337697064, 'portfolio_id': 20572736}, {'photo_id': 1337697026, 'portfolio_id': 20572736}, {'photo_id': 1337697023, 'portfolio_id': 20572736}, {'photo_id': 1337697020, 'portfolio_id': 20572736}, {'photo_id': 1337696992, 'portfolio_id': 20572736}, {'photo_id': 1337696988, 'portfolio_id': 20572736}, {'photo_id': 1337696982, 'portfolio_id': 20572736}, {'photo_id': 1337696975, 'portfolio_id': 20572736}, {'photo_id': 1337696972, 'portfolio_id': 20572736}, {'photo_id': 1337696969, 'portfolio_id': 20572736}, {'photo_id': 1337696809, 'portfolio_id': 20572736}, {'photo_id': 1337696805, 'portfolio_id': 20572736}, {'photo_id': 1337696802, 'portfolio_id': 20572736}, {'photo_id': 1337696799, 'portfolio_id': 20572736}, {'photo_id': 1337696791, 'portfolio_id': 20572736}, {'photo_id': 1337696782, 'portfolio_id': 20572736}, {'photo_id': 1337696714, 'portfolio_id': 20572736}, {'photo_id': 1337696709, 'portfolio_id': 20572736}, {'photo_id': 1337696706, 'portfolio_id': 20572736}, {'photo_id': 1337696658, 'portfolio_id': 20572736}, {'photo_id': 1337696653, 'portfolio_id': 20572736}, {'photo_id': 1337696650, 'portfolio_id': 20572736}, {'photo_id': 1337696646, 'portfolio_id': 20572736}, {'photo_id': 1337696641, 'portfolio_id': 20572736}, {'photo_id': 1337696639, 'portfolio_id': 20572736}, {'photo_id': 1337696617, 'portfolio_id': 20572736}, {'photo_id': 1337696614, 'portfolio_id': 20572736}, {'photo_id': 1337696604, 'portfolio_id': 20572736}, {'photo_id': 1337696595, 'portfolio_id': 20572736}, {'photo_id': 1337696592, 'portfolio_id': 20572736}, {'photo_id': 1337696535, 'portfolio_id': 20572736}, {'photo_id': 1337696531, 'portfolio_id': 20572736}, {'photo_id': 1337696522, 'portfolio_id': 20572736}, {'photo_id': 1337696514, 'portfolio_id': 20572736}, {'photo_id': 1337696126, 'portfolio_id': 20572736}, {'photo_id': 1337696124, 'portfolio_id': 20572736}, {'photo_id': 1337696121, 'portfolio_id': 20572736}, {'photo_id': 1337696118, 'portfolio_id': 20572736}, {'photo_id': 1337696116, 'portfolio_id': 20572736}] map_portfolio_id_photo_id: {20572736: [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651, 1337697359, 1337697302, 1337697294, 1337697283, 1337697280, 1337697253, 1337697249, 1337697242, 1337697240, 1337697141, 1337697134, 1337697131, 1337697104, 1337697081, 1337697077, 1337697073, 1337697070, 1337697064, 1337697026, 1337697023, 1337697020, 1337696992, 1337696988, 1337696982, 1337696975, 1337696972, 1337696969, 1337696809, 1337696805, 1337696802, 1337696799, 1337696791, 1337696782, 1337696714, 1337696709, 1337696706, 1337696658, 1337696653, 1337696650, 1337696646, 1337696641, 1337696639, 1337696617, 1337696614, 1337696604, 1337696595, 1337696592, 1337696535, 1337696531, 1337696522, 1337696514, 1337696126, 1337696124, 1337696121, 1337696118, 1337696116]} ##### 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.016276121139526367 #### 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 Fri Feb 14 20:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20572736) 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 : 20572736 get user id for portfolio 20572736 get sub ptf for main ptf 20572736, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'plastique', 'kraft', 'environnement', 'mal_croppe', 'papier', 'cartonnette', 'Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'metal'] 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`=20572736 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','plastique','kraft','environnement','mal_croppe','papier','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','metal')) 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`=20572736 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','plastique','kraft','environnement','mal_croppe','papier','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20572736, 'sub_port_id': 20572743, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234023, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'mal_croppe': {'main_port_id': 20572736, 'sub_port_id': 20572744, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234024, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 20572736, 'sub_port_id': 20572745, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234025, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'Carton_gris': {'main_port_id': 20572736, 'sub_port_id': 20572746, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234026, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'cartonnette': {'main_port_id': 20572736, 'sub_port_id': 20572747, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234027, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'metal': {'main_port_id': 20572736, 'sub_port_id': 20572748, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234028, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'plastique': {'main_port_id': 20572736, 'sub_port_id': 20572749, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234029, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'flou': {'main_port_id': 20572736, 'sub_port_id': 20572750, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234030, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'autre_refus': {'main_port_id': 20572736, 'sub_port_id': 20572751, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234031, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'kraft': {'main_port_id': 20572736, 'sub_port_id': 20572752, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234032, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'Carton_brun': {'main_port_id': 20572736, 'sub_port_id': 20572753, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234033, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}, 'papier': {'main_port_id': 20572736, 'sub_port_id': 20572754, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234034, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20572743 , 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=20572736 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 (20572743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572744 , 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=20572736 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 (20572744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572745 , 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=20572736 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 (20572745) result : ((1337696775,), (1337696776,), (1337696977,), (1337697009,), (1337697010,), (1337697011,), (1337697284,), (1337697285,), (1337697746,), (1337697762,), (1337697763,), (1337697764,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572746 , 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=20572736 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 (20572746) result : ((1337696783,), (1337696784,), (1337696785,), (1337696786,), (1337696787,), (1337697012,), (1337697054,), (1337697055,), (1337697138,), (1337697139,), (1337697290,), (1337697291,), (1337697292,), (1337697293,), (1337697772,), (1337697776,), (1337697777,), (1337697778,), (1337697779,), (1337697780,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572747 , 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=20572736 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 (20572747) result : ((1337696789,), (1337696790,), (1337696981,), (1337697014,), (1337697015,), (1337697033,), (1337697034,), (1337697100,), (1337697101,), (1337697295,), (1337697296,), (1337697783,), (1337697788,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572748 , 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=20572736 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 (20572748) result : ((1337697019,), (1337697791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572749 , 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=20572736 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 (20572749) result : ((1337696794,), (1337696795,), (1337697750,), (1337697751,), (1337697782,), (1337697787,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572750 , 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=20572736 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 (20572750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572751 , 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=20572736 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 (20572751) result : ((1337696778,), (1337696779,), (1337696780,), (1337696781,), (1337696978,), (1337696979,), (1337697286,), (1337697287,), (1337697705,), (1337697747,), (1337697765,), (1337697766,), (1337697767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572752 , 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=20572736 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 (20572752) result : ((1337696797,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572753 , 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=20572736 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 (20572753) result : ((1337696792,), (1337696793,), (1337696983,), (1337696984,), (1337696985,), (1337697016,), (1337697017,), (1337697018,), (1337697036,), (1337697102,), (1337697299,), (1337697300,), (1337697301,), (1337697749,), (1337697775,), (1337697792,), (1337697795,), (1337697797,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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 20572754 , 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=20572736 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 (20572754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20572736) result : ((1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) 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`=20572736 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','plastique','kraft','environnement','mal_croppe','papier','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','metal')) 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`=20572736 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','plastique','kraft','environnement','mal_croppe','papier','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20572736, 'sub_port_id': 20572755, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234035, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'mal_croppe': {'main_port_id': 20572736, 'sub_port_id': 20572756, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234036, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20572736, 'sub_port_id': 20572757, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234037, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'Carton_gris': {'main_port_id': 20572736, 'sub_port_id': 20572758, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234038, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'cartonnette': {'main_port_id': 20572736, 'sub_port_id': 20572759, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234039, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'metal': {'main_port_id': 20572736, 'sub_port_id': 20572760, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234040, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'plastique': {'main_port_id': 20572736, 'sub_port_id': 20572761, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234041, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'flou': {'main_port_id': 20572736, 'sub_port_id': 20572762, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234042, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'autre_refus': {'main_port_id': 20572736, 'sub_port_id': 20572763, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234043, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'kraft': {'main_port_id': 20572736, 'sub_port_id': 20572764, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234044, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'Carton_brun': {'main_port_id': 20572736, 'sub_port_id': 20572765, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234045, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}, 'papier': {'main_port_id': 20572736, 'sub_port_id': 20572766, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13234046, 'last_updated_at': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 19, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 19, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20572766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20572754 lien utilise dans velours : https://www.fotonower.com/velours/20572755,20572756,20572757,20572758,20572759,20572760,20572761,20572762,20572763,20572764,20572765,20572766?tags=environnement,mal_croppe,Teint_Dans_La_Masse,Carton_gris,cartonnette,metal,plastique,flou,autre_refus,kraft,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20572736]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] map_info['map_portfolio_photo'] : {20572736: [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651, 1337697359, 1337697302, 1337697294, 1337697283, 1337697280, 1337697253, 1337697249, 1337697242, 1337697240, 1337697141, 1337697134, 1337697131, 1337697104, 1337697081, 1337697077, 1337697073, 1337697070, 1337697064, 1337697026, 1337697023, 1337697020, 1337696992, 1337696988, 1337696982, 1337696975, 1337696972, 1337696969, 1337696809, 1337696805, 1337696802, 1337696799, 1337696791, 1337696782, 1337696714, 1337696709, 1337696706, 1337696658, 1337696653, 1337696650, 1337696646, 1337696641, 1337696639, 1337696617, 1337696614, 1337696604, 1337696595, 1337696592, 1337696535, 1337696531, 1337696522, 1337696514, 1337696126, 1337696124, 1337696121, 1337696118, 1337696116]} final : False mtd_id 4302 list_pids : [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] Looping around the photos to save general results len do output : 1 /20572736. 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, '2589162') ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20572736', "{'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754}", None, None, None, None, '2589162'), ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162')] time used for this insertion : 0.017056703567504883 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2719860076904297 time spend to save output : 0.017303943634033203 total time spend for step 1 : 2.289289951324463 step2:final Fri Feb 14 20:01:00 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 (20572736) 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 20572736 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337696126,1337696124,1337696121,1337696118,1337696116,1337696535,1337696531,1337696522,1337696514,1337696617,1337696614,1337696604,1337696595,1337696592,1337696658,1337696653,1337696650,1337696646,1337696641,1337696639,1337696714,1337696709,1337696706,1337696809,1337696805,1337696802,1337696799,1337696791,1337696782,1337696992,1337696988,1337696982,1337696975,1337696972,1337696969,1337697026,1337697023,1337697020,1337697081,1337697077,1337697073,1337697070,1337697064,1337697141,1337697134,1337697131,1337697104,1337697253,1337697249,1337697242,1337697240,1337697359,1337697302,1337697294,1337697283,1337697280,1337697725,1337697723,1337697714,1337697663,1337697651,1337697813,1337697793,1337697785,1337697773,1337697768); 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([20572736]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} new output for save of step final : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] map_info['map_portfolio_photo'] : {20572736: [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651, 1337697359, 1337697302, 1337697294, 1337697283, 1337697280, 1337697253, 1337697249, 1337697242, 1337697240, 1337697141, 1337697134, 1337697131, 1337697104, 1337697081, 1337697077, 1337697073, 1337697070, 1337697064, 1337697026, 1337697023, 1337697020, 1337696992, 1337696988, 1337696982, 1337696975, 1337696972, 1337696969, 1337696809, 1337696805, 1337696802, 1337696799, 1337696791, 1337696782, 1337696714, 1337696709, 1337696706, 1337696658, 1337696653, 1337696650, 1337696646, 1337696641, 1337696639, 1337696617, 1337696614, 1337696604, 1337696595, 1337696592, 1337696535, 1337696531, 1337696522, 1337696514, 1337696126, 1337696124, 1337696121, 1337696118, 1337696116]} final : False mtd_id 4302 list_pids : [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] Looping around the photos to save general results len do output : 10 /1337697813.Didn't retrieve data . /1337697793.Didn't retrieve data . /1337697785.Didn't retrieve data . /1337697773.Didn't retrieve data . /1337697768.Didn't retrieve data . /1337697725.Didn't retrieve data . /1337697723.Didn't retrieve data . /1337697714.Didn't retrieve data . /1337697663.Didn't retrieve data . /1337697651.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, '2589162') ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20572736', '1337697813', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697793', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697785', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697773', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697768', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697725', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697723', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697714', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697663', '0.05350922022841387', None, None, None, None, '2589162'), ('4302', '20572736', '1337697651', '0.05350922022841387', None, None, None, None, '2589162')] time used for this insertion : 0.01392674446105957 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07194137573242188 time spend to save output : 0.014472484588623047 total time spend for step 2 : 0.08641386032104492 step3:velours_tree Fri Feb 14 20:01:00 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 : {20572736: [{'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754}]} input_args_next_step : {20572736: ()} output_args : {20572736: [{'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754}]} args : 20572736 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20572736) 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([20572736]) 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.3508720397949219 time spend to save output : 8.106231689453125e-05 total time spend for step 3 : 0.3509531021118164 step4:send_mail_cod Fri Feb 14 20:01:00 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 : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} input_args_next_step : {1337697813: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697813 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697793 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697785 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697773 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697768 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697725 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697723 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697714 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697663 depend.output_id : 0 input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ()} output_args : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',)} args : 1337697651 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 : {20572736: [{'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754}]} input_args_next_step : {1337697813: ('0.05350922022841387',), 1337697793: ('0.05350922022841387',), 1337697785: ('0.05350922022841387',), 1337697773: ('0.05350922022841387',), 1337697768: ('0.05350922022841387',), 1337697725: ('0.05350922022841387',), 1337697723: ('0.05350922022841387',), 1337697714: ('0.05350922022841387',), 1337697663: ('0.05350922022841387',), 1337697651: ('0.05350922022841387',), 20572736: ()} output_args : {20572736: [{'environnement': 20572743, 'mal_croppe': 20572744, 'Teint_Dans_La_Masse': 20572745, 'Carton_gris': 20572746, 'cartonnette': 20572747, 'metal': 20572748, 'plastique': 20572749, 'flou': 20572750, 'autre_refus': 20572751, 'kraft': 20572752, 'Carton_brun': 20572753, 'papier': 20572754}]} args : 20572736 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 :11, first value : ('0.05350922022841387',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20572736) 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 (1337697813,1337697793,1337697785,1337697773,1337697768,1337697725,1337697723,1337697714,1337697663,1337697651) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337697651 begin to download photo : 1337697723 begin to download photo : 1337697773 begin to download photo : 1337697813 download finish for photo 1337697773 begin to download photo : 1337697785 download finish for photo 1337697651 begin to download photo : 1337697663 download finish for photo 1337697723 begin to download photo : 1337697725 download finish for photo 1337697813 download finish for photo 1337697663 begin to download photo : 1337697714 download finish for photo 1337697725 begin to download photo : 1337697768 download finish for photo 1337697785 begin to download photo : 1337697793 download finish for photo 1337697768 download finish for photo 1337697714 download finish for photo 1337697793 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette205727441739559661/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20572736_14-02-2025_20_01_01.pdf 20572744 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=20572744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205727441739559661 20572747 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=20572747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337696789: '1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513959_0.png', 1337696790: '1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514097_0.png', 1337696981: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515571_0.png', 1337697014: '1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515938_0.png', 1337697015: '1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515959_0.png', 1337697033: '1739559131_4135728_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516186_0.png', 1337697034: '1739559131_4135728_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516187_0.png', 1337697100: '1739559212_4136871_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516186_0.png', 1337697101: '1739559212_4136871_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516187_0.png', 1337697295: '1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520473_0.png', 1337697296: '1739559352_4141341_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520517_0.png', 1337697783: '1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520473_0.png', 1337697788: '1739559473_4142933_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520517_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d3c5d31633f52976507219e14141bba7_20102151.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/27e3da8c42c1d99412e5fad2fe8ec47d_13538724.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/573b9401cf2acc5561923f78f9544fdc_39724936.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/ef947edc80b5214bf2faa01c9d2db55b_23806001.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f8dbc1dcdfadeed91002f01af7bd4335_29612595.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/db9c6518d3cc050e920f7e51a0b6da77_44979549.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/821f17d9cbd0231c27dd25067de0cb69_61803844.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/db9c6518d3cc050e920f7e51a0b6da77_73601695.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/821f17d9cbd0231c27dd25067de0cb69_84910336.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9987828d8ab25456541dd1cab97457d5_99660802.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/67e7306b60a2c86545eb469a2bbd7aa6_39249143.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9987828d8ab25456541dd1cab97457d5_41411372.png change filename to text .imagette205727471739559661/ imagette205727471739559661/1739559352_4141341_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520517_0.png.png imagette205727471739559661/1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515959_0.png.png imagette205727471739559661/1739559212_4136871_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516187_0.png.png imagette205727471739559661/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515571_0.png.png imagette205727471739559661/1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514097_0.png.png imagette205727471739559661/1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515938_0.png.png imagette205727471739559661/1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513959_0.png.png imagette205727471739559661/1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520473_0.png.png imagette205727471739559661/1739559212_4136871_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516186_0.png.png imagette205727471739559661/1739559473_4142933_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520517_0.png.png imagette205727471739559661/1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520473_0.png.png imagette205727471739559661/1739559131_4135728_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516187_0.png.png imagette205727471739559661/1739559131_4135728_1337696658_b6b3836c139a0ae62c914e883a19a9f2_rle_crop_3675516186_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/67e7306b60a2c86545eb469a2bbd7aa6_75619805.png imagette205727471739559661 20572748 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=20572748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337697019: '1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515978_0.png', 1337697791: '1739559495_4143278_1337697064_326fb56577656d5a3ad5a37d92a19494_rle_crop_3675526466_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/44dec7faabfc4f8f0b04078ba40b204e_90709592.png change filename to text .imagette205727481739559661/ imagette205727481739559661/1739559495_4143278_1337697064_326fb56577656d5a3ad5a37d92a19494_rle_crop_3675526466_0.png.png imagette205727481739559661/1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515978_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4c1a8d4518f70edf224e26a5e09e4ba2_30347405.png imagette205727481739559661 20572749 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=20572749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337696794: '1739558953_4129074_1337696121_9558837804a8155d6920568d5b187d9d_rle_crop_3675513983_0.png', 1337696795: '1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514079_0.png', 1337697750: '1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523022_0.png', 1337697751: '1739559455_4142617_1337697131_6e81a0cb706c8b592ce5e5f72892c4c1_rle_crop_3675523043_0.png', 1337697782: '1739559495_4143278_1337697141_64c1ecec1ff57533227b2714e1b411f6_rle_crop_3675526345_0.png', 1337697787: '1739559495_4143278_1337697073_deb0e7b30846dcfed7a0664bc5c3b6a1_rle_crop_3675526410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f21c06e95b92a15d266cb400796e562a_55268694.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/a2927d6aec4251f0458f7396925d148f_8313679.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/3ab99d41cf3b860cad02ddaa5ffbd72f_94749589.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0f80a0ca93e4834d4f4c464ff32c5a0c_28818789.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/da2b972b5b37517d4bf4c9beb5a57fad_83560208.png change filename to text .imagette205727491739559661/ imagette205727491739559661/1739559455_4142617_1337697131_6e81a0cb706c8b592ce5e5f72892c4c1_rle_crop_3675523043_0.png.png imagette205727491739559661/1739559495_4143278_1337697073_deb0e7b30846dcfed7a0664bc5c3b6a1_rle_crop_3675526410_0.png.png imagette205727491739559661/1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523022_0.png.png imagette205727491739559661/1739559495_4143278_1337697141_64c1ecec1ff57533227b2714e1b411f6_rle_crop_3675526345_0.png.png imagette205727491739559661/1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514079_0.png.png imagette205727491739559661/1739558953_4129074_1337696121_9558837804a8155d6920568d5b187d9d_rle_crop_3675513983_0.png.png imagette205727501739559662/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/5b6cec5f8a6f102b35a2282c488bcf17_59989921.png imagette205727491739559661 20572750 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=20572750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205727501739559662 20572751 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=20572751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337696778: '1739558953_4129074_1337696126_9128a5a6387d0066f5bb9a8c5e748bf6_rle_crop_3675513949_0.png', 1337696779: '1739558953_4129074_1337696126_9128a5a6387d0066f5bb9a8c5e748bf6_rle_crop_3675513948_0.png', 1337696780: '1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513957_0.png', 1337696781: '1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514074_0.png', 1337696978: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515574_0.png', 1337696979: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515573_0.png', 1337697286: '1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520468_0.png', 1337697287: '1739559352_4141341_1337696975_9891f2662088bfd05ba306b4ff9eb5c1_rle_crop_3675520490_0.png', 1337697705: '1739559434_4142360_1337697242_fc0f805cb98b04ed2b46488fadd76b92_rle_crop_3675520903_0.png', 1337697747: '1739559455_4142617_1337697104_9fcad3fbfeee42c3a78361e66cb9602b_rle_crop_3675524728_0.png', 1337697765: '1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520468_0.png', 1337697766: '1739559473_4142933_1337696975_9891f2662088bfd05ba306b4ff9eb5c1_rle_crop_3675520490_0.png', 1337697767: '1739559495_4143278_1337697077_480a2ae7667b70ff67665928940c424c_rle_crop_3675526385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/92e1300ae6328f9bdcdf049a86fd4493_82029029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/70b49423e6a20b4bc9a252afe9c9e793_94368145.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/688d3a103c3e0be1ff239a47b6c2db95_80913777.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0a64f8be642b09911af5da6eb84f5715_10766222.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d59642e4ece8bbd3620da1d1059ab5db_33658926.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/142ac38f927b9e8e3463496ee559c956_87864679.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/14fc49965cab617931da8df9613190d7_1906338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/3a8ea9cb7043f97517f971a566d40105_50651146.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/7ee9efbdf93475b565feb864ff41e785_82452544.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e6ad8e13887dc987b0c6659a3d8ae40f_41248473.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/14fc49965cab617931da8df9613190d7_1615494.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/3a8ea9cb7043f97517f971a566d40105_60779054.png change filename to text .imagette205727511739559662/ imagette205727511739559662/1739559495_4143278_1337697077_480a2ae7667b70ff67665928940c424c_rle_crop_3675526385_0.png.png imagette205727511739559662/1739559352_4141341_1337696975_9891f2662088bfd05ba306b4ff9eb5c1_rle_crop_3675520490_0.png.png imagette205727511739559662/1739559455_4142617_1337697104_9fcad3fbfeee42c3a78361e66cb9602b_rle_crop_3675524728_0.png.png imagette205727511739559662/1739559434_4142360_1337697242_fc0f805cb98b04ed2b46488fadd76b92_rle_crop_3675520903_0.png.png imagette205727511739559662/1739559473_4142933_1337696975_9891f2662088bfd05ba306b4ff9eb5c1_rle_crop_3675520490_0.png.png imagette205727511739559662/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515573_0.png.png imagette205727511739559662/1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514074_0.png.png imagette205727511739559662/1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520468_0.png.png imagette205727511739559662/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515574_0.png.png imagette205727511739559662/1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520468_0.png.png imagette205727511739559662/1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513957_0.png.png imagette205727511739559662/1739558953_4129074_1337696126_9128a5a6387d0066f5bb9a8c5e748bf6_rle_crop_3675513948_0.png.png imagette205727511739559662/1739558953_4129074_1337696126_9128a5a6387d0066f5bb9a8c5e748bf6_rle_crop_3675513949_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f503c4a47eca641558b62ca8de293e67_39430639.png imagette205727511739559662 20572752 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=20572752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337696797: '1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513960_0.png'} change filename to text .imagette205727521739559662/ imagette205727521739559662/1739558953_4129074_1337696124_9f26dc329014ba6d07958055bc8df63b_rle_crop_3675513960_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1dd3d588f94d177708b37f55a63f5ce8_29391216.png imagette205727521739559662 20572745 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=20572745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337696775: '1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514085_0.png', 1337696776: '1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514100_0.png', 1337696977: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515576_0.png', 1337697009: '1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515975_0.png', 1337697010: '1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515976_0.png', 1337697011: '1739559112_4135448_1337696646_db3b89896510da7be1415391be698bf3_rle_crop_3675516039_0.png', 1337697284: '1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520375_0.png', 1337697285: '1739559352_4141341_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520521_0.png', 1337697746: '1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523029_0.png', 1337697762: '1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520375_0.png', 1337697763: '1739559473_4142933_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520521_0.png', 1337697764: '1739559495_4143278_1337697141_64c1ecec1ff57533227b2714e1b411f6_rle_crop_3675526347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/117badcfd5270792adfd6a03cf0dc1ff_32362956.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/98664735435971fed2df35534bdfdf04_22767836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/597f2b1e9488c36e31f26a917804286e_71535060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/8f6945f69cdeaa48df4f6ee8892f5254_5934766.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4b7f718456a1a3a6e7037b5a47695c94_93047735.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4b160a94b93c4cb10c6c7cae8d32f6a1_45029092.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e47bb1659503c6c35bbb5a2736b190bf_18660720.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0d8d01a790229f8773de0ae8c78ddaac_42398194.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/15809fcb575ad3f3086f5cebcc719d9f_79123114.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e47bb1659503c6c35bbb5a2736b190bf_44473112.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0d8d01a790229f8773de0ae8c78ddaac_35860285.png change filename to text .imagette205727451739559663/ imagette205727451739559663/1739559352_4141341_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520521_0.png.png imagette205727451739559663/1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520375_0.png.png imagette205727451739559663/1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515975_0.png.png imagette205727451739559663/1739559112_4135448_1337696646_db3b89896510da7be1415391be698bf3_rle_crop_3675516039_0.png.png imagette205727451739559663/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515576_0.png.png imagette205727451739559663/1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520375_0.png.png imagette205727451739559663/1739559112_4135448_1337696650_75c0775ddffa9a5d9cd9c2584923677b_rle_crop_3675515976_0.png.png imagette205727451739559663/1739559495_4143278_1337697141_64c1ecec1ff57533227b2714e1b411f6_rle_crop_3675526347_0.png.png imagette205727451739559663/1739559473_4142933_1337696969_d5984d99efa33c57d4b35127c11d1e6e_rle_crop_3675520521_0.png.png imagette205727451739559663/1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514100_0.png.png imagette205727451739559663/1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514085_0.png.png imagette205727451739559663/1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523029_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6338d4c343032d6d214d774d0359f504_25176914.png imagette205727451739559663 20572746 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=20572746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337697290: '1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520370_0.png', 1337697780: '1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520502_0.png', 1337697779: '1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_bib_crop_3675520501_0.jpg', 1337697778: '1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675526417_0.png', 1337697777: '1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520498_0.png', 1337697776: '1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520370_0.png', 1337697772: '1739559495_4143278_1337697073_deb0e7b30846dcfed7a0664bc5c3b6a1_rle_crop_3675526405_0.png', 1337697293: '1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520502_0.png', 1337697292: '1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520501_0.png', 1337697291: '1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520498_0.png', 1337696783: '1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513786_0.png', 1337697139: '1739559233_4137197_1337696514_3ac1da2e8c421f81381d86b0296fdd1b_rle_crop_3675516416_0.png', 1337697138: '1739559233_4137197_1337696531_641c8d36b5ce9f4ab508d48f79473580_rle_crop_3675516388_0.png', 1337697055: '1739559154_4136018_1337696514_3ac1da2e8c421f81381d86b0296fdd1b_rle_crop_3675516416_0.png', 1337697054: '1739559154_4136018_1337696531_641c8d36b5ce9f4ab508d48f79473580_rle_crop_3675516388_0.png', 1337697012: '1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515955_0.png', 1337696787: '1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514078_0.png', 1337696786: '1739558953_4129074_1337696121_9558837804a8155d6920568d5b187d9d_rle_crop_3675513977_0.png', 1337696785: '1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513794_0.png', 1337696784: '1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513788_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e17f4a73552b6753eb4713f38fd98f9b_99152906.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d5ee3031295089b490f1e80317bf6bba_79911448.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f9b5441ba04b69eaeeb71d4ffdf32bba_41904553.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/c4be0662160549ecb4eee0ad0b2e495c_80657489.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/33aecf837c83bc647c28a8bb07569b8f_29811044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e17f4a73552b6753eb4713f38fd98f9b_82457595.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/b6067deb2b665300538de8e2e4a4454d_95202065.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d5ee3031295089b490f1e80317bf6bba_88811096.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f65846dcb9d6eaf720c37499b6b3df21_34719341.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/33aecf837c83bc647c28a8bb07569b8f_33288185.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4c547818f5fde0edf93042509c6ca08c_85221420.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/33f9442e36ddca99eb34f4074d45f6b2_5330827.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/64e4becaa3897d6b120421255a9e7a89_20316533.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/33f9442e36ddca99eb34f4074d45f6b2_56516347.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/64e4becaa3897d6b120421255a9e7a89_89445451.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/8b09f1167d62be6fba84eba826230ad9_79996875.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/bfa12b5b87aefb4c1b190724edbe4919_3522740.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1e90b39f67cc685207808ddfb6753430_15578783.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d194314d0701e89003286603509fb4b6_80566660.png change filename to text .imagette205727461739559663/ imagette205727461739559663/1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520502_0.png.png imagette205727461739559663/1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520498_0.png.png imagette205727461739559663/1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513794_0.png.png imagette205727461739559663/1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520370_0.png.png imagette205727461739559663/1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520498_0.png.png imagette205727461739559663/1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513788_0.png.png imagette205727461739559663/1739559154_4136018_1337696514_3ac1da2e8c421f81381d86b0296fdd1b_rle_crop_3675516416_0.png.png imagette205727461739559663/1739559233_4137197_1337696514_3ac1da2e8c421f81381d86b0296fdd1b_rle_crop_3675516416_0.png.png imagette205727461739559663/1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_bib_crop_3675520501_0.jpg.jpg imagette205727461739559663/1739559495_4143278_1337697073_deb0e7b30846dcfed7a0664bc5c3b6a1_rle_crop_3675526405_0.png.png imagette205727461739559663/1739558953_4129074_1337696121_9558837804a8155d6920568d5b187d9d_rle_crop_3675513977_0.png.png imagette205727461739559663/1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675526417_0.png.png imagette205727461739559663/1739559154_4136018_1337696531_641c8d36b5ce9f4ab508d48f79473580_rle_crop_3675516388_0.png.png imagette205727461739559663/1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515955_0.png.png imagette205727461739559663/1739559352_4141341_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520501_0.png.png imagette205727461739559663/1739559473_4142933_1337696972_ff1d2c7381ab11ffb9ee02c8d32e7250_rle_crop_3675520502_0.png.png imagette205727461739559663/1739559233_4137197_1337696531_641c8d36b5ce9f4ab508d48f79473580_rle_crop_3675516388_0.png.png imagette205727461739559663/1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513786_0.png.png imagette205727461739559663/1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520370_0.png.png imagette205727461739559663/1739558953_4129074_1337696118_de1597d2178579322d06f62b78703494_rle_crop_3675514078_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1754dfd4f72fb3c776ccd1ce834dc3a5_50480314.png imagette205727461739559663 20572753 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=20572753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337697102: '1739559212_4136871_1337696592_25060b2562e0f695ab4248a72066fbc5_rle_crop_3675516275_0.png', 1337697797: '1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520480_0.png', 1337697795: '1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520374_0.png', 1337697792: '1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520378_0.png', 1337697775: '1739559495_4143278_1337697064_326fb56577656d5a3ad5a37d92a19494_rle_crop_3675526468_0.png', 1337697749: '1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523026_0.png', 1337697301: '1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520480_0.png', 1337697300: '1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520374_0.png', 1337697299: '1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520378_0.png', 1337696792: '1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513793_0.png', 1337697036: '1739559131_4135728_1337696592_25060b2562e0f695ab4248a72066fbc5_rle_crop_3675516275_0.png', 1337697018: '1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515962_0.png', 1337697017: '1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515944_0.png', 1337697016: '1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515945_0.png', 1337696985: '1739559093_4135264_1337696706_013ffb4693be649fdf803a4aca8de4b5_rle_crop_3675515591_0.png', 1337696984: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515575_0.png', 1337696983: '1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515580_0.png', 1337696793: '1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514102_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/607c01697fd1b837e81f3d632af0a813_44261488.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0f8858b732cf47c4c0077299c3d62406_79329200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6a5484dcdb0203f87a183b6717cc070b_24103447.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/aa8dbf757d0bd1cf3d8fa0c411990bf6_94779930.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/534dd77eb128cf915753882557e2da27_68046263.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/a0ca1153473bce9031894645b946339d_81468507.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0f8858b732cf47c4c0077299c3d62406_50173388.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6a5484dcdb0203f87a183b6717cc070b_40128250.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/aa8dbf757d0bd1cf3d8fa0c411990bf6_4472171.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9649981ad504beefcbb80bf2b1ad0d13_57664510.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/607c01697fd1b837e81f3d632af0a813_50623635.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/cd466b79fdff712d2dada5c5087ef38e_97989203.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4c0c066dc14ea543c8d3eeb10d14ccd4_94177370.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6eaa2134e114d8c65dd3ba8bf7354a0e_76415354.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/82a447f4e3e1a11d40f0a1df439e2522_89649144.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/0a0753b5091ea2adcdf342eaa3e3b1e7_575790.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/a9c81eff740b71be7038c19d10063441_38882360.png change filename to text .imagette205727531739559664/ imagette205727531739559664/1739559131_4135728_1337696592_25060b2562e0f695ab4248a72066fbc5_rle_crop_3675516275_0.png.png imagette205727531739559664/1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520378_0.png.png imagette205727531739559664/1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520378_0.png.png imagette205727531739559664/1739559112_4135448_1337696653_767fd5dea5132823c748c1ac09948b6d_rle_crop_3675515962_0.png.png imagette205727531739559664/1739559473_4142933_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520480_0.png.png imagette205727531739559664/1739559473_4142933_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520374_0.png.png imagette205727531739559664/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515575_0.png.png imagette205727531739559664/1739559352_4141341_1337696988_7dafea9d4dc120240c3e2d0346a85c9b_rle_crop_3675520374_0.png.png imagette205727531739559664/1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515945_0.png.png imagette205727531739559664/1739559093_4135264_1337696706_013ffb4693be649fdf803a4aca8de4b5_rle_crop_3675515591_0.png.png imagette205727531739559664/1739559093_4135264_1337696709_b6c3431cbacbaaa265e9ffa1a8ef672f_rle_crop_3675515580_0.png.png imagette205727531739559664/1739559495_4143278_1337697064_326fb56577656d5a3ad5a37d92a19494_rle_crop_3675526468_0.png.png imagette205727531739559664/1739559455_4142617_1337697134_37b1c0e87e362d69c074c186ad027f43_rle_crop_3675523026_0.png.png imagette205727531739559664/1739558953_4129074_1337696116_e89c22a218e70e85c254b8d3c36212ba_rle_crop_3675514102_0.png.png imagette205727531739559664/1739559352_4141341_1337696982_3c37ed8f1fed2ca91195f7b067ee358a_rle_crop_3675520480_0.png.png imagette205727531739559664/1739558953_4129074_1337696535_232a51a9622a3a957afdc3f82db6cfa8_rle_crop_3675513793_0.png.png imagette205727531739559664/1739559112_4135448_1337696714_8ab1661d78c56b532353f33296250ca5_rle_crop_3675515944_0.png.png imagette205727531739559664/1739559212_4136871_1337696592_25060b2562e0f695ab4248a72066fbc5_rle_crop_3675516275_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/cfd07c04377891c37518b101e9744c41_2974518.png imagette205727531739559664 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20572736 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20572755,20572756,20572757,20572758,20572759,20572760,20572761,20572762,20572763,20572764,20572765,20572766?tags=environnement,mal_croppe,Teint_Dans_La_Masse,Carton_gris,cartonnette,metal,plastique,flou,autre_refus,kraft,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1337697813] : ('0.05350922022841387',) no score found for photo 1337697813 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697793] : ('0.05350922022841387',) no score found for photo 1337697793 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697785] : ('0.05350922022841387',) no score found for photo 1337697785 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697773] : ('0.05350922022841387',) no score found for photo 1337697773 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697768] : ('0.05350922022841387',) no score found for photo 1337697768 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697725] : ('0.05350922022841387',) no score found for photo 1337697725 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697723] : ('0.05350922022841387',) no score found for photo 1337697723 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697714] : ('0.05350922022841387',) no score found for photo 1337697714 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697663] : ('0.05350922022841387',) no score found for photo 1337697663 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com args[1337697651] : ('0.05350922022841387',) no score found for photo 1337697651 apple ('0.05350922022841387',) We are sending mail with results at report@fotonower.com refus_total : 0.05350922022841387 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=20572736 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_P20572736_14-02-2025_20_01_01.pdf results_Auto_P20572736_14-02-2025_20_01_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20572736_14-02-2025_20_01_01.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','20572736','results_Auto_P20572736_14-02-2025_20_01_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20572736_14-02-2025_20_01_01.pdf','pdf','','0.28','0.05350922022841387') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20572736]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] map_info['map_portfolio_photo'] : {20572736: [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651, 1337697359, 1337697302, 1337697294, 1337697283, 1337697280, 1337697253, 1337697249, 1337697242, 1337697240, 1337697141, 1337697134, 1337697131, 1337697104, 1337697081, 1337697077, 1337697073, 1337697070, 1337697064, 1337697026, 1337697023, 1337697020, 1337696992, 1337696988, 1337696982, 1337696975, 1337696972, 1337696969, 1337696809, 1337696805, 1337696802, 1337696799, 1337696791, 1337696782, 1337696714, 1337696709, 1337696706, 1337696658, 1337696653, 1337696650, 1337696646, 1337696641, 1337696639, 1337696617, 1337696614, 1337696604, 1337696595, 1337696592, 1337696535, 1337696531, 1337696522, 1337696514, 1337696126, 1337696124, 1337696121, 1337696118, 1337696116]} final : False mtd_id 4302 list_pids : [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] 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, '2589162') ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '20572736', '1337697813', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162')] time used for this insertion : 0.012907981872558594 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.920032501220703 time spend to save output : 0.013114452362060547 total time spend for step 4 : 5.933146953582764 step5:split_time_score Fri Feb 14 20:01:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20572736'] 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 : [('20572736',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20572736) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337697813: {'path': 'temp/1739559660_2066190_1337697813_435898a080b438d4b2d5a9cec1fc50ac.jpg', 'extension': 'jpg'}, 1337697723: {'path': 'temp/1739559660_2066190_1337697723_3b615f64e7e1e387ec8957d906d913b9.jpg', 'extension': 'jpg'}, 1337697725: {'path': 'temp/1739559660_2066190_1337697725_326618c869cc0b436415f0fa321aaf44.jpg', 'extension': 'jpg'}, 1337697768: {'path': 'temp/1739559660_2066190_1337697768_7be22e5589a9f5d9e9d0a13e747843e1.jpg', 'extension': 'jpg'}, 1337697651: {'path': 'temp/1739559660_2066190_1337697651_09b40944180b86f025a64810bdf0fd01.jpg', 'extension': 'jpg'}, 1337697663: {'path': 'temp/1739559660_2066190_1337697663_38a1429918277ddd2133e1e9feba58a7.jpg', 'extension': 'jpg'}, 1337697714: {'path': 'temp/1739559660_2066190_1337697714_cc34827cb86ff8187118609b227b2eaf.jpg', 'extension': 'jpg'}, 1337697773: {'path': 'temp/1739559660_2066190_1337697773_486e58e34e4af20047fc1bdca66a2be6.jpg', 'extension': 'jpg'}, 1337697785: {'path': 'temp/1739559660_2066190_1337697785_ea029e39fef315433b159af19a93f6b9.jpg', 'extension': 'jpg'}, 1337697793: {'path': 'temp/1739559660_2066190_1337697793_0ff575a5db23c7d7d5306b8047519565.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 = 20572736; (('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 = 20572736 group by h (('19', 66),) 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=20572736 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 (20572736) 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 (20572736) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14022025 20572736 Nombre de photos uploadées : 66 / 23040 (0%) 14022025 20572736 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 14022025 20572736 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1337696126, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9128a5a6387d0066f5bb9a8c5e748bf6.jpg', 'username': None, 'uploaded_at': 1739558767, 'text': 'image_14022025_19_45_04_10150.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337696124, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9f26dc329014ba6d07958055bc8df63b.jpg', 'username': None, 'uploaded_at': 1739558767, 'text': 'image_14022025_19_45_14_9126.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337696121, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9558837804a8155d6920568d5b187d9d.jpg', 'username': None, 'uploaded_at': 1739558767, 'text': 'image_14022025_19_45_24_10143.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337696118, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/de1597d2178579322d06f62b78703494.jpg', 'username': None, 'uploaded_at': 1739558767, 'text': 'image_14022025_19_45_34_10139.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.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018491744995117188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20572736, '2025-02-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1602310,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02566671371459961 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= 1602310 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1602310, 'dashboard_run_id': 1612360, 'mtr_portfolio_id': 20570869, 'dashboard_result_id': 8907045, '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_P20570869_14-02-2025_19_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20570915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20570916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20570917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20570918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20570919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20570920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20570921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20570922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20570923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20570924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20570925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20570926, 'pht': 3726}}"}, {'dashboat_entry_day': 1602310, 'dashboard_run_id': 1612360, 'mtr_portfolio_id': 20571584, 'dashboard_result_id': 8907046, '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_P20571584_14-02-2025_19_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20571635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20571636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20571637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20571638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20571639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20571640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20571641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20571642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20571643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20571644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20571645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20571646, 'pht': 3726}}"}, {'dashboat_entry_day': 1602310, 'dashboard_run_id': 1612360, 'mtr_portfolio_id': 20572736, 'dashboard_result_id': 8907047, '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_P20572736_14-02-2025_19_59_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20572743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20572744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20572745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20572746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20572747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20572748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20572749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20572750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20572751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20572752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20572753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20572754, '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 = 20570869 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': 2589016, 'mtr_portfolio_id': 20570869, 'created_at': datetime.datetime(2025, 2, 14, 19, 32, 59), 'result': '0.05463100857062802', 'result_long': None, 'result_double': None}] Qualite : 0.05463100857062802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20570869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20570869_14-02-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20570869 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_P20570869_14-02-2025_19_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20570915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20570916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20570917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20570918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20570919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20570920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20570921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20570922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20570923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20570924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20570925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20570926, 'pht': 3726}}" where mtr_portfolio_id = 20570869 and dashboard_run_id = 1612360 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`=20570869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8907045, 0.05463100857062802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20570869_14-02-2025_19_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20570915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20570916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20570917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20570918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20570919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20570920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20570921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20570922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20570923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20570924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20570925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20570926, '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 = 20571584 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': 2589087, 'mtr_portfolio_id': 20571584, 'created_at': datetime.datetime(2025, 2, 14, 19, 48, 57), 'result': '0.07209251732162264', 'result_long': None, 'result_double': None}] Qualite : 0.07209251732162264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20571584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20571584_14-02-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20571584 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_P20571584_14-02-2025_19_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20571635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20571636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20571637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20571638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20571639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20571640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20571641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20571642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20571643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20571644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20571645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20571646, 'pht': 3726}}" where mtr_portfolio_id = 20571584 and dashboard_run_id = 1612360 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`=20571584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8907046, 0.07209251732162264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20571584_14-02-2025_19_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20571635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20571636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20571637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20571638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20571639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20571640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20571641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20571642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20571643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20571644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20571645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20571646, '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 = 20572736 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': 2589162, 'mtr_portfolio_id': 20572736, 'created_at': datetime.datetime(2025, 2, 14, 20, 1), 'result': '0.05350922022841387', 'result_long': None, 'result_double': None}] Qualite : 0.05350922022841387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20572736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20572736_14-02-2025_20_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20572736 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_P20572736_14-02-2025_20_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20572743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20572744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20572745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20572746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20572747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20572748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20572749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20572750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20572751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20572752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20572753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20572754, 'pht': 3726}}" where mtr_portfolio_id = 20572736 and dashboard_run_id = 1612360 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`=20572736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8907047, 0.05350922022841387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20572736_14-02-2025_20_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20572743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20572744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20572745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20572746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20572747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20572748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20572749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20572750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20572751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20572752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20572753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20572754, '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 (20570869,20571584,20572736) result : ((1337689692,), (1337689716,), (1337689767,), (1337689835,), (1337689915,), (1337690444,), (1337690500,), (1337690560,), (1337690621,), (1337690935,), (1337690994,), (1337691048,), (1337691069,), (1337691071,), (1337691074,), (1337691189,), (1337691253,), (1337691281,), (1337691297,), (1337691322,), (1337691326,), (1337691330,), (1337691334,), (1337691338,), (1337691343,), (1337691410,), (1337691439,), (1337691443,), (1337691447,), (1337691449,), (1337691453,), (1337691632,), (1337691635,), (1337691638,), (1337691641,), (1337691644,), (1337691715,), (1337691776,), (1337691846,), (1337691918,), (1337691957,), (1337693071,), (1337693229,), (1337693232,), (1337693239,), (1337693246,), (1337693284,), (1337693345,), (1337693409,), (1337693507,), (1337693513,), (1337693518,), (1337693639,), (1337693646,), (1337693653,), (1337693658,), (1337693833,), (1337693838,), (1337693843,), (1337693846,), (1337693850,), (1337693854,), (1337693870,), (1337693873,), (1337693876,), (1337693899,), (1337693902,), (1337693906,), (1337693909,), (1337693914,), (1337693918,), (1337693975,), (1337693978,), (1337694002,), (1337694005,), (1337694007,), (1337694146,), (1337694094,), (1337694097,), (1337694101,), (1337694104,), (1337694107,), (1337694384,), (1337694415,), (1337694419,), (1337694423,), (1337694628,), (1337694697,), (1337694701,), (1337694728,), (1337694731,), (1337694845,), (1337694848,), (1337694852,), (1337694855,), (1337694858,), (1337694861,), (1337694879,), (1337694882,), (1337694906,), (1337694919,), (1337694982,), (1337694985,), (1337694989,), (1337695026,), (1337695030,), (1337695033,), (1337695065,), (1337695070,), (1337695078,), (1337695082,), (1337695088,), (1337695158,), (1337695164,), (1337695226,), (1337695228,), (1337695231,), (1337695234,), (1337695238,), (1337695345,), (1337695347,), (1337695350,), (1337695353,), (1337695356,), (1337695428,), (1337695431,), (1337695456,), (1337695469,), (1337695828,), (1337695866,), (1337695898,), (1337695909,), (1337695945,), (1337695948,), (1337695975,), (1337695988,), (1337695991,), (1337695996,), (1337696028,), (1337696031,), (1337696035,), (1337696039,), (1337696042,), (1337696045,), (1337696062,), (1337696067,), (1337696071,), (1337696075,), (1337696134,), (1337696116,), (1337696118,), (1337696121,), (1337696124,), (1337696126,), (1337696514,), (1337696522,), (1337696531,), (1337696535,), (1337696592,), (1337696595,), (1337696604,), (1337696614,), (1337696617,), (1337696639,), (1337696641,), (1337696646,), (1337696650,), (1337696653,), (1337696658,), (1337696706,), (1337696709,), (1337696714,), (1337696782,), (1337696791,), (1337696799,), (1337696802,), (1337696805,), (1337696809,), (1337696969,), (1337696972,), (1337696975,), (1337696982,), (1337696988,), (1337696992,), (1337697020,), (1337697023,), (1337697026,), (1337697064,), (1337697070,), (1337697073,), (1337697077,), (1337697081,), (1337697104,), (1337697131,), (1337697134,), (1337697141,), (1337697240,), (1337697242,), (1337697249,), (1337697253,), (1337697280,), (1337697283,), (1337697294,), (1337697302,), (1337697359,), (1337697651,), (1337697663,), (1337697714,), (1337697723,), (1337697725,), (1337697768,), (1337697773,), (1337697785,), (1337697793,), (1337697813,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14022025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20572736]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] map_info['map_portfolio_photo'] : {20572736: [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651, 1337697359, 1337697302, 1337697294, 1337697283, 1337697280, 1337697253, 1337697249, 1337697242, 1337697240, 1337697141, 1337697134, 1337697131, 1337697104, 1337697081, 1337697077, 1337697073, 1337697070, 1337697064, 1337697026, 1337697023, 1337697020, 1337696992, 1337696988, 1337696982, 1337696975, 1337696972, 1337696969, 1337696809, 1337696805, 1337696802, 1337696799, 1337696791, 1337696782, 1337696714, 1337696709, 1337696706, 1337696658, 1337696653, 1337696650, 1337696646, 1337696641, 1337696639, 1337696617, 1337696614, 1337696604, 1337696595, 1337696592, 1337696535, 1337696531, 1337696522, 1337696514, 1337696126, 1337696124, 1337696121, 1337696118, 1337696116]} final : True mtd_id 4302 list_pids : [1337697813, 1337697793, 1337697785, 1337697773, 1337697768, 1337697725, 1337697723, 1337697714, 1337697663, 1337697651] Looping around the photos to save general results len do output : 1 /20572736Didn'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, '2589162') ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162') ('4302', None, None, None, None, None, None, None, '2589162') ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20572736', 'None', None, None, None, None, '2589162'), ('4302', '20572736', '1337697813', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697793', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697785', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697773', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697768', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697725', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697723', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697714', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697663', None, None, None, None, None, '2589162'), ('4302', '20572736', '1337697651', None, None, None, None, None, '2589162')] time used for this insertion : 0.022721290588378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6414551734924316 time spend to save output : 0.023066282272338867 total time spend for step 5 : 1.6645214557647705 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 (2589162) 2.41user 2.33system 0:14.68elapsed 32%CPU (0avgtext+0avgdata 161284maxresident)k 2624inputs+17456outputs (27major+75052minor)pagefaults 0swaps