python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 3890150 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 (2751328) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751328) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326303 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751328'] with mtr_portfolio_ids : ['22326303'] and first list_photo_ids : [] new path : /proc/3890150/ Name: python3 Umask: 0002 State: R (running) Tgid: 3890150 Ngid: 0 Pid: 3890150 PPid: 3890149 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3890150 NSpid: 3890150 NSpgid: 3870132 NSsid: 3870132 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97680 kB VmRSS: 97680 kB RssAnon: 59776 kB RssFile: 37904 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 62 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3890150', 'Ngid': '0', 'Pid': '3890150', 'PPid': '3890149', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3890150', 'NSpid': '3890150', 'NSpgid': '3870132', 'NSsid': '3870132', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97680 kB', 'VmRSS': '97680 kB', 'RssAnon': '59776 kB', 'RssFile': '37904 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '62', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '3890150', '1106844', '0', '1106844', '865592', '97680', b'', 'marlene', '2751328') 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 (22326303) 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 (2751328 ) ) 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 (22326303) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352917773, 'portfolio_id': 22326303}, {'photo_id': 1352917740, 'portfolio_id': 22326303}, {'photo_id': 1352917699, 'portfolio_id': 22326303}, {'photo_id': 1352917651, 'portfolio_id': 22326303}, {'photo_id': 1352916860, 'portfolio_id': 22326303}, {'photo_id': 1352916859, 'portfolio_id': 22326303}, {'photo_id': 1352916856, 'portfolio_id': 22326303}, {'photo_id': 1352916853, 'portfolio_id': 22326303}, {'photo_id': 1352916847, 'portfolio_id': 22326303}, {'photo_id': 1352916842, 'portfolio_id': 22326303}, {'photo_id': 1352916800, 'portfolio_id': 22326303}, {'photo_id': 1352916799, 'portfolio_id': 22326303}, {'photo_id': 1352916798, 'portfolio_id': 22326303}, {'photo_id': 1352916796, 'portfolio_id': 22326303}, {'photo_id': 1352916753, 'portfolio_id': 22326303}, {'photo_id': 1352916751, 'portfolio_id': 22326303}, {'photo_id': 1352916749, 'portfolio_id': 22326303}, {'photo_id': 1352916747, 'portfolio_id': 22326303}, {'photo_id': 1352916703, 'portfolio_id': 22326303}, {'photo_id': 1352916700, 'portfolio_id': 22326303}, {'photo_id': 1352916697, 'portfolio_id': 22326303}, {'photo_id': 1352916696, 'portfolio_id': 22326303}, {'photo_id': 1352916695, 'portfolio_id': 22326303}, {'photo_id': 1352916694, 'portfolio_id': 22326303}, {'photo_id': 1352916660, 'portfolio_id': 22326303}, {'photo_id': 1352916658, 'portfolio_id': 22326303}, {'photo_id': 1352916656, 'portfolio_id': 22326303}, {'photo_id': 1352916649, 'portfolio_id': 22326303}, {'photo_id': 1352916615, 'portfolio_id': 22326303}, {'photo_id': 1352916614, 'portfolio_id': 22326303}, {'photo_id': 1352916613, 'portfolio_id': 22326303}, {'photo_id': 1352916612, 'portfolio_id': 22326303}, {'photo_id': 1352916610, 'portfolio_id': 22326303}, {'photo_id': 1352916579, 'portfolio_id': 22326303}, {'photo_id': 1352916576, 'portfolio_id': 22326303}, {'photo_id': 1352916574, 'portfolio_id': 22326303}, {'photo_id': 1352916572, 'portfolio_id': 22326303}, {'photo_id': 1352916570, 'portfolio_id': 22326303}, {'photo_id': 1352916537, 'portfolio_id': 22326303}, {'photo_id': 1352916535, 'portfolio_id': 22326303}, {'photo_id': 1352916532, 'portfolio_id': 22326303}, {'photo_id': 1352916487, 'portfolio_id': 22326303}, {'photo_id': 1352916484, 'portfolio_id': 22326303}, {'photo_id': 1352916481, 'portfolio_id': 22326303}, {'photo_id': 1352916478, 'portfolio_id': 22326303}, {'photo_id': 1352916475, 'portfolio_id': 22326303}, {'photo_id': 1352916472, 'portfolio_id': 22326303}, {'photo_id': 1352916446, 'portfolio_id': 22326303}, {'photo_id': 1352916442, 'portfolio_id': 22326303}, {'photo_id': 1352916440, 'portfolio_id': 22326303}, {'photo_id': 1352916438, 'portfolio_id': 22326303}, {'photo_id': 1352916436, 'portfolio_id': 22326303}, {'photo_id': 1352916434, 'portfolio_id': 22326303}, {'photo_id': 1352916400, 'portfolio_id': 22326303}, {'photo_id': 1352916396, 'portfolio_id': 22326303}, {'photo_id': 1352916393, 'portfolio_id': 22326303}, {'photo_id': 1352916390, 'portfolio_id': 22326303}, {'photo_id': 1352916367, 'portfolio_id': 22326303}, {'photo_id': 1352916363, 'portfolio_id': 22326303}, {'photo_id': 1352916359, 'portfolio_id': 22326303}, {'photo_id': 1352916357, 'portfolio_id': 22326303}, {'photo_id': 1352916355, 'portfolio_id': 22326303}, {'photo_id': 1352916352, 'portfolio_id': 22326303}, {'photo_id': 1352916305, 'portfolio_id': 22326303}, {'photo_id': 1352916303, 'portfolio_id': 22326303}, {'photo_id': 1352916298, 'portfolio_id': 22326303}] map_portfolio_id_photo_id: {22326303: [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796, 1352916753, 1352916751, 1352916749, 1352916747, 1352916703, 1352916700, 1352916697, 1352916696, 1352916695, 1352916694, 1352916660, 1352916658, 1352916656, 1352916649, 1352916615, 1352916614, 1352916613, 1352916612, 1352916610, 1352916579, 1352916576, 1352916574, 1352916572, 1352916570, 1352916537, 1352916535, 1352916532, 1352916487, 1352916484, 1352916481, 1352916478, 1352916475, 1352916472, 1352916446, 1352916442, 1352916440, 1352916438, 1352916436, 1352916434, 1352916400, 1352916396, 1352916393, 1352916390, 1352916367, 1352916363, 1352916359, 1352916357, 1352916355, 1352916352, 1352916305, 1352916303, 1352916298]} ##### 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.016879558563232422 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 23 06:00: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 (22326303) 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 : 22326303 get user id for portfolio 22326303 get sub ptf for main ptf 22326303, type 3726 and hashtags ['autre_refus', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'metal', 'Carton_brun', 'plastique', 'environnement', 'kraft', 'mal_croppe', 'cartonnette', 'papier'] 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`=22326303 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','Carton_gris','metal','Carton_brun','plastique','environnement','kraft','mal_croppe','cartonnette','papier')) 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`=22326303 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','Carton_gris','metal','Carton_brun','plastique','environnement','kraft','mal_croppe','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22326303, 'sub_port_id': 22326304, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784746, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'flou': {'main_port_id': 22326303, 'sub_port_id': 22326305, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784747, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'papier': {'main_port_id': 22326303, 'sub_port_id': 22326306, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784748, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'Carton_brun': {'main_port_id': 22326303, 'sub_port_id': 22326307, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784749, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'Carton_gris': {'main_port_id': 22326303, 'sub_port_id': 22326308, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784750, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'cartonnette': {'main_port_id': 22326303, 'sub_port_id': 22326309, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784751, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'mal_croppe': {'main_port_id': 22326303, 'sub_port_id': 22326310, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784752, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'kraft': {'main_port_id': 22326303, 'sub_port_id': 22326311, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784753, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'Teint_Dans_La_Masse': {'main_port_id': 22326303, 'sub_port_id': 22326312, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784754, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'metal': {'main_port_id': 22326303, 'sub_port_id': 22326313, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784755, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'plastique': {'main_port_id': 22326303, 'sub_port_id': 22326314, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784756, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}, 'environnement': {'main_port_id': 22326303, 'sub_port_id': 22326315, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784757, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 43)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22326304 , 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=22326303 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 (22326304) result : ((1352916648,), (1352916731,), (1352916782,), (1352916822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326305 , 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=22326303 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 (22326305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326306 , 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=22326303 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 (22326306) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326307 , 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=22326303 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 (22326307) result : ((1352916650,), (1352916651,), (1352916682,), (1352916740,), (1352916741,), (1352916742,), (1352916790,), (1352916791,), (1352916792,), (1352916824,), (1352916840,), (1352916848,), (1352916849,), (1352916851,), (1352917734,), (1352917736,), (1352918177,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326308 , 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=22326303 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 (22326308) result : ((1352916733,), (1352916734,), (1352916735,), (1352916783,), (1352916784,), (1352916785,), (1352916786,), (1352916837,), (1352916838,), (1352916846,), (1352917704,), (1352917707,), (1352918167,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326309 , 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=22326303 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 (22326309) result : ((1352916681,), (1352916736,), (1352916737,), (1352916738,), (1352916739,), (1352916787,), (1352916788,), (1352916823,), (1352917722,), (1352917724,), (1352918171,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326310 , 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=22326303 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 (22326310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326311 , 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=22326303 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 (22326311) result : ((1352916655,), (1352916744,), (1352916830,), (1352918185,), (1352918186,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326312 , 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=22326303 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 (22326312) result : ((1352916647,), (1352916726,), (1352916727,), (1352916728,), (1352916729,), (1352916730,), (1352916780,), (1352916781,), (1352916818,), (1352916819,), (1352916820,), (1352916821,), (1352916835,), (1352916836,), (1352916845,), (1352917692,), (1352917694,), (1352918159,), (1352918160,), (1352918161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326313 , 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=22326303 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 (22326313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326314 , 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=22326303 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 (22326314) result : ((1352916653,), (1352916654,), (1352916683,), (1352916743,), (1352916793,), (1352916794,), (1352916826,), (1352916852,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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 22326315 , 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=22326303 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 (22326315) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22326303) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) 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 (1352916400,1352916800,1352916700) 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`=22326303 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','Carton_gris','metal','Carton_brun','plastique','environnement','kraft','mal_croppe','cartonnette','papier')) 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`=22326303 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','Carton_gris','metal','Carton_brun','plastique','environnement','kraft','mal_croppe','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22326303, 'sub_port_id': 22326316, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784758, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'flou': {'main_port_id': 22326303, 'sub_port_id': 22326317, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784759, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'papier': {'main_port_id': 22326303, 'sub_port_id': 22326318, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784760, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'Carton_brun': {'main_port_id': 22326303, 'sub_port_id': 22326319, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784761, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'Carton_gris': {'main_port_id': 22326303, 'sub_port_id': 22326320, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784762, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'cartonnette': {'main_port_id': 22326303, 'sub_port_id': 22326321, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784763, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'mal_croppe': {'main_port_id': 22326303, 'sub_port_id': 22326322, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784764, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'kraft': {'main_port_id': 22326303, 'sub_port_id': 22326323, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784765, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'Teint_Dans_La_Masse': {'main_port_id': 22326303, 'sub_port_id': 22326324, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784766, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'metal': {'main_port_id': 22326303, 'sub_port_id': 22326325, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784767, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'plastique': {'main_port_id': 22326303, 'sub_port_id': 22326326, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784768, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 49, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}, 'environnement': {'main_port_id': 22326303, 'sub_port_id': 22326327, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14784769, 'last_updated_at': datetime.datetime(2025, 4, 23, 5, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 5, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 5, 49, 46)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22326327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22326315 lien utilise dans velours : https://www.fotonower.com/velours/22326316,22326317,22326318,22326319,22326320,22326321,22326322,22326323,22326324,22326325,22326326,22326327?tags=autre_refus,flou,papier,Carton_brun,Carton_gris,cartonnette,mal_croppe,kraft,Teint_Dans_La_Masse,metal,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22326303]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] map_info['map_portfolio_photo'] : {22326303: [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796, 1352916753, 1352916751, 1352916749, 1352916747, 1352916703, 1352916700, 1352916697, 1352916696, 1352916695, 1352916694, 1352916660, 1352916658, 1352916656, 1352916649, 1352916615, 1352916614, 1352916613, 1352916612, 1352916610, 1352916579, 1352916576, 1352916574, 1352916572, 1352916570, 1352916537, 1352916535, 1352916532, 1352916487, 1352916484, 1352916481, 1352916478, 1352916475, 1352916472, 1352916446, 1352916442, 1352916440, 1352916438, 1352916436, 1352916434, 1352916400, 1352916396, 1352916393, 1352916390, 1352916367, 1352916363, 1352916359, 1352916357, 1352916355, 1352916352, 1352916305, 1352916303, 1352916298]} final : False mtd_id 4302 list_pids : [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] Looping around the photos to save general results len do output : 1 /22326303. 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, '2751328') ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22326303', "{'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315}", None, None, None, None, '2751328'), ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328')] time used for this insertion : 0.014685392379760742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5044066905975342 time spend to save output : 0.014945030212402344 total time spend for step 1 : 0.5193517208099365 step2:final Wed Apr 23 06:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22326303) 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 22326303 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352916305,1352916303,1352916298,1352916367,1352916363,1352916359,1352916357,1352916355,1352916352,1352916400,1352916396,1352916393,1352916390,1352916446,1352916442,1352916440,1352916438,1352916436,1352916434,1352916487,1352916484,1352916481,1352916478,1352916475,1352916472,1352916537,1352916535,1352916532,1352916579,1352916576,1352916574,1352916572,1352916570,1352916615,1352916614,1352916613,1352916612,1352916610,1352916660,1352916658,1352916656,1352916649,1352916703,1352916700,1352916697,1352916696,1352916695,1352916694,1352916753,1352916751,1352916749,1352916747,1352916800,1352916799,1352916798,1352916796,1352916860,1352916859,1352916856,1352916853,1352916847,1352916842,1352917773,1352917740,1352917699,1352917651); 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([22326303]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} new output for save of step final : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] map_info['map_portfolio_photo'] : {22326303: [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796, 1352916753, 1352916751, 1352916749, 1352916747, 1352916703, 1352916700, 1352916697, 1352916696, 1352916695, 1352916694, 1352916660, 1352916658, 1352916656, 1352916649, 1352916615, 1352916614, 1352916613, 1352916612, 1352916610, 1352916579, 1352916576, 1352916574, 1352916572, 1352916570, 1352916537, 1352916535, 1352916532, 1352916487, 1352916484, 1352916481, 1352916478, 1352916475, 1352916472, 1352916446, 1352916442, 1352916440, 1352916438, 1352916436, 1352916434, 1352916400, 1352916396, 1352916393, 1352916390, 1352916367, 1352916363, 1352916359, 1352916357, 1352916355, 1352916352, 1352916305, 1352916303, 1352916298]} final : False mtd_id 4302 list_pids : [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] Looping around the photos to save general results len do output : 14 /1352917773.Didn't retrieve data . /1352917740.Didn't retrieve data . /1352917699.Didn't retrieve data . /1352917651.Didn't retrieve data . /1352916860.Didn't retrieve data . /1352916859.Didn't retrieve data . /1352916856.Didn't retrieve data . /1352916853.Didn't retrieve data . /1352916847.Didn't retrieve data . /1352916842.Didn't retrieve data . /1352916800.Didn't retrieve data . /1352916799.Didn't retrieve data . /1352916798.Didn't retrieve data . /1352916796.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, '2751328') ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22326303', '1352917773', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352917740', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352917699', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352917651', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916860', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916859', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916856', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916853', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916847', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916842', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916800', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916799', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916798', '0.0725139099161887', None, None, None, None, '2751328'), ('4302', '22326303', '1352916796', '0.0725139099161887', None, None, None, None, '2751328')] time used for this insertion : 0.01353597640991211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07094168663024902 time spend to save output : 0.0141143798828125 total time spend for step 2 : 0.08505606651306152 step3:velours_tree Wed Apr 23 06:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22326303: [{'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315}]} input_args_next_step : {22326303: ()} output_args : {22326303: [{'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315}]} args : 22326303 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 : ({'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22326303) 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([22326303]) 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.620276689529419 time spend to save output : 8.440017700195312e-05 total time spend for step 3 : 0.6203610897064209 step4:send_mail_cod Wed Apr 23 06:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} input_args_next_step : {1352917773: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352917773 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352917740 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352917699 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352917651 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916860 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916859 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916856 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916853 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916847 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916842 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916800 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916799 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916798 depend.output_id : 0 input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ()} output_args : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',)} args : 1352916796 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 : {22326303: [{'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315}]} input_args_next_step : {1352917773: ('0.0725139099161887',), 1352917740: ('0.0725139099161887',), 1352917699: ('0.0725139099161887',), 1352917651: ('0.0725139099161887',), 1352916860: ('0.0725139099161887',), 1352916859: ('0.0725139099161887',), 1352916856: ('0.0725139099161887',), 1352916853: ('0.0725139099161887',), 1352916847: ('0.0725139099161887',), 1352916842: ('0.0725139099161887',), 1352916800: ('0.0725139099161887',), 1352916799: ('0.0725139099161887',), 1352916798: ('0.0725139099161887',), 1352916796: ('0.0725139099161887',), 22326303: ()} output_args : {22326303: [{'autre_refus': 22326304, 'flou': 22326305, 'papier': 22326306, 'Carton_brun': 22326307, 'Carton_gris': 22326308, 'cartonnette': 22326309, 'mal_croppe': 22326310, 'kraft': 22326311, 'Teint_Dans_La_Masse': 22326312, 'metal': 22326313, 'plastique': 22326314, 'environnement': 22326315}]} args : 22326303 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 :15, first value : ('0.0725139099161887',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22326303) 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 (1352917773,1352917740,1352917699,1352917651,1352916860,1352916859,1352916856,1352916853,1352916847,1352916842,1352916800,1352916799,1352916798,1352916796) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352916796 begin to download photo : 1352916800 begin to download photo : 1352916853 begin to download photo : 1352916860 begin to download photo : 1352917740 download finish for photo 1352917740 begin to download photo : 1352917773 download finish for photo 1352916800 begin to download photo : 1352916842 download finish for photo 1352916853 begin to download photo : 1352916856 download finish for photo 1352916796 begin to download photo : 1352916798 download finish for photo 1352916860 begin to download photo : 1352917651 download finish for photo 1352917773 download finish for photo 1352916856 begin to download photo : 1352916859 download finish for photo 1352916842 begin to download photo : 1352916847 download finish for photo 1352916798 begin to download photo : 1352916799 download finish for photo 1352916799 download finish for photo 1352916847 download finish for photo 1352916859 download finish for photo 1352917651 begin to download photo : 1352917699 download finish for photo 1352917699 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22326303_23-04-2025_06_00_59.pdf 22326304 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=22326304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916648: '1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808807_0.png', 1352916731: '1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811957_0.png', 1352916782: '1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821408_0.png', 1352916822: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821682_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8d56e09752d38718ced6906d2af66019_98216825.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0f888714736b504d487ab39889292e5d_90843932.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/67cced9f005496fc128c0633b06c6101_46047836.png change filename to text .imagette223263041745380859/ imagette223263041745380859/1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821408_0.png.png imagette223263041745380859/1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811957_0.png.png imagette223263041745380859/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821682_0.png.png imagette223263041745380859/1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808807_0.png.png imagette223263051745380859/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/926f747f22a0d3f6a0cd7c52bea41ab2_70912876.png imagette223263041745380859 22326305 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=22326305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223263051745380859 22326309 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=22326309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916681: '1745380451_3807844_1352916574_e15ad52b9d14e8af894a093030394833_rle_crop_3764808975_0.png', 1352916736: '1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811958_0.png', 1352916737: '1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811970_0.png', 1352916738: '1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812007_0.png', 1352916739: '1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812012_0.png', 1352916787: '1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821414_0.png', 1352916788: '1745380573_3808925_1352916434_0a438f520ba295edef035ad318db69e1_rle_crop_3764821421_0.png', 1352916823: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821683_0.png', 1352917722: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822452_0.png', 1352917724: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822445_0.png', 1352918171: '1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822568_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b9b3373884bd4d26e57887e6bcc40dfb_58213086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/beba00384fd601c2f958e162f7fa951b_45720545.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/42e2280178e3860166d8f1ae3b082fb9_31463252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f6a37f753026ecf300279b48f9800975_70863129.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/864cc33e77f8600a98085aab8d183c1e_22658541.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9e88967eed73a135547cf110e3e93fa5_67457314.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d21204c4380f75bfc2a8fc16e99bba10_6046161.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/67203e775d2dd8b61f9aad4095c8cdcf_36230618.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/554afc62bf63761106e108201b7f2b06_75563815.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/32c4c828c77913d5c79a8aa85f4e55f0_44324224.png change filename to text .imagette223263091745380859/ imagette223263091745380859/1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812012_0.png.png imagette223263091745380859/1745380573_3808925_1352916434_0a438f520ba295edef035ad318db69e1_rle_crop_3764821421_0.png.png imagette223263091745380859/1745380451_3807844_1352916574_e15ad52b9d14e8af894a093030394833_rle_crop_3764808975_0.png.png imagette223263091745380859/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821683_0.png.png imagette223263091745380859/1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821414_0.png.png imagette223263091745380859/1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812007_0.png.png imagette223263091745380859/1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811970_0.png.png imagette223263091745380859/1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822568_0.png.png imagette223263091745380859/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822445_0.png.png imagette223263091745380859/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822452_0.png.png imagette223263091745380859/1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811958_0.png.png imagette223263101745380860/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/862449e0672cdd4240852c98e8e7d948_4895442.png imagette223263091745380859 22326310 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=22326310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223263101745380860 22326311 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=22326311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916655: '1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808813_0.png', 1352916744: '1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811976_0.png', 1352916830: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821690_0.png', 1352918185: '1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822562_0.png', 1352918186: '1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/85ed1eed65faa88f362075640020e2fa_97015796.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/53a47387ed5e076c735ea4ac975683d1_89525584.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/020cf1134bcfa8b238428156f3e2cfa3_24306923.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/02f26d6ea736b147183efde2dba448ec_9650149.png change filename to text .imagette223263111745380860/ imagette223263111745380860/1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822570_0.png.png imagette223263111745380860/1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808813_0.png.png imagette223263111745380860/1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811976_0.png.png imagette223263111745380860/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821690_0.png.png imagette223263111745380860/1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822562_0.png.png imagette223263131745380861/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7da360b021fdfd36cccb999f8c1cc7c1_48188301.png imagette223263111745380860 22326313 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=22326313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223263131745380861 22326314 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=22326314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916653: '1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808847_0.png', 1352916654: '1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808835_0.png', 1352916683: '1745380451_3807844_1352916570_4bb4c7a2fdd72033302676cfe0bc5737_rle_crop_3764809000_0.png', 1352916743: '1745380512_3808453_1352916484_01bd48fa95f4c67670590c64e85aa741_rle_crop_3764811942_0.png', 1352916793: '1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821389_0.png', 1352916794: '1745380573_3808925_1352916434_0a438f520ba295edef035ad318db69e1_rle_crop_3764821427_0.png', 1352916826: '1745380621_3809454_1352916305_5781a799875acb5061b26ec524040286_rle_crop_3764821705_0.png', 1352916852: '1745380660_2079210_1352916390_c8627ee5981f56512484d52bc1959bad_rle_crop_3764821910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a8a8545b70e275f38b771f8b6c8a1dd9_35082868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6dc3e3e8c975be17d5301bbcf510aee0_4071267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/11c1b32b4988a256c3b66180ffc97268_66593238.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c2bf0b9eea95d2befed4553af7189cdc_99443150.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6279fd2863bbd48f57cc3e98583779fa_56182714.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cdfcc8f8fc2b545a3256fa50056b2ea9_38027204.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/05309f4d3bdf856f500ae90489d53b9c_65820519.png change filename to text .imagette223263141745380861/ imagette223263141745380861/1745380621_3809454_1352916305_5781a799875acb5061b26ec524040286_rle_crop_3764821705_0.png.png imagette223263141745380861/1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821389_0.png.png imagette223263141745380861/1745380660_2079210_1352916390_c8627ee5981f56512484d52bc1959bad_rle_crop_3764821910_0.png.png imagette223263141745380861/1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808847_0.png.png imagette223263141745380861/1745380573_3808925_1352916434_0a438f520ba295edef035ad318db69e1_rle_crop_3764821427_0.png.png imagette223263141745380861/1745380451_3807844_1352916570_4bb4c7a2fdd72033302676cfe0bc5737_rle_crop_3764809000_0.png.png imagette223263141745380861/1745380512_3808453_1352916484_01bd48fa95f4c67670590c64e85aa741_rle_crop_3764811942_0.png.png imagette223263141745380861/1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808835_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/41326baa819e58aa07922425e6c2aaec_36262398.png imagette223263141745380861 22326307 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=22326307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916792: '1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821396_0.png', 1352918177: '1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822577_0.png', 1352917736: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822451_0.png', 1352917734: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822446_0.png', 1352916851: '1745380660_2079210_1352916390_c8627ee5981f56512484d52bc1959bad_rle_crop_3764821911_0.png', 1352916849: '1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821893_0.png', 1352916848: '1745380660_2079210_1352916396_22797be9686674c065747673f4be5b5c_rle_crop_3764821887_0.png', 1352916840: '1745380633_3809622_1352916357_edf36562655623bdf85d0e7785b24741_rle_crop_3764821783_0.png', 1352916824: '1745380621_3809454_1352916303_121b54da0d539119564a37474daf4987_rle_crop_3764821712_0.png', 1352916650: '1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808840_0.png', 1352916791: '1745380573_3808925_1352916440_d945ee28dfde629839987f48168e9de4_rle_crop_3764821380_0.png', 1352916790: '1745380573_3808925_1352916487_70ae0f7dae9f796e081a03b341d3e357_rle_crop_3764821361_0.png', 1352916742: '1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812016_0.png', 1352916741: '1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811992_0.png', 1352916740: '1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811997_0.png', 1352916682: '1745380451_3807844_1352916570_4bb4c7a2fdd72033302676cfe0bc5737_rle_crop_3764809003_0.png', 1352916651: '1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5a0132a66b24add584b2917d0245300c_63687823.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bfc9789d617bf1de38cd1f3154ed5ab2_51260153.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0c570b012160be08b19efdfc0176b354_67494076.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8aa8b0cb7d08be6d8de2298f0378e346_24442201.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5330a8ebad9b3de46881d4fa8bb7c798_88225172.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5c51e4d004f1520a8a7ec2c053575411_25686606.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/750f83e44b7bf6626c513861188af620_18789319.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3bf16a56f2b38137f3bfc959ab41d4f2_10298345.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d4576907f88d2279710c0ded819d0b87_22825632.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/97b0312260d28f52ba5603fde18baf24_68351349.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5ad601748c1aeaa06f451ad188614b2f_71589405.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e0b1482fe888cbd9fc6c7ca35572b385_23215172.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dbf8f06cf73457cd18fe3450118249c0_38552302.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d7eae997cf62c96ccd8acd8a9e114052_88275539.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/653b52e38fab9d15d59fbcda04fc5f00_52616354.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5176e537fcbdc004e2d2c0fa30e0c735_85955209.png change filename to text .imagette223263071745380861/ imagette223263071745380861/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822446_0.png.png imagette223263071745380861/1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822577_0.png.png imagette223263071745380861/1745380451_3807844_1352916570_4bb4c7a2fdd72033302676cfe0bc5737_rle_crop_3764809003_0.png.png imagette223263071745380861/1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821396_0.png.png imagette223263071745380861/1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808840_0.png.png imagette223263071745380861/1745380660_2079210_1352916390_c8627ee5981f56512484d52bc1959bad_rle_crop_3764821911_0.png.png imagette223263071745380861/1745380633_3809622_1352916357_edf36562655623bdf85d0e7785b24741_rle_crop_3764821783_0.png.png imagette223263071745380861/1745380421_2075141_1352916532_2f42dadd31a3c10499c3190d76aad41a_rle_crop_3764808842_0.png.png imagette223263071745380861/1745380573_3808925_1352916487_70ae0f7dae9f796e081a03b341d3e357_rle_crop_3764821361_0.png.png imagette223263071745380861/1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811997_0.png.png imagette223263071745380861/1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811992_0.png.png imagette223263071745380861/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822451_0.png.png imagette223263071745380861/1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821893_0.png.png imagette223263071745380861/1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812016_0.png.png imagette223263071745380861/1745380660_2079210_1352916396_22797be9686674c065747673f4be5b5c_rle_crop_3764821887_0.png.png imagette223263071745380861/1745380621_3809454_1352916303_121b54da0d539119564a37474daf4987_rle_crop_3764821712_0.png.png imagette223263071745380861/1745380573_3808925_1352916440_d945ee28dfde629839987f48168e9de4_rle_crop_3764821380_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fff5056a959ac005fac0950b6dffcfb7_89443847.png imagette223263071745380861 22326308 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=22326308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916733: '1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811961_0.png', 1352916734: '1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811984_0.png', 1352916735: '1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812009_0.png', 1352916783: '1745380573_3808925_1352916440_d945ee28dfde629839987f48168e9de4_rle_crop_3764821379_0.png', 1352916784: '1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821393_0.png', 1352916785: '1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821411_0.png', 1352916786: '1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821409_0.png', 1352916837: '1745380633_3809622_1352916400_b202f1ba39d4a05b8355b642fe45aa72_rle_crop_3764821737_0.png', 1352916838: '1745380633_3809622_1352916357_edf36562655623bdf85d0e7785b24741_rle_crop_3764821780_0.png', 1352916846: '1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821895_0.png', 1352917704: '1745380783_2081892_1352916799_422b498081f3b5922bc9fc9ff9f69a73_rle_crop_3764822423_0.png', 1352917707: '1745380783_2081892_1352916798_da1cabae6b510d3e6339fd851bb1a3b4_rle_crop_3764822430_0.png', 1352918167: '1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822561_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3060c39bdb6cab9dcf0b8a120b87a6a0_85822119.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/525b7e46f4d7c4fe3bb9e6ef4636cdec_33795886.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/85ed0d026a7287a8e47921257189cf44_26130526.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/985915100d8f1884a7ee233745a87f91_55821639.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f6e425dd7961978db3258f0fc9f6659_98142228.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/705146b9eaaf02d5d9144ed4217a6a11_54239148.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9a0fd0b70a54129d5c3218d29caf83f9_2684966.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c6609bbe02d518b7ce83d3366c79df5b_30689269.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3c5428ee1054101f481175c1478bed8a_50026941.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d40ad40310a84fa0617e884934d71a97_5420804.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4345de743d71cf0968c0753a41de97df_2648744.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4b6a1cce8effedc332e5ad615346bec6_34680489.png change filename to text .imagette223263081745380862/ imagette223263081745380862/1745380783_2081892_1352916798_da1cabae6b510d3e6339fd851bb1a3b4_rle_crop_3764822430_0.png.png imagette223263081745380862/1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821411_0.png.png imagette223263081745380862/1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811984_0.png.png imagette223263081745380862/1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822561_0.png.png imagette223263081745380862/1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821895_0.png.png imagette223263081745380862/1745380633_3809622_1352916357_edf36562655623bdf85d0e7785b24741_rle_crop_3764821780_0.png.png imagette223263081745380862/1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812009_0.png.png imagette223263081745380862/1745380573_3808925_1352916440_d945ee28dfde629839987f48168e9de4_rle_crop_3764821379_0.png.png imagette223263081745380862/1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811961_0.png.png imagette223263081745380862/1745380633_3809622_1352916400_b202f1ba39d4a05b8355b642fe45aa72_rle_crop_3764821737_0.png.png imagette223263081745380862/1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821393_0.png.png imagette223263081745380862/1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821409_0.png.png imagette223263081745380862/1745380783_2081892_1352916799_422b498081f3b5922bc9fc9ff9f69a73_rle_crop_3764822423_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/967cd21cdeb0b9eb685f9a2e12332f2d_83767247.png imagette223263081745380862 22326312 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=22326312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352916820: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821688_0.png', 1352918161: '1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822580_0.png', 1352918160: '1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822563_0.png', 1352918159: '1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822566_0.png', 1352917694: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822449_0.png', 1352917692: '1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822448_0.png', 1352916845: '1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821894_0.png', 1352916836: '1745380633_3809622_1352916359_8add4e87e318ef5bc452a0a95bcf8720_rle_crop_3764821772_0.png', 1352916835: '1745380633_3809622_1352916363_e56335e187f47f16eebff0ffe850fd7e_rle_crop_3764821754_0.png', 1352916821: '1745380621_3809454_1352916305_5781a799875acb5061b26ec524040286_rle_crop_3764821704_0.png', 1352916647: '1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808809_0.png', 1352916819: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821692_0.png', 1352916818: '1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821686_0.png', 1352916781: '1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821412_0.png', 1352916780: '1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821392_0.png', 1352916730: '1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812013_0.png', 1352916729: '1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811994_0.png', 1352916728: '1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764812000_0.png', 1352916727: '1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811975_0.png', 1352916726: '1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811956_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5774ba753421abc3c50a34897b6df702_25225370.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/131bdc04de547080e9bbda596af511e5_72932607.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c71213c056e0fdafeb805ff3cf7375ff_12193022.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8c772ac16194afffa908be8e82c3a7af_80131115.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9f625015a1fe575df385c0effb8c479e_63385051.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2062f805ab435942525c84c71fd57897_35483163.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8e77820af046d71d522e7603993ddc50_57927418.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9a3196511556b570b5c5ae6433f635c2_95068522.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fda8e3511fea4f1b9aadda92ace6ec96_6702705.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f286ecd1f8d125f01b64971129632eb1_12770489.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/678fa33545e73fb6b872c7591ed267cd_77412291.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cb0b917055db2921b11fed320736e6cc_97667457.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fbb7ecc8c1ccc8d6234c370a51ae4367_24725454.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4918610eec3c769f92e6de5153545f35_76444724.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bf10ca4a0344456dff6294e31f6a87be_77271166.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8d6b8c0f814f2b9351bc28156247e3b3_24544059.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3de383e20dd7bdb6610cec31f5915b8f_58039425.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/475a669ee6c55568ffa68d71e0201fd0_29077791.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/79d9b8c9fcc2fa3712f9ec5f60581da3_19376525.png change filename to text .imagette223263121745380863/ imagette223263121745380863/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821686_0.png.png imagette223263121745380863/1745380633_3809622_1352916363_e56335e187f47f16eebff0ffe850fd7e_rle_crop_3764821754_0.png.png imagette223263121745380863/1745380660_2079210_1352916393_3035c744343e6bdf59aa8983221808b5_rle_crop_3764821894_0.png.png imagette223263121745380863/1745380815_3816165_1352916749_ee1b0ea16935e620e8a28179d1bc77fb_rle_crop_3764822580_0.png.png imagette223263121745380863/1745380512_3808453_1352916478_6f901ba76c1a8e3e17b3356812a0d21e_rle_crop_3764811975_0.png.png imagette223263121745380863/1745380512_3808453_1352916472_9b32d8800dd1c3afbf4f86523cfc5898_rle_crop_3764812013_0.png.png imagette223263121745380863/1745380573_3808925_1352916436_955b53ec3ec290f42253c2ed63b0cb1a_rle_crop_3764821412_0.png.png imagette223263121745380863/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822449_0.png.png imagette223263121745380863/1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822563_0.png.png imagette223263121745380863/1745380815_3816165_1352916751_3ecc8e7f1167d95026237003aff6ce79_rle_crop_3764822566_0.png.png imagette223263121745380863/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821692_0.png.png imagette223263121745380863/1745380633_3809622_1352916359_8add4e87e318ef5bc452a0a95bcf8720_rle_crop_3764821772_0.png.png imagette223263121745380863/1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764812000_0.png.png imagette223263121745380863/1745380512_3808453_1352916481_d6a92abd5d1032eb42776a7959fe3aa5_rle_crop_3764811956_0.png.png imagette223263121745380863/1745380783_2081892_1352916796_3c2383ac60c0f5fc21eb2741b8a447da_rle_crop_3764822448_0.png.png imagette223263121745380863/1745380573_3808925_1352916438_746788f4455ea14e3d3840ab0950108e_rle_crop_3764821392_0.png.png imagette223263121745380863/1745380621_3809454_1352916367_a72a850a3f6103768547244d7b5336ca_rle_crop_3764821688_0.png.png imagette223263121745380863/1745380512_3808453_1352916475_b505aea70284ddc0787e72c8a3270626_rle_crop_3764811994_0.png.png imagette223263121745380863/1745380621_3809454_1352916305_5781a799875acb5061b26ec524040286_rle_crop_3764821704_0.png.png imagette223263121745380863/1745380421_2075141_1352916579_345ebb5c307da0ddface2ef7076c2c5a_rle_crop_3764808809_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ed1669c182f31a1edbdf36aab1416bef_85563213.png imagette223263121745380863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22326303 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22326316,22326317,22326318,22326319,22326320,22326321,22326322,22326323,22326324,22326325,22326326,22326327?tags=autre_refus,flou,papier,Carton_brun,Carton_gris,cartonnette,mal_croppe,kraft,Teint_Dans_La_Masse,metal,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1352917773] : ('0.0725139099161887',) no score found for photo 1352917773 We are sending mail with results at report@fotonower.com args[1352917740] : ('0.0725139099161887',) no score found for photo 1352917740 We are sending mail with results at report@fotonower.com args[1352917699] : ('0.0725139099161887',) no score found for photo 1352917699 We are sending mail with results at report@fotonower.com args[1352917651] : ('0.0725139099161887',) no score found for photo 1352917651 We are sending mail with results at report@fotonower.com args[1352916860] : ('0.0725139099161887',) no score found for photo 1352916860 We are sending mail with results at report@fotonower.com args[1352916859] : ('0.0725139099161887',) no score found for photo 1352916859 We are sending mail with results at report@fotonower.com args[1352916856] : ('0.0725139099161887',) no score found for photo 1352916856 We are sending mail with results at report@fotonower.com args[1352916853] : ('0.0725139099161887',) no score found for photo 1352916853 We are sending mail with results at report@fotonower.com args[1352916847] : ('0.0725139099161887',) no score found for photo 1352916847 We are sending mail with results at report@fotonower.com args[1352916842] : ('0.0725139099161887',) no score found for photo 1352916842 We are sending mail with results at report@fotonower.com args[1352916800] : ('0.0725139099161887',) no score found for photo 1352916800 We are sending mail with results at report@fotonower.com args[1352916799] : ('0.0725139099161887',) no score found for photo 1352916799 We are sending mail with results at report@fotonower.com args[1352916798] : ('0.0725139099161887',) no score found for photo 1352916798 We are sending mail with results at report@fotonower.com args[1352916796] : ('0.0725139099161887',) no score found for photo 1352916796 We are sending mail with results at report@fotonower.com refus_total : 0.0725139099161887 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=22326303 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_P22326303_23-04-2025_06_00_59.pdf results_Auto_P22326303_23-04-2025_06_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_00_59.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','22326303','results_Auto_P22326303_23-04-2025_06_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_00_59.pdf','pdf','','0.38','0.0725139099161887') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22326303]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] map_info['map_portfolio_photo'] : {22326303: [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796, 1352916753, 1352916751, 1352916749, 1352916747, 1352916703, 1352916700, 1352916697, 1352916696, 1352916695, 1352916694, 1352916660, 1352916658, 1352916656, 1352916649, 1352916615, 1352916614, 1352916613, 1352916612, 1352916610, 1352916579, 1352916576, 1352916574, 1352916572, 1352916570, 1352916537, 1352916535, 1352916532, 1352916487, 1352916484, 1352916481, 1352916478, 1352916475, 1352916472, 1352916446, 1352916442, 1352916440, 1352916438, 1352916436, 1352916434, 1352916400, 1352916396, 1352916393, 1352916390, 1352916367, 1352916363, 1352916359, 1352916357, 1352916355, 1352916352, 1352916305, 1352916303, 1352916298]} final : False mtd_id 4302 list_pids : [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] 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, '2751328') ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22326303', '1352917773', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328')] time used for this insertion : 0.014747142791748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.901999473571777 time spend to save output : 0.015094280242919922 total time spend for step 4 : 7.917093753814697 step5:split_time_score Wed Apr 23 06:01:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22326303'] 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 : [('22326303',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22326303) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352917740: {'path': 'temp/1745380858_3890150_1352917740_2c38da2d73894990fb8dba69ffdb2276.jpg', 'extension': 'jpg'}, 1352917773: {'path': 'temp/1745380858_3890150_1352917773_206779f926f9e4e1339cd28a1843c50e.jpg', 'extension': 'jpg'}, 1352916796: {'path': 'temp/1745380858_3890150_1352916796_3c2383ac60c0f5fc21eb2741b8a447da.jpg', 'extension': 'jpg'}, 1352916798: {'path': 'temp/1745380858_3890150_1352916798_da1cabae6b510d3e6339fd851bb1a3b4.jpg', 'extension': 'jpg'}, 1352916799: {'path': 'temp/1745380858_3890150_1352916799_422b498081f3b5922bc9fc9ff9f69a73.jpg', 'extension': 'jpg'}, 1352916800: {'path': 'temp/1745380858_3890150_1352916800_86fbeff791b806a6cdff6948b9f757ae.jpg', 'extension': 'jpg'}, 1352916842: {'path': 'temp/1745380858_3890150_1352916842_3348830c128b2d1a07c80937fce0c0ea.jpg', 'extension': 'jpg'}, 1352916847: {'path': 'temp/1745380858_3890150_1352916847_e2ded256b8472817651b09f9ae38cb06.jpg', 'extension': 'jpg'}, 1352916853: {'path': 'temp/1745380858_3890150_1352916853_44d82f569bb5e2313cb372d4261be868.jpg', 'extension': 'jpg'}, 1352916856: {'path': 'temp/1745380858_3890150_1352916856_9a609a7e2f85f9fdb3aa4d8a63d84a19.jpg', 'extension': 'jpg'}, 1352916859: {'path': 'temp/1745380858_3890150_1352916859_c9de8e69043a966ce0462d187c6ae4d1.jpg', 'extension': 'jpg'}, 1352916860: {'path': 'temp/1745380858_3890150_1352916860_40e7f7d657d8d2eefe9b68329e4efc13.jpg', 'extension': 'jpg'}, 1352917651: {'path': 'temp/1745380858_3890150_1352917651_de3288eb0fe0d374f01eb416ca0320ac.jpg', 'extension': 'jpg'}, 1352917699: {'path': 'temp/1745380858_3890150_1352917699_280a2d9537e9a3792a29c5c57d032548.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 = 22326303; (('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 = 22326303 group by h (('05', 66),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22326303 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 (22326303) 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 (22326303) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22326303 Nombre de photos uploadées : 66 / 23040 (0%) 23042025 22326303 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 23042025 22326303 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1352916305, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5781a799875acb5061b26ec524040286.jpg', 'username': None, 'uploaded_at': 1745379967, 'text': 'image_23042025_05_45_14_10135.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352916303, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/121b54da0d539119564a37474daf4987.jpg', 'username': None, 'uploaded_at': 1745379967, 'text': 'image_23042025_05_45_23_9125.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352916298, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0eed5b9b93a3200c1667017e949c8bae.jpg', 'username': None, 'uploaded_at': 1745379967, 'text': 'image_23042025_05_45_33_10145.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352916367, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a72a850a3f6103768547244d7b5336ca.jpg', 'username': None, 'uploaded_at': 1745380027, 'text': 'image_23042025_05_45_44_10146.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002978801727294922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22326303, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02306342124938965 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747821, 'mtr_portfolio_id': 22325236, 'dashboard_result_id': 10036959, '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_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747821, 'mtr_portfolio_id': 22325613, 'dashboard_result_id': 10036960, '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_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747821, 'mtr_portfolio_id': 22325942, 'dashboard_result_id': 10036961, '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_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747821, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10036962, '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_P22326303_23-04-2025_05_56_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 = 22325236 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': 2751266, 'mtr_portfolio_id': 22325236, 'created_at': datetime.datetime(2025, 4, 23, 5, 56), 'result': '0.0709678645705838', 'result_long': None, 'result_double': None}] Qualite : 0.0709678645705838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325236 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_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}" where mtr_portfolio_id = 22325236 and dashboard_run_id = 1747821 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`=22325236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036959, 0.0709678645705838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, '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 = 22325613 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': 2751267, 'mtr_portfolio_id': 22325613, 'created_at': datetime.datetime(2025, 4, 23, 5, 56, 58), 'result': '0.06878107966408131', 'result_long': None, 'result_double': None}] Qualite : 0.06878107966408131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325613 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_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}" where mtr_portfolio_id = 22325613 and dashboard_run_id = 1747821 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`=22325613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036960, 0.06878107966408131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, '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 = 22325942 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': 2751294, 'mtr_portfolio_id': 22325942, 'created_at': datetime.datetime(2025, 4, 23, 5, 47, 46), 'result': '0.0684979031853887', 'result_long': None, 'result_double': None}] Qualite : 0.0684979031853887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325942 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_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}" where mtr_portfolio_id = 22325942 and dashboard_run_id = 1747821 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`=22325942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036961, 0.0684979031853887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, '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 = 22326303 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': 2751328, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 23, 6, 0, 58), 'result': '0.0725139099161887', 'result_long': None, 'result_double': None}] Qualite : 0.0725139099161887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 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_P22326303_23-04-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1747821 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`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036962, 0.0725139099161887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 (22325236,22325613,22325942,22326303) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,), (1352915045,), (1352915052,), (1352915057,), (1352915062,), (1352915099,), (1352915100,), (1352915101,), (1352915102,), (1352915103,), (1352915136,), (1352915139,), (1352915141,), (1352915143,), (1352915144,), (1352915175,), (1352915176,), (1352915177,), (1352915219,), (1352915221,), (1352915226,), (1352915231,), (1352915232,), (1352915233,), (1352915279,), (1352915280,), (1352915281,), (1352915282,), (1352915307,), (1352915308,), (1352915309,), (1352915334,), (1352915336,), (1352915337,), (1352915338,), (1352915361,), (1352915362,), (1352915402,), (1352915404,), (1352915443,), (1352915444,), (1352915446,), (1352915447,), (1352915448,), (1352915450,), (1352915463,), (1352915464,), (1352915466,), (1352915493,), (1352915496,), (1352915497,), (1352915498,), (1352915500,), (1352915526,), (1352915527,), (1352915528,), (1352915529,), (1352915559,), (1352915561,), (1352915563,), (1352915564,), (1352915565,), (1352915568,), (1352915628,), (1352915622,), (1352915623,), (1352915624,), (1352915627,), (1352915646,), (1352915647,), (1352915648,), (1352915690,), (1352915691,), (1352915692,), (1352915693,), (1352915737,), (1352915740,), (1352915742,), (1352915750,), (1352915752,), (1352915753,), (1352915775,), (1352915776,), (1352915777,), (1352915778,), (1352915806,), (1352915808,), (1352915809,), (1352915810,), (1352915812,), (1352915816,), (1352915842,), (1352915845,), (1352915846,), (1352915847,), (1352915896,), (1352915898,), (1352915902,), (1352915906,), (1352915907,), (1352915909,), (1352915936,), (1352915937,), (1352915938,), (1352915939,), (1352915942,), (1352915972,), (1352915975,), (1352915977,), (1352916018,), (1352916030,), (1352916031,), (1352916032,), (1352916034,), (1352916037,), (1352916094,), (1352916099,), (1352916101,), (1352916103,), (1352916137,), (1352916138,), (1352916139,), (1352916140,), (1352916142,), (1352916194,), (1352916204,), (1352916207,), (1352916209,), (1352916212,), (1352916214,), (1352916243,), (1352916245,), (1352916247,), (1352916248,), (1352916310,), (1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22326303]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] map_info['map_portfolio_photo'] : {22326303: [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796, 1352916753, 1352916751, 1352916749, 1352916747, 1352916703, 1352916700, 1352916697, 1352916696, 1352916695, 1352916694, 1352916660, 1352916658, 1352916656, 1352916649, 1352916615, 1352916614, 1352916613, 1352916612, 1352916610, 1352916579, 1352916576, 1352916574, 1352916572, 1352916570, 1352916537, 1352916535, 1352916532, 1352916487, 1352916484, 1352916481, 1352916478, 1352916475, 1352916472, 1352916446, 1352916442, 1352916440, 1352916438, 1352916436, 1352916434, 1352916400, 1352916396, 1352916393, 1352916390, 1352916367, 1352916363, 1352916359, 1352916357, 1352916355, 1352916352, 1352916305, 1352916303, 1352916298]} final : True mtd_id 4302 list_pids : [1352917773, 1352917740, 1352917699, 1352917651, 1352916860, 1352916859, 1352916856, 1352916853, 1352916847, 1352916842, 1352916800, 1352916799, 1352916798, 1352916796] Looping around the photos to save general results len do output : 1 /22326303Didn'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, '2751328') ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328') ('4302', None, None, None, None, None, None, None, '2751328') ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22326303', 'None', None, None, None, None, '2751328'), ('4302', '22326303', '1352917773', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917740', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917699', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352917651', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916860', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916859', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916856', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916853', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916847', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916842', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916800', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916799', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916798', None, None, None, None, None, '2751328'), ('4302', '22326303', '1352916796', None, None, None, None, None, '2751328')] time used for this insertion : 0.01575016975402832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.37921833992004395 time spend to save output : 0.016049623489379883 total time spend for step 5 : 0.39526796340942383 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 (2751328) 2.59user 2.33system 0:11.23elapsed 43%CPU (0avgtext+0avgdata 160008maxresident)k 73832inputs+21752outputs (305major+78367minor)pagefaults 0swaps