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 : 2124814 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 (2629176) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2629176) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974054 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2629176'] with mtr_portfolio_ids : ['20974054'] and first list_photo_ids : [] new path : /proc/2124814/ Name: python3 Umask: 0002 State: R (running) Tgid: 2124814 Ngid: 0 Pid: 2124814 PPid: 2124813 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2124814 NSpid: 2124814 NSpgid: 2121188 NSsid: 2121188 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98116 kB VmRSS: 98116 kB RssAnon: 59760 kB RssFile: 38356 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 67 nonvoluntary_ctxt_switches: 173 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2124814', 'Ngid': '0', 'Pid': '2124814', 'PPid': '2124813', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2124814', 'NSpid': '2124814', 'NSpgid': '2121188', 'NSsid': '2121188', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98116 kB', 'VmRSS': '98116 kB', 'RssAnon': '59760 kB', 'RssFile': '38356 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '67', 'nonvoluntary_ctxt_switches': '173'} ('datou_batch_current', '2124814', '1106844', '0', '1106844', '865592', '98116', b'', 'marlene', '2629176') 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 (20974054) 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 (2629176 ) ) 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 (20974054) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340617129, 'portfolio_id': 20974054}, {'photo_id': 1340617119, 'portfolio_id': 20974054}, {'photo_id': 1340617112, 'portfolio_id': 20974054}, {'photo_id': 1340617106, 'portfolio_id': 20974054}, {'photo_id': 1340617043, 'portfolio_id': 20974054}, {'photo_id': 1340617039, 'portfolio_id': 20974054}, {'photo_id': 1340617033, 'portfolio_id': 20974054}, {'photo_id': 1340617029, 'portfolio_id': 20974054}, {'photo_id': 1340617026, 'portfolio_id': 20974054}, {'photo_id': 1340617023, 'portfolio_id': 20974054}, {'photo_id': 1340616956, 'portfolio_id': 20974054}, {'photo_id': 1340616950, 'portfolio_id': 20974054}, {'photo_id': 1340616945, 'portfolio_id': 20974054}, {'photo_id': 1340616943, 'portfolio_id': 20974054}, {'photo_id': 1340616938, 'portfolio_id': 20974054}, {'photo_id': 1340616899, 'portfolio_id': 20974054}, {'photo_id': 1340616895, 'portfolio_id': 20974054}, {'photo_id': 1340616886, 'portfolio_id': 20974054}, {'photo_id': 1340616874, 'portfolio_id': 20974054}, {'photo_id': 1340616826, 'portfolio_id': 20974054}, {'photo_id': 1340616817, 'portfolio_id': 20974054}, {'photo_id': 1340616813, 'portfolio_id': 20974054}, {'photo_id': 1340616808, 'portfolio_id': 20974054}, {'photo_id': 1340616805, 'portfolio_id': 20974054}, {'photo_id': 1340616762, 'portfolio_id': 20974054}, {'photo_id': 1340616748, 'portfolio_id': 20974054}, {'photo_id': 1340616744, 'portfolio_id': 20974054}, {'photo_id': 1340616739, 'portfolio_id': 20974054}, {'photo_id': 1340616733, 'portfolio_id': 20974054}, {'photo_id': 1340616674, 'portfolio_id': 20974054}, {'photo_id': 1340616668, 'portfolio_id': 20974054}, {'photo_id': 1340616663, 'portfolio_id': 20974054}, {'photo_id': 1340616661, 'portfolio_id': 20974054}, {'photo_id': 1340616638, 'portfolio_id': 20974054}, {'photo_id': 1340616633, 'portfolio_id': 20974054}, {'photo_id': 1340616627, 'portfolio_id': 20974054}, {'photo_id': 1340616623, 'portfolio_id': 20974054}, {'photo_id': 1340616619, 'portfolio_id': 20974054}, {'photo_id': 1340616608, 'portfolio_id': 20974054}, {'photo_id': 1340616540, 'portfolio_id': 20974054}, {'photo_id': 1340616527, 'portfolio_id': 20974054}, {'photo_id': 1340616475, 'portfolio_id': 20974054}, {'photo_id': 1340616469, 'portfolio_id': 20974054}, {'photo_id': 1340616463, 'portfolio_id': 20974054}, {'photo_id': 1340616431, 'portfolio_id': 20974054}, {'photo_id': 1340616418, 'portfolio_id': 20974054}, {'photo_id': 1340616408, 'portfolio_id': 20974054}, {'photo_id': 1340616400, 'portfolio_id': 20974054}, {'photo_id': 1340616390, 'portfolio_id': 20974054}, {'photo_id': 1340616358, 'portfolio_id': 20974054}, {'photo_id': 1340616350, 'portfolio_id': 20974054}, {'photo_id': 1340616334, 'portfolio_id': 20974054}, {'photo_id': 1340616322, 'portfolio_id': 20974054}, {'photo_id': 1340616320, 'portfolio_id': 20974054}, {'photo_id': 1340616310, 'portfolio_id': 20974054}, {'photo_id': 1340616272, 'portfolio_id': 20974054}, {'photo_id': 1340616264, 'portfolio_id': 20974054}, {'photo_id': 1340616256, 'portfolio_id': 20974054}, {'photo_id': 1340616242, 'portfolio_id': 20974054}, {'photo_id': 1340616186, 'portfolio_id': 20974054}, {'photo_id': 1340616179, 'portfolio_id': 20974054}, {'photo_id': 1340616175, 'portfolio_id': 20974054}, {'photo_id': 1340616171, 'portfolio_id': 20974054}, {'photo_id': 1340616168, 'portfolio_id': 20974054}, {'photo_id': 1340615978, 'portfolio_id': 20974054}, {'photo_id': 1340615972, 'portfolio_id': 20974054}, {'photo_id': 1340615968, 'portfolio_id': 20974054}, {'photo_id': 1340615956, 'portfolio_id': 20974054}, {'photo_id': 1340615952, 'portfolio_id': 20974054}] map_portfolio_id_photo_id: {20974054: [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023, 1340616956, 1340616950, 1340616945, 1340616943, 1340616938, 1340616899, 1340616895, 1340616886, 1340616874, 1340616826, 1340616817, 1340616813, 1340616808, 1340616805, 1340616762, 1340616748, 1340616744, 1340616739, 1340616733, 1340616674, 1340616668, 1340616663, 1340616661, 1340616638, 1340616633, 1340616627, 1340616623, 1340616619, 1340616608, 1340616540, 1340616527, 1340616475, 1340616469, 1340616463, 1340616431, 1340616418, 1340616408, 1340616400, 1340616390, 1340616358, 1340616350, 1340616334, 1340616322, 1340616320, 1340616310, 1340616272, 1340616264, 1340616256, 1340616242, 1340616186, 1340616179, 1340616175, 1340616171, 1340616168, 1340615978, 1340615972, 1340615968, 1340615956, 1340615952]} ##### 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.016164302825927734 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 3 12:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20974054) 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 : 20974054 get user id for portfolio 20974054 get sub ptf for main ptf 20974054, type 3726 and hashtags ['papier', 'Carton_gris', 'autre_refus', 'mal_croppe', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'environnement', 'plastique', 'flou', 'Carton_brun', '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`=20974054 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','mal_croppe','cartonnette','kraft','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_brun','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`=20974054 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','mal_croppe','cartonnette','kraft','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20974054, 'sub_port_id': 20974085, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594797, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'cartonnette': {'main_port_id': 20974054, 'sub_port_id': 20974086, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594798, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'metal': {'main_port_id': 20974054, 'sub_port_id': 20974087, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594799, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'Carton_gris': {'main_port_id': 20974054, 'sub_port_id': 20974088, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594800, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'papier': {'main_port_id': 20974054, 'sub_port_id': 20974089, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594801, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'plastique': {'main_port_id': 20974054, 'sub_port_id': 20974090, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594802, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'flou': {'main_port_id': 20974054, 'sub_port_id': 20974091, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594803, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20974054, 'sub_port_id': 20974092, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594804, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'Carton_brun': {'main_port_id': 20974054, 'sub_port_id': 20974093, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594805, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'environnement': {'main_port_id': 20974054, 'sub_port_id': 20974094, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594806, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'mal_croppe': {'main_port_id': 20974054, 'sub_port_id': 20974095, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594807, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}, 'autre_refus': {'main_port_id': 20974054, 'sub_port_id': 20974096, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594808, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974085 , 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=20974054 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 (20974085) result : ((1340617100,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974086 , 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=20974054 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 (20974086) result : ((1340616724,), (1340616725,), (1340616843,), (1340616844,), (1340616892,), (1340616983,), (1340616984,), (1340616985,), (1340616986,), (1340616987,), (1340617015,), (1340617096,), (1340617097,), (1340617145,), (1340617146,), (1340617147,), (1340617148,), (1340617149,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974087 , 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=20974054 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 (20974087) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974088 , 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=20974054 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 (20974088) result : ((1340616557,), (1340616558,), (1340616701,), (1340616721,), (1340616722,), (1340616766,), (1340616767,), (1340616773,), (1340616774,), (1340616775,), (1340616840,), (1340616841,), (1340616887,), (1340616888,), (1340616889,), (1340616890,), (1340616974,), (1340616975,), (1340616976,), (1340617011,), (1340617012,), (1340617013,), (1340617014,), (1340617093,), (1340617141,), (1340617142,), (1340617143,), (1340617336,), (1340617337,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974089 , 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=20974054 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 (20974089) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974090 , 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=20974054 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 (20974090) result : ((1340616727,), (1340616849,), (1340616998,), (1340616999,), (1340617161,), (1340617163,), (1340617165,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974091 , 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=20974054 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 (20974091) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974092 , 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=20974054 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 (20974092) result : ((1340616531,), (1340616714,), (1340616715,), (1340616746,), (1340616824,), (1340616825,), (1340616876,), (1340616878,), (1340616879,), (1340616957,), (1340616959,), (1340616960,), (1340617001,), (1340617002,), (1340617003,), (1340617124,), (1340617125,), (1340617126,), (1340617127,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974093 , 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=20974054 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 (20974093) result : ((1340616560,), (1340616706,), (1340616726,), (1340616771,), (1340616778,), (1340616781,), (1340616847,), (1340616991,), (1340616992,), (1340616993,), (1340617153,), (1340617154,), (1340617155,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974094 , 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=20974054 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 (20974094) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974095 , 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=20974054 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 (20974095) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20974096 , 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=20974054 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 (20974096) result : ((1340616550,), (1340616551,), (1340616552,), (1340616553,), (1340616554,), (1340616697,), (1340616698,), (1340616699,), (1340616716,), (1340616717,), (1340616718,), (1340616719,), (1340616720,), (1340616752,), (1340616756,), (1340616758,), (1340616759,), (1340616760,), (1340616761,), (1340616764,), (1340616765,), (1340616833,), (1340616834,), (1340616835,), (1340616836,), (1340616837,), (1340616838,), (1340616875,), (1340616877,), (1340616880,), (1340616881,), (1340616882,), (1340616934,), (1340616965,), (1340616966,), (1340616967,), (1340616968,), (1340616969,), (1340616970,), (1340616971,), (1340617006,), (1340617007,), (1340617008,), (1340617089,), (1340617090,), (1340617091,), (1340617092,), (1340617132,), (1340617133,), (1340617134,), (1340617135,), (1340617136,), (1340617137,), (1340617138,), (1340617334,), (1340617335,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20974054) result : ((1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) 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 (1340616400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20974054 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','mal_croppe','cartonnette','kraft','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_brun','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`=20974054 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','mal_croppe','cartonnette','kraft','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20974054, 'sub_port_id': 20974097, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594809, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'cartonnette': {'main_port_id': 20974054, 'sub_port_id': 20974098, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594810, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'metal': {'main_port_id': 20974054, 'sub_port_id': 20974099, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594811, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'Carton_gris': {'main_port_id': 20974054, 'sub_port_id': 20974100, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594812, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'papier': {'main_port_id': 20974054, 'sub_port_id': 20974101, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594813, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'plastique': {'main_port_id': 20974054, 'sub_port_id': 20974102, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594814, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'flou': {'main_port_id': 20974054, 'sub_port_id': 20974103, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594815, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20974054, 'sub_port_id': 20974104, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594816, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'Carton_brun': {'main_port_id': 20974054, 'sub_port_id': 20974105, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594817, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'environnement': {'main_port_id': 20974054, 'sub_port_id': 20974106, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594818, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'mal_croppe': {'main_port_id': 20974054, 'sub_port_id': 20974107, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594819, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}, 'autre_refus': {'main_port_id': 20974054, 'sub_port_id': 20974108, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13594820, 'last_updated_at': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 12, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974093 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974106,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974094 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974107,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974095 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20974108,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20974096 lien utilise dans velours : https://www.fotonower.com/velours/20974097,20974098,20974099,20974100,20974101,20974102,20974103,20974104,20974105,20974106,20974107,20974108?tags=kraft,cartonnette,metal,Carton_gris,papier,plastique,flou,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20974054]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] map_info['map_portfolio_photo'] : {20974054: [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023, 1340616956, 1340616950, 1340616945, 1340616943, 1340616938, 1340616899, 1340616895, 1340616886, 1340616874, 1340616826, 1340616817, 1340616813, 1340616808, 1340616805, 1340616762, 1340616748, 1340616744, 1340616739, 1340616733, 1340616674, 1340616668, 1340616663, 1340616661, 1340616638, 1340616633, 1340616627, 1340616623, 1340616619, 1340616608, 1340616540, 1340616527, 1340616475, 1340616469, 1340616463, 1340616431, 1340616418, 1340616408, 1340616400, 1340616390, 1340616358, 1340616350, 1340616334, 1340616322, 1340616320, 1340616310, 1340616272, 1340616264, 1340616256, 1340616242, 1340616186, 1340616179, 1340616175, 1340616171, 1340616168, 1340615978, 1340615972, 1340615968, 1340615956, 1340615952]} final : False mtd_id 4302 list_pids : [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] Looping around the photos to save general results len do output : 1 /20974054. 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, '2629176') ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176') 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, '20974054', "{'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096}", None, None, None, None, '2629176'), ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176')] time used for this insertion : 0.013620376586914062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5810439586639404 time spend to save output : 0.01404118537902832 total time spend for step 1 : 0.5950851440429688 step2:final Mon Mar 3 12:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20974054) 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 20974054 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340615978,1340615972,1340615968,1340615956,1340615952,1340616186,1340616179,1340616175,1340616171,1340616168,1340616272,1340616264,1340616256,1340616242,1340616358,1340616350,1340616334,1340616322,1340616320,1340616310,1340616431,1340616418,1340616408,1340616400,1340616390,1340616540,1340616527,1340616475,1340616469,1340616463,1340616638,1340616633,1340616627,1340616623,1340616619,1340616608,1340616674,1340616668,1340616663,1340616661,1340616762,1340616748,1340616744,1340616739,1340616733,1340616826,1340616817,1340616813,1340616808,1340616805,1340616899,1340616895,1340616886,1340616874,1340616956,1340616950,1340616945,1340616943,1340616938,1340617043,1340617039,1340617033,1340617029,1340617026,1340617023,1340617129,1340617119,1340617112,1340617106); 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([20974054]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} new output for save of step final : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] map_info['map_portfolio_photo'] : {20974054: [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023, 1340616956, 1340616950, 1340616945, 1340616943, 1340616938, 1340616899, 1340616895, 1340616886, 1340616874, 1340616826, 1340616817, 1340616813, 1340616808, 1340616805, 1340616762, 1340616748, 1340616744, 1340616739, 1340616733, 1340616674, 1340616668, 1340616663, 1340616661, 1340616638, 1340616633, 1340616627, 1340616623, 1340616619, 1340616608, 1340616540, 1340616527, 1340616475, 1340616469, 1340616463, 1340616431, 1340616418, 1340616408, 1340616400, 1340616390, 1340616358, 1340616350, 1340616334, 1340616322, 1340616320, 1340616310, 1340616272, 1340616264, 1340616256, 1340616242, 1340616186, 1340616179, 1340616175, 1340616171, 1340616168, 1340615978, 1340615972, 1340615968, 1340615956, 1340615952]} final : False mtd_id 4302 list_pids : [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] Looping around the photos to save general results len do output : 10 /1340617129.Didn't retrieve data . /1340617119.Didn't retrieve data . /1340617112.Didn't retrieve data . /1340617106.Didn't retrieve data . /1340617043.Didn't retrieve data . /1340617039.Didn't retrieve data . /1340617033.Didn't retrieve data . /1340617029.Didn't retrieve data . /1340617026.Didn't retrieve data . /1340617023.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, '2629176') ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176') 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', '20974054', '1340617129', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617119', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617112', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617106', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617043', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617039', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617033', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617029', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617026', '0.0783824030070554', None, None, None, None, '2629176'), ('4302', '20974054', '1340617023', '0.0783824030070554', None, None, None, None, '2629176')] time used for this insertion : 0.013061046600341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1299426555633545 time spend to save output : 0.014024734497070312 total time spend for step 2 : 0.1439673900604248 step3:velours_tree Mon Mar 3 12:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20974054: [{'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096}]} input_args_next_step : {20974054: ()} output_args : {20974054: [{'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096}]} args : 20974054 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 : ({'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20974054) 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([20974054]) 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.38062500953674316 time spend to save output : 6.842613220214844e-05 total time spend for step 3 : 0.3806934356689453 step4:send_mail_cod Mon Mar 3 12:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} input_args_next_step : {1340617129: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617129 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617119 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617112 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617106 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617043 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617039 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617033 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617029 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617026 depend.output_id : 0 input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ()} output_args : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',)} args : 1340617023 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 : {20974054: [{'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096}]} input_args_next_step : {1340617129: ('0.0783824030070554',), 1340617119: ('0.0783824030070554',), 1340617112: ('0.0783824030070554',), 1340617106: ('0.0783824030070554',), 1340617043: ('0.0783824030070554',), 1340617039: ('0.0783824030070554',), 1340617033: ('0.0783824030070554',), 1340617029: ('0.0783824030070554',), 1340617026: ('0.0783824030070554',), 1340617023: ('0.0783824030070554',), 20974054: ()} output_args : {20974054: [{'kraft': 20974085, 'cartonnette': 20974086, 'metal': 20974087, 'Carton_gris': 20974088, 'papier': 20974089, 'plastique': 20974090, 'flou': 20974091, 'Teint_Dans_La_Masse': 20974092, 'Carton_brun': 20974093, 'environnement': 20974094, 'mal_croppe': 20974095, 'autre_refus': 20974096}]} args : 20974054 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.0783824030070554',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20974054) 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 (1340617129,1340617119,1340617112,1340617106,1340617043,1340617039,1340617033,1340617029,1340617026,1340617023) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340617023 begin to download photo : 1340617033 begin to download photo : 1340617106 begin to download photo : 1340617129 download finish for photo 1340617106 begin to download photo : 1340617112 download finish for photo 1340617023 begin to download photo : 1340617026 download finish for photo 1340617129 download finish for photo 1340617033 begin to download photo : 1340617039 download finish for photo 1340617112 begin to download photo : 1340617119 download finish for photo 1340617026 begin to download photo : 1340617029 download finish for photo 1340617039 begin to download photo : 1340617043 download finish for photo 1340617119 download finish for photo 1340617029 download finish for photo 1340617043 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20974054_03-03-2025_12_30_58.pdf 20974085 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=20974085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340617100: '1741001252_2562356_1340616739_ec1be6f9162f82d15e3635f2ae877ae9_rle_crop_3692329398_0.png'} change filename to text .imagette209740851741001458/ imagette209740851741001458/1741001252_2562356_1340616739_ec1be6f9162f82d15e3635f2ae877ae9_rle_crop_3692329398_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bb6e0cf89d05c89a11b8b00103d5702a_4265069.png imagette209740851741001458 20974086 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=20974086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340616987: '1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327991_0.png', 1340617149: '1741001273_2562616_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327991_0.png', 1340617148: '1741001273_2562616_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327977_0.png', 1340617147: '1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327918_0.png', 1340617146: '1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327917_0.png', 1340617145: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327901_0.png', 1340617097: '1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329419_0.png', 1340617096: '1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329417_0.png', 1340617015: '1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327378_0.png', 1340616724: '1741000933_2550298_1340616334_38acac1c2ee9bb3a558e4dab7dd0f037_rle_crop_3692324870_0.png', 1340616986: '1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327977_0.png', 1340616985: '1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327918_0.png', 1340616984: '1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327917_0.png', 1340616983: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327901_0.png', 1340616892: '1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327378_0.png', 1340616844: '1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324890_0.png', 1340616843: '1741001013_2551466_1340616334_38acac1c2ee9bb3a558e4dab7dd0f037_rle_crop_3692324870_0.png', 1340616725: '1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9957d80f7333ac6da03109812350ea02_64540193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9957d80f7333ac6da03109812350ea02_49969329.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cfb304c4b368a722533e51eca3428773_853503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/325f97caa70fb52053f8829051faa984_41545261.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c450a95a250f24facaddd7fdf49951ce_56386966.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/826a511e9be3a6a0095e51abd494604d_28294775.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/44c4f5972011b0163bc629dc09db4283_94623245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b5ce224bb698c1005a32442dd3b2f872_54039665.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2f73b36c8df18adbd8aa67681c0b8bb4_79332079.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/45d97ca4ba78599677b0f218fbc9df31_37336003.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cfb304c4b368a722533e51eca3428773_83961986.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/325f97caa70fb52053f8829051faa984_17937792.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c450a95a250f24facaddd7fdf49951ce_70226096.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/826a511e9be3a6a0095e51abd494604d_7659790.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2f73b36c8df18adbd8aa67681c0b8bb4_53510484.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6d5dd8c6a4d9d6876048dd7415dd5af0_35713344.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/45d97ca4ba78599677b0f218fbc9df31_16705136.png change filename to text .imagette209740861741001458/ imagette209740861741001458/1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329419_0.png.png imagette209740861741001458/1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327378_0.png.png imagette209740861741001458/1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324890_0.png.png imagette209740861741001458/1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327918_0.png.png imagette209740861741001458/1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327991_0.png.png imagette209740861741001458/1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327378_0.png.png imagette209740861741001458/1741001273_2562616_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327977_0.png.png imagette209740861741001458/1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327917_0.png.png imagette209740861741001458/1741001013_2551466_1340616334_38acac1c2ee9bb3a558e4dab7dd0f037_rle_crop_3692324870_0.png.png imagette209740861741001458/1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324890_0.png.png imagette209740861741001458/1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327917_0.png.png imagette209740861741001458/1741000933_2550298_1340616334_38acac1c2ee9bb3a558e4dab7dd0f037_rle_crop_3692324870_0.png.png imagette209740861741001458/1741001273_2562616_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327991_0.png.png imagette209740861741001458/1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327977_0.png.png imagette209740861741001458/1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327918_0.png.png imagette209740861741001458/1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329417_0.png.png imagette209740861741001458/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327901_0.png.png imagette209740861741001458/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327901_0.png.png imagette209740871741001460/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6d5dd8c6a4d9d6876048dd7415dd5af0_10721070.png imagette209740861741001458 20974087 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=20974087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209740871741001460 20974090 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=20974090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340616727: '1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324894_0.png', 1340616849: '1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324894_0.png', 1340616998: '1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327999_0.png', 1340616999: '1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328029_0.png', 1340617161: '1741001273_2562616_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327999_0.png', 1340617163: '1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692329589_0.png', 1340617165: '1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_bib_crop_3692328029_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8e766eda97b70016c9489966afb0bc3b_82235732.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8e766eda97b70016c9489966afb0bc3b_66945038.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/420a96def1b37d0d05f71ecf77f9f973_35393400.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4cfe98ba63a2438f551f71e4f21ca027_24337550.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/420a96def1b37d0d05f71ecf77f9f973_83561448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/20469f658da10558292e6603d5b876f0_39683653.png change filename to text .imagette209740901741001460/ imagette209740901741001460/1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_bib_crop_3692328029_0.jpg.jpg imagette209740901741001460/1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327999_0.png.png imagette209740901741001460/1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328029_0.png.png imagette209740901741001460/1741001273_2562616_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327999_0.png.png imagette209740901741001460/1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324894_0.png.png imagette209740901741001460/1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324894_0.png.png imagette209740901741001460/1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692329589_0.png.png imagette209740911741001460/ imagette209740951741001460/ wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/55d550416e780661e67229e6b3997463_52023395.jpg imagette209740901741001460 20974091 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=20974091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209740911741001460 20974095 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=20974095 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209740951741001460 20974096 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=20974096 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340617008: '1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327387_0.png', 1340616880: '1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326598_0.png', 1340616881: '1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327364_0.png', 1340616882: '1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327387_0.png', 1340616934: '1741001193_2561463_1340616431_ef7403501769fd192623ee58c68629a9_rle_crop_3692325499_0.png', 1340616965: '1741001153_2560894_1340616674_be93c910e3191e5445b53c838567e24a_rle_crop_3692327842_0.png', 1340616966: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327909_0.png', 1340616967: '1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327927_0.png', 1340616968: '1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327985_0.png', 1340616969: '1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327995_0.png', 1340616970: '1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328023_0.png', 1340616971: '1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328025_0.png', 1340617006: '1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326598_0.png', 1340617007: '1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327364_0.png', 1340616877: '1741001131_2560710_1340616661_122c5948add7c01f4ab7e74a7fd3cf9a_rle_crop_3692327401_0.png', 1340617089: '1741001252_2562356_1340616748_55c95e48b934e456ee71ad645672e80e_rle_crop_3692329372_0.png', 1340617090: '1741001252_2562356_1340616744_1ed7d46931d90e59cfe0edf39e856cb8_rle_crop_3692329385_0.png', 1340617091: '1741001252_2562356_1340616739_ec1be6f9162f82d15e3635f2ae877ae9_rle_crop_3692329401_0.png', 1340617092: '1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329423_0.png', 1340617132: '1741001273_2562616_1340616674_be93c910e3191e5445b53c838567e24a_rle_crop_3692327842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f0660abd85f935ac32d411619f320d18_40508376.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/531639b06b1799c0422a6163aa96aa9a_28478045.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/de90d9414001e2aa1998de47c068dd3f_99186411.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f0660abd85f935ac32d411619f320d18_21234265.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/19df2fa95f81f49bf8b4ad8de5f568db_86664412.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8e0e6a1270ec42a73903041edd6ea947_91352251.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6e1cf46205cedef14d7eb90be57f2ed6_47600283.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/55c1b34f532702300d88a69de41cad28_92052099.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/013f28847944540be1d64116f63b7db9_34311451.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/11b62ff7be66949bb7cd1c87172b8a2b_91876444.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/498afdc7505ea061f1866046894410c6_53251578.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fdc688766b8acbdfb43405475a8b1fae_53095214.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/531639b06b1799c0422a6163aa96aa9a_87867281.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/de90d9414001e2aa1998de47c068dd3f_94420390.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0c1f80afea0d89bb381d4602fb5de29b_32259821.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f11543ff235325f8687400e40360b924_55419944.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1076ff8ef427b0c955e9fc4600686a0b_7845445.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ed9e516325a56a26b5e98490927a05e3_45106333.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c45289d7968109e720019a0c63a3ce3f_86376062.png change filename to text .imagette209740961741001460/ imagette209740961741001460/1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327985_0.png.png imagette209740961741001460/1741001193_2561463_1340616431_ef7403501769fd192623ee58c68629a9_rle_crop_3692325499_0.png.png imagette209740961741001460/1741001252_2562356_1340616739_ec1be6f9162f82d15e3635f2ae877ae9_rle_crop_3692329401_0.png.png imagette209740961741001460/1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327387_0.png.png imagette209740961741001460/1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327387_0.png.png imagette209740961741001460/1741001252_2562356_1340616733_d49aafe8641189dcf8467a6d98120dc3_rle_crop_3692329423_0.png.png imagette209740961741001460/1741001252_2562356_1340616744_1ed7d46931d90e59cfe0edf39e856cb8_rle_crop_3692329385_0.png.png imagette209740961741001460/1741001153_2560894_1340616619_0a02f8972547418cbf53a69ce8f88985_rle_crop_3692327995_0.png.png imagette209740961741001460/1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328023_0.png.png imagette209740961741001460/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327909_0.png.png imagette209740961741001460/1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328025_0.png.png imagette209740961741001460/1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326598_0.png.png imagette209740961741001460/1741001273_2562616_1340616674_be93c910e3191e5445b53c838567e24a_rle_crop_3692327842_0.png.png imagette209740961741001460/1741001153_2560894_1340616674_be93c910e3191e5445b53c838567e24a_rle_crop_3692327842_0.png.png imagette209740961741001460/1741001131_2560710_1340616661_122c5948add7c01f4ab7e74a7fd3cf9a_rle_crop_3692327401_0.png.png imagette209740961741001460/1741001252_2562356_1340616748_55c95e48b934e456ee71ad645672e80e_rle_crop_3692329372_0.png.png imagette209740961741001460/1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326598_0.png.png imagette209740961741001460/1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327927_0.png.png imagette209740961741001460/1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327364_0.png.png imagette209740961741001460/1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327364_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8e0e6a1270ec42a73903041edd6ea947_73112505.png imagette209740961741001460 20974088 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=20974088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340616889: '1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327383_0.png', 1340617337: '1741001391_2565186_1340616895_c160a87a581840473a512ec424a22557_rle_crop_3692329947_0.png', 1340617336: '1741001391_2565186_1340616956_97079889406a512d45fe6454771eb6d4_rle_crop_3692329909_0.png', 1340617143: '1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328020_0.png', 1340617142: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327903_0.png', 1340617141: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327900_0.png', 1340617093: '1741001252_2562356_1340616748_55c95e48b934e456ee71ad645672e80e_rle_crop_3692329368_0.png', 1340617014: '1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327384_0.png', 1340617013: '1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327383_0.png', 1340617012: '1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327359_0.png', 1340617011: '1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326593_0.png', 1340616976: '1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328020_0.png', 1340616975: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327903_0.png', 1340616974: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327900_0.png', 1340616890: '1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327384_0.png', 1340616557: '1741000792_2544474_1340615972_ad493579fd85ff5d44e45261dc932267_rle_crop_3692322883_0.png', 1340616888: '1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327359_0.png', 1340616887: '1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326593_0.png', 1340616841: '1741001013_2551466_1340616310_a684f147882b4ce3db81d986a2f65c34_rle_crop_3692325007_0.png', 1340616840: '1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324895_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7d1aa23eb007e27ed8a9d0b19ef998f9_64824924.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8f66d2c6cde812bf0c5517fb608822de_21426250.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7a8e29e6bd7cbba2d92f2c1be1713767_79060293.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/12a3ad744db0123077fdca372084c37d_46584531.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/89f2224a9bb2d4ee17aafbb9284808da_84771250.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7fdc51a87fa314d69bc0a729d4f39f09_65516846.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fd0de551844de63106618daa7fe4ce24_81325310.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/966cd0f5025c7a58576a0aa8f7276a51_62666149.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7d1aa23eb007e27ed8a9d0b19ef998f9_396015.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dc11f3073f948a000157d991e9c86c7f_6151773.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/99c9d75a764a86cd144db33b4a969319_69548697.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/12a3ad744db0123077fdca372084c37d_11456052.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/89f2224a9bb2d4ee17aafbb9284808da_89796279.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7fdc51a87fa314d69bc0a729d4f39f09_39975123.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/966cd0f5025c7a58576a0aa8f7276a51_985202.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/33b404d800a8e7d467a2ba6ac1b4796e_24436299.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dc11f3073f948a000157d991e9c86c7f_85271201.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/99c9d75a764a86cd144db33b4a969319_92819772.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a7b17baba1ab65fc0a1a196e3dc0ccbf_93349044.png change filename to text .imagette209740881741001461/ imagette209740881741001461/1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327359_0.png.png imagette209740881741001461/1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326593_0.png.png imagette209740881741001461/1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327384_0.png.png imagette209740881741001461/1741001252_2562356_1340616748_55c95e48b934e456ee71ad645672e80e_rle_crop_3692329368_0.png.png imagette209740881741001461/1741001391_2565186_1340616895_c160a87a581840473a512ec424a22557_rle_crop_3692329947_0.png.png imagette209740881741001461/1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326593_0.png.png imagette209740881741001461/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327903_0.png.png imagette209740881741001461/1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328020_0.png.png imagette209740881741001461/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327900_0.png.png imagette209740881741001461/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327900_0.png.png imagette209740881741001461/1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328020_0.png.png imagette209740881741001461/1741000792_2544474_1340615972_ad493579fd85ff5d44e45261dc932267_rle_crop_3692322883_0.png.png imagette209740881741001461/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327903_0.png.png imagette209740881741001461/1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327383_0.png.png imagette209740881741001461/1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324895_0.png.png imagette209740881741001461/1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327384_0.png.png imagette209740881741001461/1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327359_0.png.png imagette209740881741001461/1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327383_0.png.png imagette209740881741001461/1741001013_2551466_1340616310_a684f147882b4ce3db81d986a2f65c34_rle_crop_3692325007_0.png.png imagette209740881741001461/1741001391_2565186_1340616956_97079889406a512d45fe6454771eb6d4_rle_crop_3692329909_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1785e5dd2000bce7b762add2f002913c_37887789.png imagette209740881741001461 20974092 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=20974092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340616957: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327908_0.png', 1340617127: '1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328032_0.png', 1340617126: '1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327923_0.png', 1340617125: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_bib_crop_3692327908_0.jpg', 1340617124: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692329462_0.png', 1340617003: '1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327390_0.png', 1340617002: '1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327358_0.png', 1340617001: '1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326602_0.png', 1340616960: '1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328032_0.png', 1340616959: '1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327923_0.png', 1340616531: '1741000792_2544474_1340615978_8b2d3e38affe068ca185f5c9b17285fb_rle_crop_3692322667_0.png', 1340616879: '1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327390_0.png', 1340616878: '1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327358_0.png', 1340616876: '1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326602_0.png', 1340616825: '1741001013_2551466_1340616320_d025c012fe05619d510d93c2a21d7503_rle_crop_3692324913_0.png', 1340616824: '1741001013_2551466_1340616350_ec2f820cc6d67569b05da80a44bdafd1_rle_crop_3692324805_0.png', 1340616746: '1741000973_2550896_1340615978_8b2d3e38affe068ca185f5c9b17285fb_rle_crop_3692322667_0.png', 1340616715: '1741000933_2550298_1340616320_d025c012fe05619d510d93c2a21d7503_rle_crop_3692324913_0.png', 1340616714: '1741000933_2550298_1340616350_ec2f820cc6d67569b05da80a44bdafd1_rle_crop_3692324805_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3b75821bc6f83e914e11530afe9e2261_34819460.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/946e2cbceef54a93b60c9834ca98e922_70214249.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8677b52bc317e319b4c4e87a025b4bc9_49986756.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/95dcc17d7e5806afac5300ffd4eb8d7e_18020437.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/75752d880ff10428a03eb464dc584daa_46641344.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f9b03cd4c46494c949bb4a5b3a6a593d_34239485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2d3ac839f3e81ec00df575b5844d72b1_5413078.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7ab256b42677440dadb0e966bf092b28_67322038.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/946e2cbceef54a93b60c9834ca98e922_65758576.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8677b52bc317e319b4c4e87a025b4bc9_72984032.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6b6dba009faf9127ad3264e96f81ad60_36942223.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f9b03cd4c46494c949bb4a5b3a6a593d_8408761.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2d3ac839f3e81ec00df575b5844d72b1_49235354.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7ab256b42677440dadb0e966bf092b28_74929058.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3d4bd81b08684f5a0e92083a63c41b1c_35042633.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/076ca471c2255632d4958cf66b3c7623_78491666.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6b6dba009faf9127ad3264e96f81ad60_31893177.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3d4bd81b08684f5a0e92083a63c41b1c_48459442.png change filename to text .imagette209740921741001463/ imagette209740921741001463/1741001153_2560894_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328032_0.png.png imagette209740921741001463/1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327923_0.png.png imagette209740921741001463/1741001103_2559907_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327390_0.png.png imagette209740921741001463/1741001174_2561216_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327358_0.png.png imagette209740921741001463/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692329462_0.png.png imagette209740921741001463/1741001273_2562616_1340616608_77a5073f0e52eb65f95d33ae4c30c2f2_rle_crop_3692328032_0.png.png imagette209740921741001463/1741000792_2544474_1340615978_8b2d3e38affe068ca185f5c9b17285fb_rle_crop_3692322667_0.png.png imagette209740921741001463/1741001103_2559907_1340616400_e300810a28a07313058aa4a3ef5e9ce8_rle_crop_3692327358_0.png.png imagette209740921741001463/1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327923_0.png.png imagette209740921741001463/1741001174_2561216_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326602_0.png.png imagette209740921741001463/1741001103_2559907_1340616540_4a39d30896fcd289e5b5b4fb8db71eef_rle_crop_3692326602_0.png.png imagette209740921741001463/1741001013_2551466_1340616350_ec2f820cc6d67569b05da80a44bdafd1_rle_crop_3692324805_0.png.png imagette209740921741001463/1741001013_2551466_1340616320_d025c012fe05619d510d93c2a21d7503_rle_crop_3692324913_0.png.png imagette209740921741001463/1741000933_2550298_1340616320_d025c012fe05619d510d93c2a21d7503_rle_crop_3692324913_0.png.png imagette209740921741001463/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327908_0.png.png imagette209740921741001463/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_bib_crop_3692327908_0.jpg.jpg imagette209740921741001463/1741000933_2550298_1340616350_ec2f820cc6d67569b05da80a44bdafd1_rle_crop_3692324805_0.png.png imagette209740921741001463/1741000973_2550896_1340615978_8b2d3e38affe068ca185f5c9b17285fb_rle_crop_3692322667_0.png.png imagette209740921741001463/1741001174_2561216_1340616390_81af872e99aa75f60d86399073eac266_rle_crop_3692327390_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/076ca471c2255632d4958cf66b3c7623_83078066.png imagette209740921741001463 20974093 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=20974093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340616560: '1741000792_2544474_1340616186_cb7aa7fad4b43def347b7c81dcea9534_rle_crop_3692322604_0.png', 1340616706: '1741000953_2550622_1340616256_0cfb4200c1a2bcb2308f82e94a56a81c_rle_crop_3692324846_0.png', 1340616726: '1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324888_0.png', 1340616771: '1741000973_2550896_1340616186_cb7aa7fad4b43def347b7c81dcea9534_rle_crop_3692322604_0.png', 1340616778: '1741000993_2551126_1340616527_e766e7adeea15bf8c7772172b9f06c87_rle_crop_3692325429_0.png', 1340616781: '1741000993_2551126_1340616475_e716f59bf31300aa1d1eefabc2a526ad_rle_crop_3692325442_0.png', 1340616847: '1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324888_0.png', 1340616991: '1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327904_0.png', 1340616992: '1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327929_0.png', 1340616993: '1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327982_0.png', 1340617153: '1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327904_0.png', 1340617154: '1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327929_0.png', 1340617155: '1741001273_2562616_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327982_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dadab73c67a8e7f16739bc15c632d7c2_99981642.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/588909b1e4dcb369491bca579c5c9951_76105769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/12a350a2bb3fca40fadd182c674b7392_95598590.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dadab73c67a8e7f16739bc15c632d7c2_62924316.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1076324bc10ec6002533d334676219c1_88897682.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2af14d39ad7f70f071b77238c4ff5199_43196685.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/12a350a2bb3fca40fadd182c674b7392_37631795.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f7d01ca435d3ab2e46572dbd3f5f1b97_5112147.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c193917071194173b63b8b66319f022f_22833302.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/83c0207497d6d6d4a44fba2ed7d629ea_69690471.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f7d01ca435d3ab2e46572dbd3f5f1b97_14555355.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c193917071194173b63b8b66319f022f_87282779.png change filename to text .imagette209740931741001464/ imagette209740931741001464/1741001273_2562616_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327982_0.png.png imagette209740931741001464/1741000953_2550622_1340616256_0cfb4200c1a2bcb2308f82e94a56a81c_rle_crop_3692324846_0.png.png imagette209740931741001464/1741000993_2551126_1340616527_e766e7adeea15bf8c7772172b9f06c87_rle_crop_3692325429_0.png.png imagette209740931741001464/1741001153_2560894_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327929_0.png.png imagette209740931741001464/1741000792_2544474_1340616186_cb7aa7fad4b43def347b7c81dcea9534_rle_crop_3692322604_0.png.png imagette209740931741001464/1741001273_2562616_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327904_0.png.png imagette209740931741001464/1741001153_2560894_1340616623_e2b9810de1d374c804d7676f333462a4_rle_crop_3692327982_0.png.png imagette209740931741001464/1741000973_2550896_1340616186_cb7aa7fad4b43def347b7c81dcea9534_rle_crop_3692322604_0.png.png imagette209740931741001464/1741000933_2550298_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324888_0.png.png imagette209740931741001464/1741001013_2551466_1340616322_b2fdf0f3be26cc10716136d1e8c00955_rle_crop_3692324888_0.png.png imagette209740931741001464/1741001153_2560894_1340616633_1b729aedc432622b6d90393e7b94994e_rle_crop_3692327904_0.png.png imagette209740931741001464/1741001273_2562616_1340616627_d84a6dee261d74a0732c2bcc1c292ce6_rle_crop_3692327929_0.png.png imagette209740931741001464/1741000993_2551126_1340616475_e716f59bf31300aa1d1eefabc2a526ad_rle_crop_3692325442_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/83c0207497d6d6d4a44fba2ed7d629ea_95409078.png imagette209740931741001464 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20974054 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20974097,20974098,20974099,20974100,20974101,20974102,20974103,20974104,20974105,20974106,20974107,20974108?tags=kraft,cartonnette,metal,Carton_gris,papier,plastique,flou,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,autre_refus your option no_mail is active, we will not send the real mail to your client args[1340617129] : ('0.0783824030070554',) no score found for photo 1340617129 We are sending mail with results at report@fotonower.com args[1340617119] : ('0.0783824030070554',) no score found for photo 1340617119 We are sending mail with results at report@fotonower.com args[1340617112] : ('0.0783824030070554',) no score found for photo 1340617112 We are sending mail with results at report@fotonower.com args[1340617106] : ('0.0783824030070554',) no score found for photo 1340617106 We are sending mail with results at report@fotonower.com args[1340617043] : ('0.0783824030070554',) no score found for photo 1340617043 We are sending mail with results at report@fotonower.com args[1340617039] : ('0.0783824030070554',) no score found for photo 1340617039 We are sending mail with results at report@fotonower.com args[1340617033] : ('0.0783824030070554',) no score found for photo 1340617033 We are sending mail with results at report@fotonower.com args[1340617029] : ('0.0783824030070554',) no score found for photo 1340617029 We are sending mail with results at report@fotonower.com args[1340617026] : ('0.0783824030070554',) no score found for photo 1340617026 We are sending mail with results at report@fotonower.com args[1340617023] : ('0.0783824030070554',) no score found for photo 1340617023 We are sending mail with results at report@fotonower.com refus_total : 0.0783824030070554 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=20974054 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_P20974054_03-03-2025_12_30_58.pdf results_Auto_P20974054_03-03-2025_12_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_30_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20974054','results_Auto_P20974054_03-03-2025_12_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_30_58.pdf','pdf','','0.29','0.0783824030070554') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20974054]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] map_info['map_portfolio_photo'] : {20974054: [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023, 1340616956, 1340616950, 1340616945, 1340616943, 1340616938, 1340616899, 1340616895, 1340616886, 1340616874, 1340616826, 1340616817, 1340616813, 1340616808, 1340616805, 1340616762, 1340616748, 1340616744, 1340616739, 1340616733, 1340616674, 1340616668, 1340616663, 1340616661, 1340616638, 1340616633, 1340616627, 1340616623, 1340616619, 1340616608, 1340616540, 1340616527, 1340616475, 1340616469, 1340616463, 1340616431, 1340616418, 1340616408, 1340616400, 1340616390, 1340616358, 1340616350, 1340616334, 1340616322, 1340616320, 1340616310, 1340616272, 1340616264, 1340616256, 1340616242, 1340616186, 1340616179, 1340616175, 1340616171, 1340616168, 1340615978, 1340615972, 1340615968, 1340615956, 1340615952]} final : False mtd_id 4302 list_pids : [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] 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, '2629176') ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176') 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', '20974054', '1340617129', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176')] time used for this insertion : 0.013585567474365234 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.307536125183105 time spend to save output : 0.013970613479614258 total time spend for step 4 : 8.32150673866272 step5:split_time_score Mon Mar 3 12:31: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 : ['20974054'] 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 : [('20974054',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20974054) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340617129: {'path': 'temp/1741001458_2124814_1340617129_d217a8d9f69ced048afc8d6a48446408.jpg', 'extension': 'jpg'}, 1340617106: {'path': 'temp/1741001458_2124814_1340617106_61676462e01fe981d953023c5ac11f8c.jpg', 'extension': 'jpg'}, 1340617112: {'path': 'temp/1741001458_2124814_1340617112_81d60f8563813a2da05f0cec492244f2.jpg', 'extension': 'jpg'}, 1340617119: {'path': 'temp/1741001458_2124814_1340617119_ce078ec81d60d2827dd040e4ed28b004.jpg', 'extension': 'jpg'}, 1340617023: {'path': 'temp/1741001458_2124814_1340617023_e572bda7824e19a63bc5aa004b10642b.jpg', 'extension': 'jpg'}, 1340617026: {'path': 'temp/1741001458_2124814_1340617026_aa442950161dfa5880c50d896a922a69.jpg', 'extension': 'jpg'}, 1340617029: {'path': 'temp/1741001458_2124814_1340617029_61b77d2b1f0c087798e3c53608153be7.jpg', 'extension': 'jpg'}, 1340617033: {'path': 'temp/1741001458_2124814_1340617033_df3a9aa04b328e425ebd36a80400d321.jpg', 'extension': 'jpg'}, 1340617039: {'path': 'temp/1741001458_2124814_1340617039_6f387af65c32b4253741276f8d5f1c3a.jpg', 'extension': 'jpg'}, 1340617043: {'path': 'temp/1741001458_2124814_1340617043_08c8eb8fda6814ff35d045ea69913942.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 = 20974054; (('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 = 20974054 group by h (('12', 69),) 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=20974054 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 (20974054) 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 (20974054) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20974054 Nombre de photos uploadées : 69 / 23040 (0%) 03032025 20974054 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 03032025 20974054 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1340615978, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8b2d3e38affe068ca185f5c9b17285fb.jpg', 'username': None, 'uploaded_at': 1741000579, 'text': 'image_03032025_12_15_04_10145.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340615972, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ad493579fd85ff5d44e45261dc932267.jpg', 'username': None, 'uploaded_at': 1741000579, 'text': 'image_03032025_12_15_14_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340615968, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ded033848e088105cea3caf8f4e3a2fd.jpg', 'username': None, 'uploaded_at': 1741000579, 'text': 'image_03032025_12_15_24_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1340615956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d26e24a2a3bedcf2dcc988c82c1a7c22.jpg', 'username': None, 'uploaded_at': 1741000579, 'text': 'image_03032025_12_15_35_10141.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.6450881958007812e-05 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004468441009521484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20974054, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023487329483032227 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642381, 'mtr_portfolio_id': 20972467, 'dashboard_result_id': 9167276, '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_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642381, 'mtr_portfolio_id': 20973314, 'dashboard_result_id': 9167277, '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_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642381, 'mtr_portfolio_id': 20974054, 'dashboard_result_id': 9167278, '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_P20974054_03-03-2025_12_29_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, '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 = 20972467 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': 2629013, 'mtr_portfolio_id': 20972467, 'created_at': datetime.datetime(2025, 3, 3, 12, 2, 30), 'result': '0.09038174805835421', 'result_long': None, 'result_double': None}] Qualite : 0.09038174805835421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20972467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20972467 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_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, 'pht': 3726}}" where mtr_portfolio_id = 20972467 and dashboard_run_id = 1642381 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`=20972467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9167276, 0.09038174805835421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, '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 = 20973314 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': 2629118, 'mtr_portfolio_id': 20973314, 'created_at': datetime.datetime(2025, 3, 3, 12, 19), 'result': '0.07410755076568899', 'result_long': None, 'result_double': None}] Qualite : 0.07410755076568899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20973314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20973314 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_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, 'pht': 3726}}" where mtr_portfolio_id = 20973314 and dashboard_run_id = 1642381 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`=20973314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9167277, 0.07410755076568899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, '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 = 20974054 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': 2629176, 'mtr_portfolio_id': 20974054, 'created_at': datetime.datetime(2025, 3, 3, 12, 30, 58), 'result': '0.0783824030070554', 'result_long': None, 'result_double': None}] Qualite : 0.0783824030070554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20974054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20974054 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_P20974054_03-03-2025_12_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, 'pht': 3726}}" where mtr_portfolio_id = 20974054 and dashboard_run_id = 1642381 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`=20974054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9167278, 0.0783824030070554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, '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 (20972467,20973314,20974054) result : ((1340612758,), (1340612759,), (1340612772,), (1340612775,), (1340612788,), (1340613218,), (1340613273,), (1340613300,), (1340613302,), (1340613411,), (1340613414,), (1340613417,), (1340613421,), (1340613429,), (1340613440,), (1340613481,), (1340613483,), (1340613486,), (1340613489,), (1340613551,), (1340613558,), (1340613563,), (1340613566,), (1340613601,), (1340613606,), (1340613609,), (1340613615,), (1340613621,), (1340613627,), (1340613653,), (1340613656,), (1340613660,), (1340613664,), (1340613727,), (1340613734,), (1340613740,), (1340613745,), (1340613750,), (1340613756,), (1340613793,), (1340613806,), (1340613814,), (1340613850,), (1340613853,), (1340613859,), (1340613863,), (1340613875,), (1340613913,), (1340613918,), (1340613932,), (1340613949,), (1340613958,), (1340613972,), (1340614155,), (1340614165,), (1340614186,), (1340614193,), (1340614199,), (1340614204,), (1340614378,), (1340614399,), (1340614412,), (1340614421,), (1340614637,), (1340614649,), (1340614658,), (1340614666,), (1340614738,), (1340614724,), (1340614727,), (1340614733,), (1340614784,), (1340614787,), (1340614789,), (1340614802,), (1340614814,), (1340614822,), (1340614963,), (1340614967,), (1340614969,), (1340614976,), (1340615033,), (1340615037,), (1340615075,), (1340615104,), (1340615110,), (1340615143,), (1340615151,), (1340615162,), (1340615172,), (1340615177,), (1340615217,), (1340615221,), (1340615226,), (1340615230,), (1340615236,), (1340615264,), (1340615268,), (1340615270,), (1340615275,), (1340615281,), (1340615287,), (1340615337,), (1340615353,), (1340615365,), (1340615374,), (1340615394,), (1340615441,), (1340615445,), (1340615451,), (1340615458,), (1340615467,), (1340615503,), (1340615509,), (1340615517,), (1340615523,), (1340615549,), (1340615557,), (1340615604,), (1340615607,), (1340615610,), (1340615615,), (1340615622,), (1340615678,), (1340615685,), (1340615695,), (1340615705,), (1340615709,), (1340615731,), (1340615734,), (1340615737,), (1340615742,), (1340615744,), (1340615754,), (1340615795,), (1340615799,), (1340615806,), (1340615818,), (1340615835,), (1340615880,), (1340615883,), (1340615888,), (1340615891,), (1340615982,), (1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20974054]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] map_info['map_portfolio_photo'] : {20974054: [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023, 1340616956, 1340616950, 1340616945, 1340616943, 1340616938, 1340616899, 1340616895, 1340616886, 1340616874, 1340616826, 1340616817, 1340616813, 1340616808, 1340616805, 1340616762, 1340616748, 1340616744, 1340616739, 1340616733, 1340616674, 1340616668, 1340616663, 1340616661, 1340616638, 1340616633, 1340616627, 1340616623, 1340616619, 1340616608, 1340616540, 1340616527, 1340616475, 1340616469, 1340616463, 1340616431, 1340616418, 1340616408, 1340616400, 1340616390, 1340616358, 1340616350, 1340616334, 1340616322, 1340616320, 1340616310, 1340616272, 1340616264, 1340616256, 1340616242, 1340616186, 1340616179, 1340616175, 1340616171, 1340616168, 1340615978, 1340615972, 1340615968, 1340615956, 1340615952]} final : True mtd_id 4302 list_pids : [1340617129, 1340617119, 1340617112, 1340617106, 1340617043, 1340617039, 1340617033, 1340617029, 1340617026, 1340617023] Looping around the photos to save general results len do output : 1 /20974054Didn'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, '2629176') ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176') ('4302', None, None, None, None, None, None, None, '2629176') ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176') 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, '20974054', 'None', None, None, None, None, '2629176'), ('4302', '20974054', '1340617129', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617119', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617112', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617106', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617043', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617039', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617033', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617029', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617026', None, None, None, None, None, '2629176'), ('4302', '20974054', '1340617023', None, None, None, None, None, '2629176')] time used for this insertion : 0.01329183578491211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41101741790771484 time spend to save output : 0.013673782348632812 total time spend for step 5 : 0.42469120025634766 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 (2629176) 2.78user 2.10system 0:12.61elapsed 38%CPU (0avgtext+0avgdata 158628maxresident)k 2112inputs+19568outputs (13major+74800minor)pagefaults 0swaps