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 : 3241144 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 (2765395) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2765395) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461545 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2765395'] with mtr_portfolio_ids : ['22461545'] and first list_photo_ids : [] new path : /proc/3241144/ Name: python3 Umask: 0002 State: R (running) Tgid: 3241144 Ngid: 0 Pid: 3241144 PPid: 3241143 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3241144 NSpid: 3241144 NSpgid: 3238698 NSsid: 3238698 VmPeak: 1107232 kB VmSize: 1107232 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98732 kB VmRSS: 98732 kB RssAnon: 60192 kB RssFile: 38540 kB RssShmem: 0 kB VmData: 865980 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 62 nonvoluntary_ctxt_switches: 130 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3241144', 'Ngid': '0', 'Pid': '3241144', 'PPid': '3241143', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3241144', 'NSpid': '3241144', 'NSpgid': '3238698', 'NSsid': '3238698', 'VmPeak': '1107232 kB', 'VmSize': '1107232 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98732 kB', 'VmRSS': '98732 kB', 'RssAnon': '60192 kB', 'RssFile': '38540 kB', 'RssShmem': '0 kB', 'VmData': '865980 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '62', 'nonvoluntary_ctxt_switches': '130'} ('datou_batch_current', '3241144', '1107232', '0', '1107232', '865980', '98732', b'', 'marlene', '2765395') 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 (22461545) 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 (2765395 ) ) 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 (22461545) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353972433, 'portfolio_id': 22461545}, {'photo_id': 1353972429, 'portfolio_id': 22461545}, {'photo_id': 1353972420, 'portfolio_id': 22461545}, {'photo_id': 1353972416, 'portfolio_id': 22461545}, {'photo_id': 1353972413, 'portfolio_id': 22461545}, {'photo_id': 1353972397, 'portfolio_id': 22461545}, {'photo_id': 1353972351, 'portfolio_id': 22461545}, {'photo_id': 1353972348, 'portfolio_id': 22461545}, {'photo_id': 1353972344, 'portfolio_id': 22461545}, {'photo_id': 1353972313, 'portfolio_id': 22461545}, {'photo_id': 1353972196, 'portfolio_id': 22461545}, {'photo_id': 1353972153, 'portfolio_id': 22461545}, {'photo_id': 1353972150, 'portfolio_id': 22461545}, {'photo_id': 1353972148, 'portfolio_id': 22461545}, {'photo_id': 1353972144, 'portfolio_id': 22461545}, {'photo_id': 1353972141, 'portfolio_id': 22461545}, {'photo_id': 1353972134, 'portfolio_id': 22461545}, {'photo_id': 1353972092, 'portfolio_id': 22461545}, {'photo_id': 1353972087, 'portfolio_id': 22461545}, {'photo_id': 1353972079, 'portfolio_id': 22461545}, {'photo_id': 1353972076, 'portfolio_id': 22461545}, {'photo_id': 1353972034, 'portfolio_id': 22461545}, {'photo_id': 1353972032, 'portfolio_id': 22461545}, {'photo_id': 1353972028, 'portfolio_id': 22461545}, {'photo_id': 1353972024, 'portfolio_id': 22461545}, {'photo_id': 1353972021, 'portfolio_id': 22461545}, {'photo_id': 1353972016, 'portfolio_id': 22461545}, {'photo_id': 1353971985, 'portfolio_id': 22461545}, {'photo_id': 1353971983, 'portfolio_id': 22461545}, {'photo_id': 1353971981, 'portfolio_id': 22461545}, {'photo_id': 1353971979, 'portfolio_id': 22461545}, {'photo_id': 1353971976, 'portfolio_id': 22461545}, {'photo_id': 1353971898, 'portfolio_id': 22461545}, {'photo_id': 1353971896, 'portfolio_id': 22461545}, {'photo_id': 1353971893, 'portfolio_id': 22461545}, {'photo_id': 1353971890, 'portfolio_id': 22461545}, {'photo_id': 1353971881, 'portfolio_id': 22461545}, {'photo_id': 1353971824, 'portfolio_id': 22461545}, {'photo_id': 1353971821, 'portfolio_id': 22461545}, {'photo_id': 1353971819, 'portfolio_id': 22461545}, {'photo_id': 1353971816, 'portfolio_id': 22461545}, {'photo_id': 1353971808, 'portfolio_id': 22461545}, {'photo_id': 1353971802, 'portfolio_id': 22461545}, {'photo_id': 1353971733, 'portfolio_id': 22461545}, {'photo_id': 1353971731, 'portfolio_id': 22461545}, {'photo_id': 1353971728, 'portfolio_id': 22461545}, {'photo_id': 1353971727, 'portfolio_id': 22461545}, {'photo_id': 1353971720, 'portfolio_id': 22461545}, {'photo_id': 1353971688, 'portfolio_id': 22461545}, {'photo_id': 1353971682, 'portfolio_id': 22461545}, {'photo_id': 1353971671, 'portfolio_id': 22461545}, {'photo_id': 1353971664, 'portfolio_id': 22461545}, {'photo_id': 1353971656, 'portfolio_id': 22461545}, {'photo_id': 1353971617, 'portfolio_id': 22461545}, {'photo_id': 1353971600, 'portfolio_id': 22461545}, {'photo_id': 1353971570, 'portfolio_id': 22461545}, {'photo_id': 1353971540, 'portfolio_id': 22461545}, {'photo_id': 1353971508, 'portfolio_id': 22461545}, {'photo_id': 1353971357, 'portfolio_id': 22461545}, {'photo_id': 1353971349, 'portfolio_id': 22461545}, {'photo_id': 1353971344, 'portfolio_id': 22461545}, {'photo_id': 1353971340, 'portfolio_id': 22461545}] map_portfolio_id_photo_id: {22461545: [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196, 1353972153, 1353972150, 1353972148, 1353972144, 1353972141, 1353972134, 1353972092, 1353972087, 1353972079, 1353972076, 1353972034, 1353972032, 1353972028, 1353972024, 1353972021, 1353972016, 1353971985, 1353971983, 1353971981, 1353971979, 1353971976, 1353971898, 1353971896, 1353971893, 1353971890, 1353971881, 1353971824, 1353971821, 1353971819, 1353971816, 1353971808, 1353971802, 1353971733, 1353971731, 1353971728, 1353971727, 1353971720, 1353971688, 1353971682, 1353971671, 1353971664, 1353971656, 1353971617, 1353971600, 1353971570, 1353971540, 1353971508, 1353971357, 1353971349, 1353971344, 1353971340]} ##### 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.016557693481445312 #### 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 Apr 28 18:58: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 (22461545) 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 : 22461545 get user id for portfolio 22461545 get sub ptf for main ptf 22461545, type 3726 and hashtags ['Carton_brun', 'metal', 'cartonnette', 'papier', 'environnement', 'kraft', 'autre_refus', 'Carton_gris', 'flou', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22461545 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','cartonnette','papier','environnement','kraft','autre_refus','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22461545 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','cartonnette','papier','environnement','kraft','autre_refus','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22461545, 'sub_port_id': 22461551, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904739, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'Carton_brun': {'main_port_id': 22461545, 'sub_port_id': 22461552, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904740, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'kraft': {'main_port_id': 22461545, 'sub_port_id': 22461553, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904741, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'cartonnette': {'main_port_id': 22461545, 'sub_port_id': 22461554, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904742, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'environnement': {'main_port_id': 22461545, 'sub_port_id': 22461555, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904743, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'flou': {'main_port_id': 22461545, 'sub_port_id': 22461556, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904744, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22461545, 'sub_port_id': 22461557, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904745, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'mal_croppe': {'main_port_id': 22461545, 'sub_port_id': 22461558, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904746, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'papier': {'main_port_id': 22461545, 'sub_port_id': 22461559, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904747, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'plastique': {'main_port_id': 22461545, 'sub_port_id': 22461560, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904748, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'metal': {'main_port_id': 22461545, 'sub_port_id': 22461561, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904749, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'autre_refus': {'main_port_id': 22461545, 'sub_port_id': 22461562, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904750, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22461551 , 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=22461545 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 (22461551) result : ((1353971959,), (1353971960,), (1353971961,), (1353972045,), (1353972046,), (1353972091,), (1353972120,), (1353972121,), (1353972122,), (1353972167,), (1353972168,), (1353972180,), (1353972181,), (1353972182,), (1353972183,), (1353972184,), (1353972375,), (1353972376,), (1353972377,), (1353972445,), (1353972485,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461552 , 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=22461545 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 (22461552) result : ((1353971967,), (1353971968,), (1353971969,), (1353972093,), (1353972094,), (1353972095,), (1353972132,), (1353972133,), (1353972169,), (1353972187,), (1353972188,), (1353972189,), (1353972384,), (1353972446,), (1353972494,), (1353972496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461553 , 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=22461545 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 (22461553) result : ((1353971974,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461554 , 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=22461545 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 (22461554) result : ((1353971963,), (1353971964,), (1353972124,), (1353972125,), (1353972185,), (1353972379,), (1353972380,), (1353972381,), (1353972382,), (1353972490,), (1353972491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461555 , 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=22461545 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 (22461555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461556 , 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=22461545 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 (22461556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461557 , 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=22461545 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 (22461557) result : ((1353971953,), (1353971954,), (1353971955,), (1353971956,), (1353971957,), (1353971958,), (1353972042,), (1353972043,), (1353972081,), (1353972082,), (1353972083,), (1353972085,), (1353972086,), (1353972088,), (1353972116,), (1353972174,), (1353972175,), (1353972373,), (1353972441,), (1353972442,), (1353972471,), (1353972472,), (1353972474,), (1353972475,), (1353972476,), (1353972477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461558 , 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=22461545 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 (22461558) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461559 , 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=22461545 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 (22461559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461560 , 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=22461545 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 (22461560) result : ((1353971970,), (1353971971,), (1353971972,), (1353972096,), (1353972097,), (1353972137,), (1353972138,), (1353972139,), (1353972170,), (1353972190,), (1353972191,), (1353972192,), (1353972386,), (1353972387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461561 , 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=22461545 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 (22461561) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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 22461562 , 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=22461545 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 (22461562) result : ((1353972089,), (1353972117,), (1353972177,), (1353972481,), (1353972482,), (1353972483,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22461545) result : ((1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) 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 (1353971600) 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`=22461545 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','cartonnette','papier','environnement','kraft','autre_refus','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22461545 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','cartonnette','papier','environnement','kraft','autre_refus','Carton_gris','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22461545, 'sub_port_id': 22461563, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904751, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'Carton_brun': {'main_port_id': 22461545, 'sub_port_id': 22461564, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904752, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'kraft': {'main_port_id': 22461545, 'sub_port_id': 22461565, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904753, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'cartonnette': {'main_port_id': 22461545, 'sub_port_id': 22461566, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904754, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'environnement': {'main_port_id': 22461545, 'sub_port_id': 22461567, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904755, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'flou': {'main_port_id': 22461545, 'sub_port_id': 22461568, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904756, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22461545, 'sub_port_id': 22461569, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904757, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'mal_croppe': {'main_port_id': 22461545, 'sub_port_id': 22461570, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904758, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'papier': {'main_port_id': 22461545, 'sub_port_id': 22461571, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904759, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'plastique': {'main_port_id': 22461545, 'sub_port_id': 22461572, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904760, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'metal': {'main_port_id': 22461545, 'sub_port_id': 22461573, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904761, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}, 'autre_refus': {'main_port_id': 22461545, 'sub_port_id': 22461574, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14904762, 'last_updated_at': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 18, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 18, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22461574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22461562 lien utilise dans velours : https://www.fotonower.com/velours/22461563,22461564,22461565,22461566,22461567,22461568,22461569,22461570,22461571,22461572,22461573,22461574?tags=Carton_gris,Carton_brun,kraft,cartonnette,environnement,flou,Teint_Dans_La_Masse,mal_croppe,papier,plastique,metal,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22461545]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] map_info['map_portfolio_photo'] : {22461545: [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196, 1353972153, 1353972150, 1353972148, 1353972144, 1353972141, 1353972134, 1353972092, 1353972087, 1353972079, 1353972076, 1353972034, 1353972032, 1353972028, 1353972024, 1353972021, 1353972016, 1353971985, 1353971983, 1353971981, 1353971979, 1353971976, 1353971898, 1353971896, 1353971893, 1353971890, 1353971881, 1353971824, 1353971821, 1353971819, 1353971816, 1353971808, 1353971802, 1353971733, 1353971731, 1353971728, 1353971727, 1353971720, 1353971688, 1353971682, 1353971671, 1353971664, 1353971656, 1353971617, 1353971600, 1353971570, 1353971540, 1353971508, 1353971357, 1353971349, 1353971344, 1353971340]} final : False mtd_id 4302 list_pids : [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] Looping around the photos to save general results len do output : 1 /22461545. 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, '2765395') ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22461545', "{'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562}", None, None, None, None, '2765395'), ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395')] time used for this insertion : 0.017111539840698242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.49938154220581055 time spend to save output : 0.017835378646850586 total time spend for step 1 : 0.5172169208526611 step2:final Mon Apr 28 18:58: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 (22461545) 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 22461545 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353971357,1353971349,1353971344,1353971340,1353971617,1353971600,1353971570,1353971540,1353971508,1353971688,1353971682,1353971671,1353971664,1353971656,1353971733,1353971731,1353971728,1353971727,1353971720,1353971824,1353971821,1353971819,1353971816,1353971808,1353971802,1353971898,1353971896,1353971893,1353971890,1353971881,1353971985,1353971983,1353971981,1353971979,1353971976,1353972034,1353972032,1353972028,1353972024,1353972021,1353972016,1353972092,1353972087,1353972079,1353972076,1353972153,1353972150,1353972148,1353972144,1353972141,1353972134,1353972351,1353972348,1353972344,1353972313,1353972196,1353972433,1353972429,1353972420,1353972416,1353972413,1353972397); 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([22461545]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} new output for save of step final : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] map_info['map_portfolio_photo'] : {22461545: [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196, 1353972153, 1353972150, 1353972148, 1353972144, 1353972141, 1353972134, 1353972092, 1353972087, 1353972079, 1353972076, 1353972034, 1353972032, 1353972028, 1353972024, 1353972021, 1353972016, 1353971985, 1353971983, 1353971981, 1353971979, 1353971976, 1353971898, 1353971896, 1353971893, 1353971890, 1353971881, 1353971824, 1353971821, 1353971819, 1353971816, 1353971808, 1353971802, 1353971733, 1353971731, 1353971728, 1353971727, 1353971720, 1353971688, 1353971682, 1353971671, 1353971664, 1353971656, 1353971617, 1353971600, 1353971570, 1353971540, 1353971508, 1353971357, 1353971349, 1353971344, 1353971340]} final : False mtd_id 4302 list_pids : [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] Looping around the photos to save general results len do output : 11 /1353972433.Didn't retrieve data . /1353972429.Didn't retrieve data . /1353972420.Didn't retrieve data . /1353972416.Didn't retrieve data . /1353972413.Didn't retrieve data . /1353972397.Didn't retrieve data . /1353972351.Didn't retrieve data . /1353972348.Didn't retrieve data . /1353972344.Didn't retrieve data . /1353972313.Didn't retrieve data . /1353972196.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, '2765395') ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22461545', '1353972433', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972429', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972420', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972416', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972413', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972397', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972351', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972348', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972344', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972313', '0.06193176209290001', None, None, None, None, '2765395'), ('4302', '22461545', '1353972196', '0.06193176209290001', None, None, None, None, '2765395')] time used for this insertion : 0.015386343002319336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08004617691040039 time spend to save output : 0.01593780517578125 total time spend for step 2 : 0.09598398208618164 step3:velours_tree Mon Apr 28 18:58: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 : {22461545: [{'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562}]} input_args_next_step : {22461545: ()} output_args : {22461545: [{'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562}]} args : 22461545 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22461545) 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([22461545]) 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.330416202545166 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.330474853515625 step4:send_mail_cod Mon Apr 28 18:58: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 : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} input_args_next_step : {1353972433: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972433 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972429 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972420 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972416 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972413 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972397 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972351 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972348 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972344 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972313 depend.output_id : 0 input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ()} output_args : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',)} args : 1353972196 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 : {22461545: [{'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562}]} input_args_next_step : {1353972433: ('0.06193176209290001',), 1353972429: ('0.06193176209290001',), 1353972420: ('0.06193176209290001',), 1353972416: ('0.06193176209290001',), 1353972413: ('0.06193176209290001',), 1353972397: ('0.06193176209290001',), 1353972351: ('0.06193176209290001',), 1353972348: ('0.06193176209290001',), 1353972344: ('0.06193176209290001',), 1353972313: ('0.06193176209290001',), 1353972196: ('0.06193176209290001',), 22461545: ()} output_args : {22461545: [{'Carton_gris': 22461551, 'Carton_brun': 22461552, 'kraft': 22461553, 'cartonnette': 22461554, 'environnement': 22461555, 'flou': 22461556, 'Teint_Dans_La_Masse': 22461557, 'mal_croppe': 22461558, 'papier': 22461559, 'plastique': 22461560, 'metal': 22461561, 'autre_refus': 22461562}]} args : 22461545 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.06193176209290001',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22461545) 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 (1353972433,1353972429,1353972420,1353972416,1353972413,1353972397,1353972351,1353972348,1353972344,1353972313,1353972196) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353972196 begin to download photo : 1353972348 begin to download photo : 1353972413 begin to download photo : 1353972429 download finish for photo 1353972196 begin to download photo : 1353972313 download finish for photo 1353972429 begin to download photo : 1353972433 download finish for photo 1353972348 begin to download photo : 1353972351 download finish for photo 1353972413 begin to download photo : 1353972416 download finish for photo 1353972313 begin to download photo : 1353972344 download finish for photo 1353972433 download finish for photo 1353972416 begin to download photo : 1353972420 download finish for photo 1353972351 begin to download photo : 1353972397 download finish for photo 1353972344 download finish for photo 1353972420 download finish for photo 1353972397 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22461545_28-04-2025_18_58_58.pdf 22461553 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=22461553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353971974: '1745859101_2963978_1353971731_00a2dd337387e2b7eaf8a7a36e0a642a_rle_crop_3771285228_0.png'} change filename to text .imagette224615531745859538/ imagette224615531745859538/1745859101_2963978_1353971731_00a2dd337387e2b7eaf8a7a36e0a642a_rle_crop_3771285228_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/84fb56ae17eae0ed8c171b5ef6c1e038_99908798.png imagette224615531745859538 22461554 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=22461554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353971963: '1745859073_3507931_1353971682_f27bdd4b5f196cc2b54b9ce5a5eed6ea_rle_crop_3771285160_0.png', 1353971964: '1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285206_0.png', 1353972124: '1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286066_0.png', 1353972125: '1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286073_0.png', 1353972185: '1745859312_3510119_1353972021_3381dc215b4a756038a14397837fc9c9_rle_crop_3771286399_0.png', 1353972379: '1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771291995_0.png', 1353972380: '1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771291997_0.png', 1353972381: '1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292009_0.png', 1353972382: '1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292012_0.png', 1353972490: '1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296072_0.png', 1353972491: '1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296145_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3038fb2d386179cfbf36c96bf3bac39e_69199223.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ccfaf725178c380a517c8f36fda50cbc_13673635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a1a7b563b893c0f5702c5695392a9412_70594494.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d9c181dd5b6a88a1bc0f05a628c33c26_23774359.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8b4b80f2a80956e9675fc8838a83ad79_19657837.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a56b826927e92417b1bd24604a47599e_2002805.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6b58dd4a2bdd410b6ecc0da68b89c7d5_83222138.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b819551297b28c0306962cebf0327223_52128326.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a2563cbf2dacd585271e74e7624e3666_99976199.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5d149ff28427b5a7cfc49fc3a1290cb9_41045498.png change filename to text .imagette224615541745859538/ imagette224615541745859538/1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296072_0.png.png imagette224615541745859538/1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771291995_0.png.png imagette224615541745859538/1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286066_0.png.png imagette224615541745859538/1745859312_3510119_1353972021_3381dc215b4a756038a14397837fc9c9_rle_crop_3771286399_0.png.png imagette224615541745859538/1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292012_0.png.png imagette224615541745859538/1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292009_0.png.png imagette224615541745859538/1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285206_0.png.png imagette224615541745859538/1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771291997_0.png.png imagette224615541745859538/1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286073_0.png.png imagette224615541745859538/1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296145_0.png.png imagette224615541745859538/1745859073_3507931_1353971682_f27bdd4b5f196cc2b54b9ce5a5eed6ea_rle_crop_3771285160_0.png.png imagette224615561745859539/ imagette224615581745859539/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b7872aaeb0da6902113badfe1a660294_10522072.png imagette224615541745859538 22461556 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=22461556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224615561745859539 22461558 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=22461558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224615581745859539 22461560 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=22461560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353971970: '1745859073_3507931_1353971682_f27bdd4b5f196cc2b54b9ce5a5eed6ea_rle_crop_3771285158_0.png', 1353971971: '1745859073_3507931_1353971671_2d5671532bf4eb2d276b34df30171b42_rle_crop_3771285173_0.png', 1353971972: '1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285211_0.png', 1353972096: '1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285872_0.png', 1353972097: '1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285900_0.png', 1353972137: '1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286055_0.png', 1353972138: '1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286060_0.png', 1353972139: '1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286084_0.png', 1353972170: '1745859326_552631_1353972079_75fac7613635e563e615ee9458d2e959_rle_crop_3771286324_0.png', 1353972190: '1745859312_3510119_1353972032_fa0a38b15c8bbb595a9400d87a06faf6_rle_crop_3771286358_0.png', 1353972191: '1745859312_3510119_1353972024_7383d29c9e09d5d1eceae783646d1ab9_rle_crop_3771286393_0.png', 1353972192: '1745859312_3510119_1353972016_4b62a6e5f9c83b0b3a545383580a0900_rle_crop_3771286407_0.png', 1353972386: '1745859371_3510643_1353972034_3b8b740044f7945de9ff5315a679b66d_rle_crop_3771291974_0.png', 1353972387: '1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771292000_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d18db6b45bdf4b71cd1ab7f17048fb16_71064429.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/10b010214fef6d95f30d808a9ec00f1a_57001778.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/01423e2854ea1c4ff2f640121445c7f5_66749152.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/535339328198959fc639666bb2953cfa_75307929.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3e9f0d2a998cbdd830c9d2cdd423ad5f_16997371.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/67e8ff39dfabd3fe2d7b560cd0fcdf5b_85250356.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/63b8383b3dcb617148f749205b678d92_86503464.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/139833cbfb1aba196c336fdf4343b2c8_32658889.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1d95327699316a200637eb2e732e9011_8743295.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/092e0790cdd2d2a008c08065ab784941_61953421.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8c269770facdaa88a24391bb94e3b2a2_3916530.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9001cfe9d8b4b4ff0b656c3a9dfffb4f_39878237.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/055bc2ba933265c75c7655337c5c9c82_62623492.png change filename to text .imagette224615601745859539/ imagette224615601745859539/1745859073_3507931_1353971671_2d5671532bf4eb2d276b34df30171b42_rle_crop_3771285173_0.png.png imagette224615601745859539/1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286055_0.png.png imagette224615601745859539/1745859073_3507931_1353971682_f27bdd4b5f196cc2b54b9ce5a5eed6ea_rle_crop_3771285158_0.png.png imagette224615601745859539/1745859312_3510119_1353972016_4b62a6e5f9c83b0b3a545383580a0900_rle_crop_3771286407_0.png.png imagette224615601745859539/1745859326_552631_1353972079_75fac7613635e563e615ee9458d2e959_rle_crop_3771286324_0.png.png imagette224615601745859539/1745859312_3510119_1353972032_fa0a38b15c8bbb595a9400d87a06faf6_rle_crop_3771286358_0.png.png imagette224615601745859539/1745859371_3510643_1353972034_3b8b740044f7945de9ff5315a679b66d_rle_crop_3771291974_0.png.png imagette224615601745859539/1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286084_0.png.png imagette224615601745859539/1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285872_0.png.png imagette224615601745859539/1745859312_3510119_1353972024_7383d29c9e09d5d1eceae783646d1ab9_rle_crop_3771286393_0.png.png imagette224615601745859539/1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285900_0.png.png imagette224615601745859539/1745859371_3510643_1353971981_4e67ee96273dfb6451ffc065593793a1_rle_crop_3771292000_0.png.png imagette224615601745859539/1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285211_0.png.png imagette224615601745859539/1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286060_0.png.png imagette224615611745859540/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/0230325b466d4246948d3772253d8514_44659906.png imagette224615601745859539 22461561 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=22461561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224615611745859540 22461562 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=22461562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353972089: '1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285893_0.png', 1353972117: '1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286082_0.png', 1353972177: '1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286344_0.png', 1353972481: '1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296098_0.png', 1353972482: '1745859462_2971678_1353972148_c719278176aa37c5ffa2a8d1cadcc949_rle_crop_3771296113_0.png', 1353972483: '1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b56d8ef5902c093514f24ffbbccab8c8_40664611.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c49ea17933fd834f194a107d5dbc965b_20613373.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5ad08fcc26633ce13078978aa47fb6b6_76542374.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/28466212b3e77ff889fbae632d624592_74240574.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/605ce50101b7c4f90faa3a6a3853f00f_60435638.png change filename to text .imagette224615621745859540/ imagette224615621745859540/1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296098_0.png.png imagette224615621745859540/1745859462_2971678_1353972148_c719278176aa37c5ffa2a8d1cadcc949_rle_crop_3771296113_0.png.png imagette224615621745859540/1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286082_0.png.png imagette224615621745859540/1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296142_0.png.png imagette224615621745859540/1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286344_0.png.png imagette224615621745859540/1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285893_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4185b3cc8909b3391ade7d931477211a_56197665.png imagette224615621745859540 22461551 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=22461551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353972168: '1745859326_552631_1353972079_75fac7613635e563e615ee9458d2e959_rle_crop_3771286332_0.png', 1353972485: '1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296091_0.png', 1353972445: '1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295837_0.png', 1353972377: '1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292013_0.png', 1353972376: '1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291981_0.png', 1353972375: '1745859371_3510643_1353972034_3b8b740044f7945de9ff5315a679b66d_rle_crop_3771291973_0.png', 1353972184: '1745859312_3510119_1353972024_7383d29c9e09d5d1eceae783646d1ab9_rle_crop_3771286386_0.png', 1353972183: '1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286372_0.png', 1353972182: '1745859312_3510119_1353972032_fa0a38b15c8bbb595a9400d87a06faf6_rle_crop_3771286356_0.png', 1353972181: '1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286343_0.png', 1353972180: '1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286340_0.png', 1353971959: '1745859073_3507931_1353971671_2d5671532bf4eb2d276b34df30171b42_rle_crop_3771285171_0.png', 1353972167: '1745859326_552631_1353972087_b5441e00e1cc9b9045178c3f54931a72_rle_crop_3771286311_0.png', 1353972122: '1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286080_0.png', 1353972121: '1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286068_0.png', 1353972120: '1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286054_0.png', 1353972091: '1745859224_2966701_1353971821_e3510d69fbab96eb53bb1e3f7010cfc4_rle_crop_3771285852_0.png', 1353972046: '1745859192_3509043_1353971890_dfba3b45bb157d4359e61dc25aee8caf_rle_crop_3771285677_0.png', 1353972045: '1745859192_3509043_1353971890_dfba3b45bb157d4359e61dc25aee8caf_rle_crop_3771285672_0.png', 1353971961: '1745859073_3507931_1353971664_1ac3ef04cef4db5ead702cd9d1d56967_rle_crop_3771285191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8421da61fd008b4c831aab2d1bf933b5_69786347.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2d3a25c94c989eb696cee413b0f5a306_35588545.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5105605b01c366c8121ce5c234115b5e_15023081.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/639d838ac1895ba80d489378a0c3bdc5_16080625.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4c6ffab23a6335416fd7f792de6f6a02_76714017.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7808a8748177a04e59f871c06ba308e8_49521003.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c83570c04b549ce40ba83f849918ce53_74776567.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/93f0c3b4de0e266a3b1cdb019ecf9c03_23658329.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d01602eade1bc0305f488fbf4351c00f_71555549.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5a604d98434d042f05f540432a11298f_61363043.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7335252befc342bf2f4c53ee64074466_52336807.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/88c4c5fc8866026f5d6b1d7d3199c0ab_54543186.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6b3bc6c40e87dcf6b681254485941a41_34218944.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d0d91adcb2257de6c7813a8f565980c9_73600391.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/595437936cd691d8c054ff5d4fe1d4db_11441552.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8dec1b3ba86ff03ab5f41fcf05ba5d7c_66470885.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b05b595e669d9548e087341c0e684f51_81187173.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e5fd81d0f1b8c6b5f061ac6c7acea26c_59511911.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/57939dee8bc3dded5c942b99938840cd_20510461.png change filename to text .imagette224615511745859540/ imagette224615511745859540/1745859073_3507931_1353971664_1ac3ef04cef4db5ead702cd9d1d56967_rle_crop_3771285191_0.png.png imagette224615511745859540/1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286343_0.png.png imagette224615511745859540/1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286054_0.png.png imagette224615511745859540/1745859326_552631_1353972079_75fac7613635e563e615ee9458d2e959_rle_crop_3771286332_0.png.png imagette224615511745859540/1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291981_0.png.png imagette224615511745859540/1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286372_0.png.png imagette224615511745859540/1745859073_3507931_1353971671_2d5671532bf4eb2d276b34df30171b42_rle_crop_3771285171_0.png.png imagette224615511745859540/1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295837_0.png.png imagette224615511745859540/1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286340_0.png.png imagette224615511745859540/1745859253_3509570_1353971508_90fbccf684e6a62affb4e2f2dc2a718f_rle_crop_3771286080_0.png.png imagette224615511745859540/1745859312_3510119_1353972032_fa0a38b15c8bbb595a9400d87a06faf6_rle_crop_3771286356_0.png.png imagette224615511745859540/1745859326_552631_1353972087_b5441e00e1cc9b9045178c3f54931a72_rle_crop_3771286311_0.png.png imagette224615511745859540/1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296091_0.png.png imagette224615511745859540/1745859224_2966701_1353971821_e3510d69fbab96eb53bb1e3f7010cfc4_rle_crop_3771285852_0.png.png imagette224615511745859540/1745859192_3509043_1353971890_dfba3b45bb157d4359e61dc25aee8caf_rle_crop_3771285672_0.png.png imagette224615511745859540/1745859371_3510643_1353972034_3b8b740044f7945de9ff5315a679b66d_rle_crop_3771291973_0.png.png imagette224615511745859540/1745859192_3509043_1353971890_dfba3b45bb157d4359e61dc25aee8caf_rle_crop_3771285677_0.png.png imagette224615511745859540/1745859371_3510643_1353971979_dc924a22d3a7466ac58559400447fcda_rle_crop_3771292013_0.png.png imagette224615511745859540/1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286068_0.png.png imagette224615511745859540/1745859312_3510119_1353972024_7383d29c9e09d5d1eceae783646d1ab9_rle_crop_3771286386_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/206ed8cd478383d956dcec057dd589ec_84486246.png imagette224615511745859540 22461552 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=22461552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353971967: '1745859073_3507931_1353971733_7cc885f26f99946842d88d763a1c6479_rle_crop_3771285101_0.png', 1353971968: '1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285214_0.png', 1353971969: '1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285215_0.png', 1353972093: '1745859224_2966701_1353971821_e3510d69fbab96eb53bb1e3f7010cfc4_rle_crop_3771285855_0.png', 1353972094: '1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285867_0.png', 1353972095: '1745859224_2966701_1353971802_c3a95f2206b23302e6a59425659869f0_rle_crop_3771285909_0.png', 1353972132: '1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286059_0.png', 1353972133: '1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286070_0.png', 1353972169: '1745859326_552631_1353972087_b5441e00e1cc9b9045178c3f54931a72_rle_crop_3771286314_0.png', 1353972187: '1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286345_0.png', 1353972188: '1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286376_0.png', 1353972189: '1745859312_3510119_1353972016_4b62a6e5f9c83b0b3a545383580a0900_rle_crop_3771286412_0.png', 1353972384: '1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291984_0.png', 1353972446: '1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295839_0.png', 1353972494: '1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296100_0.png', 1353972496: '1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296156_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/aa8c9206f378059f0354bc59692f2256_73885453.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/51228edef78819bf747f2645cba89347_5123195.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/577e60dd2ee7c8b5689cf41526742586_10711002.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/694fc796197fa433eed81dc4222e6e7c_35110349.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3c5b2c3214eea755e523f3ae7ed6a184_15282223.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ddc729795a98a54218aecf45c3107430_61115638.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/135f961ffa1f1de1778591275efca758_53341592.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f476265a198ebe8da9eee30396d8db8c_29774239.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5b2451143724e56d0aecc33a0af0fe88_47092582.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/0f6afdade471177385c30991a0ff24d0_46471985.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/660ce1c31ba3a1922ca4e032b339bd56_61676505.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/08d26f74a7cf57bf2d92bf223ebce6cf_59393755.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/806760925d9a8f1acb793a313da2a7b5_46214340.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/0a6d0eae0ca3440a1346040345afbd11_23514164.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/50256d894002110f30b80069dff2bd9a_24888520.png change filename to text .imagette224615521745859541/ imagette224615521745859541/1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286070_0.png.png imagette224615521745859541/1745859224_2966701_1353971802_c3a95f2206b23302e6a59425659869f0_rle_crop_3771285909_0.png.png imagette224615521745859541/1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285867_0.png.png imagette224615521745859541/1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291984_0.png.png imagette224615521745859541/1745859326_552631_1353972087_b5441e00e1cc9b9045178c3f54931a72_rle_crop_3771286314_0.png.png imagette224615521745859541/1745859224_2966701_1353971821_e3510d69fbab96eb53bb1e3f7010cfc4_rle_crop_3771285855_0.png.png imagette224615521745859541/1745859073_3507931_1353971733_7cc885f26f99946842d88d763a1c6479_rle_crop_3771285101_0.png.png imagette224615521745859541/1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286376_0.png.png imagette224615521745859541/1745859462_2971678_1353972150_634bd4562b04433f41b057b184000791_rle_crop_3771296100_0.png.png imagette224615521745859541/1745859462_2971678_1353972144_79a99ec566eae7a958dabc94278ef6f2_rle_crop_3771296156_0.png.png imagette224615521745859541/1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285215_0.png.png imagette224615521745859541/1745859073_3507931_1353971656_bf41c9319a37cf6458924e3613e35031_rle_crop_3771285214_0.png.png imagette224615521745859541/1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286345_0.png.png imagette224615521745859541/1745859312_3510119_1353972016_4b62a6e5f9c83b0b3a545383580a0900_rle_crop_3771286412_0.png.png imagette224615521745859541/1745859253_3509570_1353971570_7c17b843de93b731d719dcf080cc49d3_rle_crop_3771286059_0.png.png imagette224615521745859541/1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295839_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/868392b6b94a92a3e3d22827688b7f4c_19610329.png imagette224615521745859541 22461557 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=22461557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353972088: '1745859224_2966701_1353971802_c3a95f2206b23302e6a59425659869f0_rle_crop_3771285906_0.png', 1353972477: '1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296204_0.png', 1353972476: '1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296206_0.png', 1353972475: '1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296205_0.png', 1353972474: '1745859462_2971678_1353972148_c719278176aa37c5ffa2a8d1cadcc949_rle_crop_3771296120_0.png', 1353972472: '1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296073_0.png', 1353972471: '1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296077_0.png', 1353972442: '1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295843_0.png', 1353972441: '1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295840_0.png', 1353972373: '1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291986_0.png', 1353972175: '1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286380_0.png', 1353972174: '1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286342_0.png', 1353972116: '1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286074_0.png', 1353971953: '1745859073_3507931_1353971733_7cc885f26f99946842d88d763a1c6479_rle_crop_3771285102_0.png', 1353972086: '1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285895_0.png', 1353972085: '1745859224_2966701_1353971816_4243211895b90964f9448a782f56ed0b_rle_crop_3771285880_0.png', 1353972083: '1745859224_2966701_1353971816_4243211895b90964f9448a782f56ed0b_rle_crop_3771285881_0.png', 1353972082: '1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285868_0.png', 1353972081: '1745859224_2966701_1353971898_8b4bc475fff41ad31b61bda41aa3e22f_rle_crop_3771285848_0.png', 1353972043: '1745859192_3509043_1353971881_a9b4da90a4ea9804c6d1969c8fc7be8f_rle_crop_3771285689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5a4726f3d45cc39391a104e2c7846bfa_38318086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1f977c9c5feaca0e234dd22da1c7c78f_7168900.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f2ec126793cf27132dd6e922f14c07d7_94566864.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/583874709ddfd73396bba5ede33fbf06_63454218.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2f1328bbe6340ac6bd0a12daf4aa3827_83465066.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/eeda6f321f9795ecc602db7655942b1a_21072222.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3292fd7b45f7e9cb3d3914c486f5f3ca_21847622.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/da1b940a339f55a0a3bc153730cdd3d0_3623267.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/87cba5b2bc071b2ce53dc0af24eab400_31495510.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/02e8057b84df035e69d8f883fc87dd31_48555356.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1cf1778b4e81e0e495a5d0ca6d0440bd_51456904.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6022e3ccc9a0a552659808e7f48b8ca8_47956466.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/897b901a7f448ddc0acc01018be67982_48602012.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ff8ffe142c7c9a1134115bb9b2483650_75330192.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/45534aa13f76757da791c909e96b79b0_55616055.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d3ff6621393cdb39cfc3e5753f2a1e75_82280835.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e5148451fd913ec3a858c370439fd372_374355.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4293f55668d68c71b5de2916ae2e2133_68389463.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f72390c81d20623f7c4bdd77c5ece8dd_75023960.png change filename to text .imagette224615571745859542/ imagette224615571745859542/1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296206_0.png.png imagette224615571745859542/1745859224_2966701_1353971802_c3a95f2206b23302e6a59425659869f0_rle_crop_3771285906_0.png.png imagette224615571745859542/1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296204_0.png.png imagette224615571745859542/1745859073_3507931_1353971733_7cc885f26f99946842d88d763a1c6479_rle_crop_3771285102_0.png.png imagette224615571745859542/1745859253_3509570_1353971540_8ae8698bbd17614232a9ff4d4c1b8a2f_rle_crop_3771286074_0.png.png imagette224615571745859542/1745859312_3510119_1353972028_3fbe7a58db8d99c9f947def31fe5c1fd_rle_crop_3771286380_0.png.png imagette224615571745859542/1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296077_0.png.png imagette224615571745859542/1745859224_2966701_1353971808_b9b15c9ad01cd8c46a91930ec29fb89e_rle_crop_3771285895_0.png.png imagette224615571745859542/1745859371_3510643_1353971983_b645b74d8a41ff70bfa8c9bdd9ce36c3_rle_crop_3771291986_0.png.png imagette224615571745859542/1745859312_3510119_1353972092_dcd34b7f85991f2d2d44b75c2272e0ff_rle_crop_3771286342_0.png.png imagette224615571745859542/1745859224_2966701_1353971819_80c1af3b13c0f8aba104623f09df5270_rle_crop_3771285868_0.png.png imagette224615571745859542/1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295843_0.png.png imagette224615571745859542/1745859224_2966701_1353971898_8b4bc475fff41ad31b61bda41aa3e22f_rle_crop_3771285848_0.png.png imagette224615571745859542/1745859192_3509043_1353971881_a9b4da90a4ea9804c6d1969c8fc7be8f_rle_crop_3771285689_0.png.png imagette224615571745859542/1745859433_3511431_1353972348_38bc93b5a9ba74507bd6598651d89cc4_rle_crop_3771295840_0.png.png imagette224615571745859542/1745859224_2966701_1353971816_4243211895b90964f9448a782f56ed0b_rle_crop_3771285881_0.png.png imagette224615571745859542/1745859462_2971678_1353972148_c719278176aa37c5ffa2a8d1cadcc949_rle_crop_3771296120_0.png.png imagette224615571745859542/1745859224_2966701_1353971816_4243211895b90964f9448a782f56ed0b_rle_crop_3771285880_0.png.png imagette224615571745859542/1745859462_2971678_1353972134_c7a7da8be5dd39f04422ce0efa2e9230_rle_crop_3771296205_0.png.png imagette224615571745859542/1745859462_2971678_1353972351_31643eb94651ce7e25dd6e60df3f590d_rle_crop_3771296073_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/250d597255d41d2f0997b7de3275ea3b_72902149.png imagette224615571745859542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22461545 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22461563,22461564,22461565,22461566,22461567,22461568,22461569,22461570,22461571,22461572,22461573,22461574?tags=Carton_gris,Carton_brun,kraft,cartonnette,environnement,flou,Teint_Dans_La_Masse,mal_croppe,papier,plastique,metal,autre_refus your option no_mail is active, we will not send the real mail to your client args[1353972433] : ('0.06193176209290001',) no score found for photo 1353972433 We are sending mail with results at report@fotonower.com args[1353972429] : ('0.06193176209290001',) no score found for photo 1353972429 We are sending mail with results at report@fotonower.com args[1353972420] : ('0.06193176209290001',) no score found for photo 1353972420 We are sending mail with results at report@fotonower.com args[1353972416] : ('0.06193176209290001',) no score found for photo 1353972416 We are sending mail with results at report@fotonower.com args[1353972413] : ('0.06193176209290001',) no score found for photo 1353972413 We are sending mail with results at report@fotonower.com args[1353972397] : ('0.06193176209290001',) no score found for photo 1353972397 We are sending mail with results at report@fotonower.com args[1353972351] : ('0.06193176209290001',) no score found for photo 1353972351 We are sending mail with results at report@fotonower.com args[1353972348] : ('0.06193176209290001',) no score found for photo 1353972348 We are sending mail with results at report@fotonower.com args[1353972344] : ('0.06193176209290001',) no score found for photo 1353972344 We are sending mail with results at report@fotonower.com args[1353972313] : ('0.06193176209290001',) no score found for photo 1353972313 We are sending mail with results at report@fotonower.com args[1353972196] : ('0.06193176209290001',) no score found for photo 1353972196 We are sending mail with results at report@fotonower.com refus_total : 0.06193176209290001 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=22461545 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_P22461545_28-04-2025_18_58_58.pdf results_Auto_P22461545_28-04-2025_18_58_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_18_58_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','22461545','results_Auto_P22461545_28-04-2025_18_58_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_18_58_58.pdf','pdf','','0.38','0.06193176209290001') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22461545]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] map_info['map_portfolio_photo'] : {22461545: [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196, 1353972153, 1353972150, 1353972148, 1353972144, 1353972141, 1353972134, 1353972092, 1353972087, 1353972079, 1353972076, 1353972034, 1353972032, 1353972028, 1353972024, 1353972021, 1353972016, 1353971985, 1353971983, 1353971981, 1353971979, 1353971976, 1353971898, 1353971896, 1353971893, 1353971890, 1353971881, 1353971824, 1353971821, 1353971819, 1353971816, 1353971808, 1353971802, 1353971733, 1353971731, 1353971728, 1353971727, 1353971720, 1353971688, 1353971682, 1353971671, 1353971664, 1353971656, 1353971617, 1353971600, 1353971570, 1353971540, 1353971508, 1353971357, 1353971349, 1353971344, 1353971340]} final : False mtd_id 4302 list_pids : [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] 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, '2765395') ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395') 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', '22461545', '1353972433', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395')] time used for this insertion : 0.014368057250976562 save_final save missing photos in datou_result : time spend for datou_step_exec : 16.60709571838379 time spend to save output : 0.014682292938232422 total time spend for step 4 : 16.62177801132202 step5:split_time_score Mon Apr 28 18:59:14 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 : ['22461545'] 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 : [('22461545',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22461545) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353972429: {'path': 'temp/1745859538_3241144_1353972429_74c9326c812d46335bc706c7c045c903.jpg', 'extension': 'jpg'}, 1353972433: {'path': 'temp/1745859538_3241144_1353972433_617462d447b0b2d47fb9930d021d33ae.jpg', 'extension': 'jpg'}, 1353972196: {'path': 'temp/1745859538_3241144_1353972196_c98837887da639394558269feda70dff.jpg', 'extension': 'jpg'}, 1353972313: {'path': 'temp/1745859538_3241144_1353972313_f139b7ec8c255d8b4e68749844122030.jpg', 'extension': 'jpg'}, 1353972344: {'path': 'temp/1745859538_3241144_1353972344_141f2e95387458a5c91b491840400cea.jpg', 'extension': 'jpg'}, 1353972413: {'path': 'temp/1745859538_3241144_1353972413_e987304d1820f661e2259f38c399f568.jpg', 'extension': 'jpg'}, 1353972416: {'path': 'temp/1745859538_3241144_1353972416_94697bb078ecd3e392145282615f45ea.jpg', 'extension': 'jpg'}, 1353972420: {'path': 'temp/1745859538_3241144_1353972420_4103add6f9ecebee64d8e7660819492c.jpg', 'extension': 'jpg'}, 1353972348: {'path': 'temp/1745859538_3241144_1353972348_38bc93b5a9ba74507bd6598651d89cc4.jpg', 'extension': 'jpg'}, 1353972351: {'path': 'temp/1745859538_3241144_1353972351_31643eb94651ce7e25dd6e60df3f590d.jpg', 'extension': 'jpg'}, 1353972397: {'path': 'temp/1745859538_3241144_1353972397_5879b136f631ee637c0e980984e6133f.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 = 22461545; (('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 = 22461545 group by h (('18', 62),) 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=22461545 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 (22461545) 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 (22461545) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28042025 22461545 Nombre de photos uploadées : 62 / 23040 (0%) 28042025 22461545 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 28042025 22461545 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1353971357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/67545e2b4cb333ec820120749b08e80d.jpg', 'username': None, 'uploaded_at': 1745858768, 'text': 'image_28042025_18_45_04_10139.jpg'}, {'photo_id': 1353971349, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ff3ccaf3cc9ba7b09b7c66114f06ff23.jpg', 'username': None, 'uploaded_at': 1745858768, 'text': 'image_28042025_18_45_14_10134.jpg'}, {'photo_id': 1353971344, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d97fe60a677bac64bb24dcdfbb733cf5.jpg', 'username': None, 'uploaded_at': 1745858768, 'text': 'image_28042025_18_45_34_10133.jpg'}, {'photo_id': 1353971340, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/98b507f1ea1c71bbc896aded74ee8d75.jpg', 'username': None, 'uploaded_at': 1745858768, 'text': 'image_28042025_18_45_43_9123.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002800464630126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22461545, '2025-04-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1750587,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0256040096282959 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= 1750587 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759409, 'mtr_portfolio_id': 22459996, 'dashboard_result_id': 10119897, '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_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759409, 'mtr_portfolio_id': 22460453, 'dashboard_result_id': 10119898, '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_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759409, 'mtr_portfolio_id': 22460775, 'dashboard_result_id': 10119899, '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_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1759409, 'mtr_portfolio_id': 22461545, 'dashboard_result_id': 10119900, '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_P22461545_28-04-2025_18_56_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, '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 = 22459996 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': 2765222, 'mtr_portfolio_id': 22459996, 'created_at': datetime.datetime(2025, 4, 28, 18, 21, 28), 'result': '0.04501813960792619', 'result_long': None, 'result_double': None}] Qualite : 0.04501813960792619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22459996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22459996 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_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, 'pht': 3726}}" where mtr_portfolio_id = 22459996 and dashboard_run_id = 1759409 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`=22459996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10119897, 0.04501813960792619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, '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 = 22460453 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': 2765277, 'mtr_portfolio_id': 22460453, 'created_at': datetime.datetime(2025, 4, 28, 18, 32, 57), 'result': '0.051329745574703045', 'result_long': None, 'result_double': None}] Qualite : 0.051329745574703045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22460453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22460453 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_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, 'pht': 3726}}" where mtr_portfolio_id = 22460453 and dashboard_run_id = 1759409 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`=22460453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10119898, 0.051329745574703045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, '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 = 22460775 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': 2765326, 'mtr_portfolio_id': 22460775, 'created_at': datetime.datetime(2025, 4, 28, 18, 49), 'result': '0.05296067862264657', 'result_long': None, 'result_double': None}] Qualite : 0.05296067862264657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22460775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22460775 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_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, 'pht': 3726}}" where mtr_portfolio_id = 22460775 and dashboard_run_id = 1759409 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`=22460775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10119899, 0.05296067862264657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, '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 = 22461545 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': 2765395, 'mtr_portfolio_id': 22461545, 'created_at': datetime.datetime(2025, 4, 28, 18, 58, 58), 'result': '0.06193176209290001', 'result_long': None, 'result_double': None}] Qualite : 0.06193176209290001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22461545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_18_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22461545 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_P22461545_28-04-2025_18_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, 'pht': 3726}}" where mtr_portfolio_id = 22461545 and dashboard_run_id = 1759409 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`=22461545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10119900, 0.06193176209290001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_18_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, '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 (22459996,22460453,22460775,22461545) result : ((1353962158,), (1353962179,), (1353962211,), (1353962456,), (1353962459,), (1353962463,), (1353962466,), (1353962469,), (1353962499,), (1353962507,), (1353962513,), (1353962522,), (1353962528,), (1353962533,), (1353962567,), (1353962576,), (1353962581,), (1353962586,), (1353962591,), (1353962614,), (1353962618,), (1353962624,), (1353962631,), (1353962636,), (1353962659,), (1353962663,), (1353962669,), (1353962673,), (1353962748,), (1353962753,), (1353962758,), (1353962762,), (1353962771,), (1353962774,), (1353962823,), (1353962829,), (1353962835,), (1353962840,), (1353962880,), (1353962885,), (1353962888,), (1353962891,), (1353962895,), (1353963262,), (1353963313,), (1353963316,), (1353963746,), (1353963733,), (1353963735,), (1353963738,), (1353963741,), (1353963744,), (1353963787,), (1353963791,), (1353963935,), (1353963996,), (1353964000,), (1353964006,), (1353964009,), (1353964011,), (1353964014,), (1353964052,), (1353964056,), (1353964065,), (1353964068,), (1353964646,), (1353964713,), (1353965192,), (1353965372,), (1353965402,), (1353965576,), (1353965581,), (1353965584,), (1353965596,), (1353965615,), (1353965794,), (1353965801,), (1353965807,), (1353965813,), (1353965818,), (1353965853,), (1353965858,), (1353965864,), (1353965867,), (1353965924,), (1353965929,), (1353965931,), (1353965934,), (1353965938,), (1353965941,), (1353965977,), (1353965986,), (1353965993,), (1353965996,), (1353966030,), (1353966033,), (1353966036,), (1353966039,), (1353966044,), (1353966079,), (1353966084,), (1353966088,), (1353966093,), (1353966108,), (1353966111,), (1353966149,), (1353966161,), (1353966163,), (1353966168,), (1353966229,), (1353966209,), (1353966213,), (1353966217,), (1353966222,), (1353966226,), (1353966260,), (1353966264,), (1353966268,), (1353966273,), (1353966309,), (1353966312,), (1353966315,), (1353966319,), (1353966321,), (1353966325,), (1353966361,), (1353966365,), (1353966369,), (1353966372,), (1353966409,), (1353966414,), (1353966418,), (1353966436,), (1353966466,), (1353966495,), (1353966976,), (1353967031,), (1353967081,), (1353967142,), (1353967744,), (1353967820,), (1353967883,), (1353967910,), (1353967943,), (1353968384,), (1353968482,), (1353968580,), (1353968741,), (1353968966,), (1353969084,), (1353969171,), (1353969199,), (1353969226,), (1353969251,), (1353969465,), (1353969503,), (1353969541,), (1353969593,), (1353970078,), (1353970106,), (1353970132,), (1353970163,), (1353970476,), (1353970486,), (1353970491,), (1353970508,), (1353970514,), (1353970530,), (1353970624,), (1353970638,), (1353970643,), (1353970647,), (1353970651,), (1353970861,), (1353970896,), (1353970926,), (1353971019,), (1353971044,), (1353971070,), (1353971156,), (1353971169,), (1353971173,), (1353971177,), (1353971187,), (1353971214,), (1353971363,), (1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28042025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22461545]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] map_info['map_portfolio_photo'] : {22461545: [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196, 1353972153, 1353972150, 1353972148, 1353972144, 1353972141, 1353972134, 1353972092, 1353972087, 1353972079, 1353972076, 1353972034, 1353972032, 1353972028, 1353972024, 1353972021, 1353972016, 1353971985, 1353971983, 1353971981, 1353971979, 1353971976, 1353971898, 1353971896, 1353971893, 1353971890, 1353971881, 1353971824, 1353971821, 1353971819, 1353971816, 1353971808, 1353971802, 1353971733, 1353971731, 1353971728, 1353971727, 1353971720, 1353971688, 1353971682, 1353971671, 1353971664, 1353971656, 1353971617, 1353971600, 1353971570, 1353971540, 1353971508, 1353971357, 1353971349, 1353971344, 1353971340]} final : True mtd_id 4302 list_pids : [1353972433, 1353972429, 1353972420, 1353972416, 1353972413, 1353972397, 1353972351, 1353972348, 1353972344, 1353972313, 1353972196] Looping around the photos to save general results len do output : 1 /22461545Didn'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, '2765395') ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395') ('4302', None, None, None, None, None, None, None, '2765395') ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22461545', 'None', None, None, None, None, '2765395'), ('4302', '22461545', '1353972433', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972429', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972420', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972416', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972413', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972397', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972351', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972348', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972344', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972313', None, None, None, None, None, '2765395'), ('4302', '22461545', '1353972196', None, None, None, None, None, '2765395')] time used for this insertion : 0.016879796981811523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3694345951080322 time spend to save output : 0.017113924026489258 total time spend for step 5 : 0.3865485191345215 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 (2765395) 2.32user 2.34system 0:21.16elapsed 22%CPU (0avgtext+0avgdata 160756maxresident)k 2488inputs+20328outputs (31major+77568minor)pagefaults 0swaps