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 : 3556717 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 (2573321) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2573321) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414667 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2573321'] with mtr_portfolio_ids : ['20414667'] and first list_photo_ids : [] new path : /proc/3556717/ Name: python3 Umask: 0002 State: R (running) Tgid: 3556717 Ngid: 0 Pid: 3556717 PPid: 3556716 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3556717 NSpid: 3556717 NSpgid: 3554616 NSsid: 3554616 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97916 kB VmRSS: 97916 kB RssAnon: 59744 kB RssFile: 38172 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 620 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: 47 nonvoluntary_ctxt_switches: 175 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3556717', 'Ngid': '0', 'Pid': '3556717', 'PPid': '3556716', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3556717', 'NSpid': '3556717', 'NSpgid': '3554616', 'NSsid': '3554616', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97916 kB', 'VmRSS': '97916 kB', 'RssAnon': '59744 kB', 'RssFile': '38172 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '47', 'nonvoluntary_ctxt_switches': '175'} ('datou_batch_current', '3556717', '1106660', '0', '1106660', '865412', '97916', b'', 'marlene', '2573321') 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 (20414667) 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 (2573321 ) ) 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 (20414667) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336563176, 'portfolio_id': 20414667}, {'photo_id': 1336563163, 'portfolio_id': 20414667}, {'photo_id': 1336563159, 'portfolio_id': 20414667}, {'photo_id': 1336563155, 'portfolio_id': 20414667}, {'photo_id': 1336563152, 'portfolio_id': 20414667}, {'photo_id': 1336563122, 'portfolio_id': 20414667}, {'photo_id': 1336563119, 'portfolio_id': 20414667}, {'photo_id': 1336563116, 'portfolio_id': 20414667}, {'photo_id': 1336563113, 'portfolio_id': 20414667}, {'photo_id': 1336563110, 'portfolio_id': 20414667}, {'photo_id': 1336563073, 'portfolio_id': 20414667}, {'photo_id': 1336563069, 'portfolio_id': 20414667}, {'photo_id': 1336563067, 'portfolio_id': 20414667}, {'photo_id': 1336563059, 'portfolio_id': 20414667}, {'photo_id': 1336563043, 'portfolio_id': 20414667}, {'photo_id': 1336563021, 'portfolio_id': 20414667}, {'photo_id': 1336563017, 'portfolio_id': 20414667}, {'photo_id': 1336563014, 'portfolio_id': 20414667}, {'photo_id': 1336563009, 'portfolio_id': 20414667}, {'photo_id': 1336563006, 'portfolio_id': 20414667}, {'photo_id': 1336563003, 'portfolio_id': 20414667}, {'photo_id': 1336562973, 'portfolio_id': 20414667}, {'photo_id': 1336562967, 'portfolio_id': 20414667}, {'photo_id': 1336562964, 'portfolio_id': 20414667}, {'photo_id': 1336562957, 'portfolio_id': 20414667}, {'photo_id': 1336562907, 'portfolio_id': 20414667}, {'photo_id': 1336562904, 'portfolio_id': 20414667}, {'photo_id': 1336562900, 'portfolio_id': 20414667}, {'photo_id': 1336562898, 'portfolio_id': 20414667}, {'photo_id': 1336562894, 'portfolio_id': 20414667}, {'photo_id': 1336562892, 'portfolio_id': 20414667}, {'photo_id': 1336562869, 'portfolio_id': 20414667}, {'photo_id': 1336562865, 'portfolio_id': 20414667}, {'photo_id': 1336562861, 'portfolio_id': 20414667}, {'photo_id': 1336562857, 'portfolio_id': 20414667}, {'photo_id': 1336562854, 'portfolio_id': 20414667}, {'photo_id': 1336562852, 'portfolio_id': 20414667}, {'photo_id': 1336562666, 'portfolio_id': 20414667}, {'photo_id': 1336562663, 'portfolio_id': 20414667}, {'photo_id': 1336562660, 'portfolio_id': 20414667}, {'photo_id': 1336562657, 'portfolio_id': 20414667}, {'photo_id': 1336562623, 'portfolio_id': 20414667}, {'photo_id': 1336562619, 'portfolio_id': 20414667}, {'photo_id': 1336562616, 'portfolio_id': 20414667}, {'photo_id': 1336562613, 'portfolio_id': 20414667}, {'photo_id': 1336562585, 'portfolio_id': 20414667}, {'photo_id': 1336562583, 'portfolio_id': 20414667}, {'photo_id': 1336562581, 'portfolio_id': 20414667}, {'photo_id': 1336562577, 'portfolio_id': 20414667}, {'photo_id': 1336562571, 'portfolio_id': 20414667}, {'photo_id': 1336562196, 'portfolio_id': 20414667}, {'photo_id': 1336562192, 'portfolio_id': 20414667}, {'photo_id': 1336562188, 'portfolio_id': 20414667}, {'photo_id': 1336562184, 'portfolio_id': 20414667}, {'photo_id': 1336562180, 'portfolio_id': 20414667}, {'photo_id': 1336562144, 'portfolio_id': 20414667}, {'photo_id': 1336562140, 'portfolio_id': 20414667}, {'photo_id': 1336562137, 'portfolio_id': 20414667}, {'photo_id': 1336562135, 'portfolio_id': 20414667}] map_portfolio_id_photo_id: {20414667: [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043, 1336563021, 1336563017, 1336563014, 1336563009, 1336563006, 1336563003, 1336562973, 1336562967, 1336562964, 1336562957, 1336562907, 1336562904, 1336562900, 1336562898, 1336562894, 1336562892, 1336562869, 1336562865, 1336562861, 1336562857, 1336562854, 1336562852, 1336562666, 1336562663, 1336562660, 1336562657, 1336562623, 1336562619, 1336562616, 1336562613, 1336562585, 1336562583, 1336562581, 1336562577, 1336562571, 1336562196, 1336562192, 1336562188, 1336562184, 1336562180, 1336562144, 1336562140, 1336562137, 1336562135]} ##### 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.016225099563598633 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 10 18:42:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20414667) 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 : 20414667 get user id for portfolio 20414667 get sub ptf for main ptf 20414667, type 3726 and hashtags ['Carton_brun', 'kraft', 'cartonnette', 'papier', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'flou', 'autre_refus', 'environnement', 'Carton_gris', 'mal_croppe'] 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`=20414667 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','cartonnette','papier','Teint_Dans_La_Masse','metal','plastique','flou','autre_refus','environnement','Carton_gris','mal_croppe')) 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`=20414667 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','cartonnette','papier','Teint_Dans_La_Masse','metal','plastique','flou','autre_refus','environnement','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20414667, 'sub_port_id': 20414707, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092391, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'autre_refus': {'main_port_id': 20414667, 'sub_port_id': 20414708, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092392, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'flou': {'main_port_id': 20414667, 'sub_port_id': 20414709, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092393, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20414667, 'sub_port_id': 20414710, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092394, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'plastique': {'main_port_id': 20414667, 'sub_port_id': 20414711, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092395, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'environnement': {'main_port_id': 20414667, 'sub_port_id': 20414712, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092396, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'Carton_brun': {'main_port_id': 20414667, 'sub_port_id': 20414713, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092397, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'kraft': {'main_port_id': 20414667, 'sub_port_id': 20414714, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092398, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'cartonnette': {'main_port_id': 20414667, 'sub_port_id': 20414715, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092399, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'papier': {'main_port_id': 20414667, 'sub_port_id': 20414716, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092400, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'Carton_gris': {'main_port_id': 20414667, 'sub_port_id': 20414717, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092401, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}, 'mal_croppe': {'main_port_id': 20414667, 'sub_port_id': 20414718, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092402, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20414707 , 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=20414667 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 (20414707) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414708 , 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=20414667 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 (20414708) result : ((1336562954,), (1336562974,), (1336563055,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414709 , 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=20414667 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 (20414709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414710 , 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=20414667 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 (20414710) result : ((1336562860,), (1336562913,), (1336562914,), (1336562945,), (1336562946,), (1336562947,), (1336562948,), (1336562949,), (1336562950,), (1336562951,), (1336562952,), (1336562953,), (1336562971,), (1336562972,), (1336563046,), (1336563047,), (1336563048,), (1336563049,), (1336563050,), (1336563051,), (1336563052,), (1336563053,), (1336563054,), (1336563085,), (1336563086,), (1336563124,), (1336563125,), (1336563165,), (1336563166,), (1336563167,), (1336563168,), (1336563169,), (1336563170,), (1336563171,), (1336563172,), (1336563173,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414711 , 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=20414667 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 (20414711) result : ((1336562924,), (1336562925,), (1336562975,), (1336562976,), (1336562977,), (1336563098,), (1336563099,), (1336563100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414712 , 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=20414667 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 (20414712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414713 , 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=20414667 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 (20414713) result : ((1336562923,), (1336562960,), (1336562961,), (1336562962,), (1336563061,), (1336563062,), (1336563063,), (1336563064,), (1336563095,), (1336563180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414714 , 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=20414667 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 (20414714) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414715 , 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=20414667 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 (20414715) result : ((1336562917,), (1336562918,), (1336563092,), (1336563093,), (1336563126,), (1336563127,), (1336563177,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414716 , 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=20414667 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 (20414716) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414717 , 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=20414667 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 (20414717) result : ((1336562863,), (1336562915,), (1336562916,), (1336562956,), (1336563056,), (1336563089,), (1336563090,), (1336563174,), (1336563175,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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 20414718 , 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=20414667 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 (20414718) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20414667) result : ((1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) 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 (1336562900) 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`=20414667 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','cartonnette','papier','Teint_Dans_La_Masse','metal','plastique','flou','autre_refus','environnement','Carton_gris','mal_croppe')) 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`=20414667 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','cartonnette','papier','Teint_Dans_La_Masse','metal','plastique','flou','autre_refus','environnement','Carton_gris','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20414667, 'sub_port_id': 20414719, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092403, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'autre_refus': {'main_port_id': 20414667, 'sub_port_id': 20414720, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092404, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'flou': {'main_port_id': 20414667, 'sub_port_id': 20414721, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092405, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20414667, 'sub_port_id': 20414722, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092406, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'plastique': {'main_port_id': 20414667, 'sub_port_id': 20414723, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092407, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'environnement': {'main_port_id': 20414667, 'sub_port_id': 20414724, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092408, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'Carton_brun': {'main_port_id': 20414667, 'sub_port_id': 20414725, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092409, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'kraft': {'main_port_id': 20414667, 'sub_port_id': 20414726, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092410, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'cartonnette': {'main_port_id': 20414667, 'sub_port_id': 20414727, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092411, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'papier': {'main_port_id': 20414667, 'sub_port_id': 20414728, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092412, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'Carton_gris': {'main_port_id': 20414667, 'sub_port_id': 20414729, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092413, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}, 'mal_croppe': {'main_port_id': 20414667, 'sub_port_id': 20414730, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13092414, 'last_updated_at': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 18, 41), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 18, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20414730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20414718 lien utilise dans velours : https://www.fotonower.com/velours/20414719,20414720,20414721,20414722,20414723,20414724,20414725,20414726,20414727,20414728,20414729,20414730?tags=metal,autre_refus,flou,Teint_Dans_La_Masse,plastique,environnement,Carton_brun,kraft,cartonnette,papier,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20414667]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] map_info['map_portfolio_photo'] : {20414667: [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043, 1336563021, 1336563017, 1336563014, 1336563009, 1336563006, 1336563003, 1336562973, 1336562967, 1336562964, 1336562957, 1336562907, 1336562904, 1336562900, 1336562898, 1336562894, 1336562892, 1336562869, 1336562865, 1336562861, 1336562857, 1336562854, 1336562852, 1336562666, 1336562663, 1336562660, 1336562657, 1336562623, 1336562619, 1336562616, 1336562613, 1336562585, 1336562583, 1336562581, 1336562577, 1336562571, 1336562196, 1336562192, 1336562188, 1336562184, 1336562180, 1336562144, 1336562140, 1336562137, 1336562135]} final : False mtd_id 4302 list_pids : [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] Looping around the photos to save general results len do output : 1 /20414667. 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, '2573321') ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '20414667', "{'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718}", None, None, None, None, '2573321'), ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321')] time used for this insertion : 0.014973640441894531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44896960258483887 time spend to save output : 0.015303611755371094 total time spend for step 1 : 0.46427321434020996 step2:final Mon Feb 10 18:42: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 (20414667) 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 20414667 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336562144,1336562140,1336562137,1336562135,1336562196,1336562192,1336562188,1336562184,1336562180,1336562585,1336562583,1336562581,1336562577,1336562571,1336562623,1336562619,1336562616,1336562613,1336562666,1336562663,1336562660,1336562657,1336562869,1336562865,1336562861,1336562857,1336562854,1336562852,1336562907,1336562904,1336562900,1336562898,1336562894,1336562892,1336562973,1336562967,1336562964,1336562957,1336563021,1336563017,1336563014,1336563009,1336563006,1336563003,1336563073,1336563069,1336563067,1336563059,1336563043,1336563122,1336563119,1336563116,1336563113,1336563110,1336563176,1336563163,1336563159,1336563155,1336563152); 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([20414667]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} new output for save of step final : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] map_info['map_portfolio_photo'] : {20414667: [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043, 1336563021, 1336563017, 1336563014, 1336563009, 1336563006, 1336563003, 1336562973, 1336562967, 1336562964, 1336562957, 1336562907, 1336562904, 1336562900, 1336562898, 1336562894, 1336562892, 1336562869, 1336562865, 1336562861, 1336562857, 1336562854, 1336562852, 1336562666, 1336562663, 1336562660, 1336562657, 1336562623, 1336562619, 1336562616, 1336562613, 1336562585, 1336562583, 1336562581, 1336562577, 1336562571, 1336562196, 1336562192, 1336562188, 1336562184, 1336562180, 1336562144, 1336562140, 1336562137, 1336562135]} final : False mtd_id 4302 list_pids : [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] Looping around the photos to save general results len do output : 15 /1336563176.Didn't retrieve data . /1336563163.Didn't retrieve data . /1336563159.Didn't retrieve data . /1336563155.Didn't retrieve data . /1336563152.Didn't retrieve data . /1336563122.Didn't retrieve data . /1336563119.Didn't retrieve data . /1336563116.Didn't retrieve data . /1336563113.Didn't retrieve data . /1336563110.Didn't retrieve data . /1336563073.Didn't retrieve data . /1336563069.Didn't retrieve data . /1336563067.Didn't retrieve data . /1336563059.Didn't retrieve data . /1336563043.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, '2573321') ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '20414667', '1336563176', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563163', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563159', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563155', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563152', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563122', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563119', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563116', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563113', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563110', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563073', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563069', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563067', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563059', '0.05162503936229636', None, None, None, None, '2573321'), ('4302', '20414667', '1336563043', '0.05162503936229636', None, None, None, None, '2573321')] time used for this insertion : 0.014076709747314453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06574630737304688 time spend to save output : 0.01616692543029785 total time spend for step 2 : 0.08191323280334473 step3:velours_tree Mon Feb 10 18:42: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 : {20414667: [{'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718}]} input_args_next_step : {20414667: ()} output_args : {20414667: [{'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718}]} args : 20414667 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 : ({'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20414667) 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([20414667]) 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.33362579345703125 time spend to save output : 6.890296936035156e-05 total time spend for step 3 : 0.3336946964263916 step4:send_mail_cod Mon Feb 10 18:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} input_args_next_step : {1336563176: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563176 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563163 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563159 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563155 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563152 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563122 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563119 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563116 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563113 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563110 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563073 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563069 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563067 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563059 depend.output_id : 0 input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ()} output_args : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',)} args : 1336563043 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 : {20414667: [{'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718}]} input_args_next_step : {1336563176: ('0.05162503936229636',), 1336563163: ('0.05162503936229636',), 1336563159: ('0.05162503936229636',), 1336563155: ('0.05162503936229636',), 1336563152: ('0.05162503936229636',), 1336563122: ('0.05162503936229636',), 1336563119: ('0.05162503936229636',), 1336563116: ('0.05162503936229636',), 1336563113: ('0.05162503936229636',), 1336563110: ('0.05162503936229636',), 1336563073: ('0.05162503936229636',), 1336563069: ('0.05162503936229636',), 1336563067: ('0.05162503936229636',), 1336563059: ('0.05162503936229636',), 1336563043: ('0.05162503936229636',), 20414667: ()} output_args : {20414667: [{'metal': 20414707, 'autre_refus': 20414708, 'flou': 20414709, 'Teint_Dans_La_Masse': 20414710, 'plastique': 20414711, 'environnement': 20414712, 'Carton_brun': 20414713, 'kraft': 20414714, 'cartonnette': 20414715, 'papier': 20414716, 'Carton_gris': 20414717, 'mal_croppe': 20414718}]} args : 20414667 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 :16, first value : ('0.05162503936229636',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20414667) 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 (1336563176,1336563163,1336563159,1336563155,1336563152,1336563122,1336563119,1336563116,1336563113,1336563110,1336563073,1336563069,1336563067,1336563059,1336563043) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336563043 begin to download photo : 1336563073 begin to download photo : 1336563119 begin to download photo : 1336563159 download finish for photo 1336563119 begin to download photo : 1336563122 download finish for photo 1336563043 begin to download photo : 1336563059 download finish for photo 1336563159 begin to download photo : 1336563163 download finish for photo 1336563073 begin to download photo : 1336563110 download finish for photo 1336563163 begin to download photo : 1336563176 download finish for photo 1336563122 begin to download photo : 1336563152 download finish for photo 1336563110 begin to download photo : 1336563113 download finish for photo 1336563176 download finish for photo 1336563059 begin to download photo : 1336563067 download finish for photo 1336563152 begin to download photo : 1336563155 download finish for photo 1336563113 begin to download photo : 1336563116 download finish for photo 1336563155 download finish for photo 1336563067 begin to download photo : 1336563069 download finish for photo 1336563069 download finish for photo 1336563116 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204147071739209379/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P20414667_10-02-2025_18_42_59.pdf 20414707 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=20414707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204147071739209379 20414708 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=20414708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336562954: '1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361287_0.png', 1336562974: '1739209033_547539_1336562657_d6e400f9459fb23cb965f7c4ba9a5279_rle_crop_3668361338_0.png', 1336563055: '1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c8f1adf78a64c2d5781029177b9c5978_68878380.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8324b005f06b91254af6c52990ede700_67459422.png change filename to text .imagette204147081739209379/ imagette204147081739209379/1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361287_0.png.png imagette204147081739209379/1739209033_547539_1336562657_d6e400f9459fb23cb965f7c4ba9a5279_rle_crop_3668361338_0.png.png imagette204147081739209379/1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361287_0.png.png imagette204147091739209379/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c8f1adf78a64c2d5781029177b9c5978_55767201.png imagette204147081739209379 20414709 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=20414709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204147091739209379 20414711 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=20414711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336562924: '1739208951_546372_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361124_0.png', 1336562925: '1739208951_546372_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361142_0.png', 1336562975: '1739209033_547539_1336562663_d299e01ca867ddf67a6b0ade59b9d19a_rle_crop_3668361320_0.png', 1336562976: '1739209033_547539_1336562660_fc39136bc32a3b8aae0d07039a9fe481_rle_crop_3668361332_0.png', 1336562977: '1739209033_547539_1336562657_d6e400f9459fb23cb965f7c4ba9a5279_rle_crop_3668361336_0.png', 1336563098: '1739209134_549844_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668363156_0.png', 1336563099: '1739209134_549844_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361124_0.png', 1336563100: '1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f6ecff1f649be3c80cd3d5590348367f_31588512.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/04dbbc0c6493833796f6d948cd3acead_23018772.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/08021c5751afcc247814ec9527f1ec48_77696481.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/56c36131753ec58fb2387ca145800d46_34542972.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/98dbda4cf1516b2027a84ba72881c436_60792953.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/10445617327581f34af38c504d22b8ac_16062023.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f6ecff1f649be3c80cd3d5590348367f_90932952.png change filename to text .imagette204147111739209379/ imagette204147111739209379/1739209134_549844_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668363156_0.png.png imagette204147111739209379/1739209033_547539_1336562663_d299e01ca867ddf67a6b0ade59b9d19a_rle_crop_3668361320_0.png.png imagette204147111739209379/1739209134_549844_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361124_0.png.png imagette204147111739209379/1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361142_0.png.png imagette204147111739209379/1739208951_546372_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361142_0.png.png imagette204147111739209379/1739208951_546372_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361124_0.png.png imagette204147111739209379/1739209033_547539_1336562657_d6e400f9459fb23cb965f7c4ba9a5279_rle_crop_3668361336_0.png.png imagette204147111739209379/1739209033_547539_1336562660_fc39136bc32a3b8aae0d07039a9fe481_rle_crop_3668361332_0.png.png imagette204147141739209380/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/04dbbc0c6493833796f6d948cd3acead_43814355.png imagette204147111739209379 20414714 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=20414714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204147141739209380 20414715 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=20414715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336562917: '1739208951_546372_1336562623_f8c25e97e04c4f1ba7803981448ec80e_rle_crop_3668360238_0.png', 1336562918: '1739208951_546372_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360250_0.png', 1336563092: '1739209134_549844_1336562623_f8c25e97e04c4f1ba7803981448ec80e_rle_crop_3668360238_0.png', 1336563093: '1739209134_549844_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360250_0.png', 1336563126: '1739209171_550303_1336562904_d213760e62037e76efce3b9dfd2fabd4_rle_crop_3668363257_0.png', 1336563127: '1739209171_550303_1336562894_f5b053a58d3ebdd8dfcbfe6aadf338e5_rle_crop_3668363523_0.png', 1336563177: '1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363584_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0e047733c0eb05efe4a05072236f58f9_24729184.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c355e2fc7ec79451f4869db7e4f08395_43978416.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0e047733c0eb05efe4a05072236f58f9_22398904.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c355e2fc7ec79451f4869db7e4f08395_78874534.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/75865e3ee0ff030b12142cc2f75ec760_1998441.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2a27513d976d960d066bf0403ad2bd73_93524419.png change filename to text .imagette204147151739209380/ imagette204147151739209380/1739209171_550303_1336562904_d213760e62037e76efce3b9dfd2fabd4_rle_crop_3668363257_0.png.png imagette204147151739209380/1739208951_546372_1336562623_f8c25e97e04c4f1ba7803981448ec80e_rle_crop_3668360238_0.png.png imagette204147151739209380/1739209134_549844_1336562623_f8c25e97e04c4f1ba7803981448ec80e_rle_crop_3668360238_0.png.png imagette204147151739209380/1739209134_549844_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360250_0.png.png imagette204147151739209380/1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363584_0.png.png imagette204147151739209380/1739209171_550303_1336562894_f5b053a58d3ebdd8dfcbfe6aadf338e5_rle_crop_3668363523_0.png.png imagette204147151739209380/1739208951_546372_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360250_0.png.png imagette204147181739209380/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/66141964995e5542c5b6923503306ee2_15498482.png imagette204147151739209380 20414718 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=20414718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204147181739209380 20414710 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=20414710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336563165: '1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363598_0.png', 1336563051: '1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361216_0.png', 1336563052: '1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361295_0.png', 1336563053: '1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361293_0.png', 1336563054: '1739209113_549638_1336562180_c573426348d2d9ba02db32a03f6b34cd_rle_crop_3668361310_0.png', 1336563085: '1739209134_549844_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360252_0.png', 1336563086: '1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361139_0.png', 1336563124: '1739209171_550303_1336562904_d213760e62037e76efce3b9dfd2fabd4_rle_crop_3668363269_0.png', 1336563125: '1739209171_550303_1336562900_1ac8507678c7e476dab73601a857af53_rle_crop_3668363448_0.png', 1336563050: '1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361207_0.png', 1336563166: '1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363593_0.png', 1336563167: '1739209215_551286_1336562865_20603dd3307f1a79989ed95ebe0a9838_rle_crop_3668363604_0.png', 1336563168: '1739209215_551286_1336562865_20603dd3307f1a79989ed95ebe0a9838_rle_crop_3668363605_0.png', 1336563169: '1739209215_551286_1336562857_ed4365437ed60654db1a3fbc67659ed1_rle_crop_3668363789_0.png', 1336563170: '1739209215_551286_1336562854_d569971b921f3a0994a944bb414464aa_rle_crop_3668363802_0.png', 1336563171: '1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363823_0.png', 1336563172: '1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363820_0.png', 1336563173: '1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363817_0.png', 1336562951: '1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361295_0.png', 1336562913: '1739208951_546372_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8210b58b1ad01bc5c088aa3be0543729_20140854.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/573a9c18252f5ff995dfcc014750e281_91683948.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c2f726b4bc76b38f6bd96543b6f897ac_66121711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3ab2172a8df13378af391172fab21592_38073868.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/20de2b88c00b38d065d68b6b20044de3_39625296.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9964a6b692948db5f5b09823f7f32c60_4797879.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/000fcd8643b18b1e3fca189f056f5692_62299392.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e0733a4fa2ca4445353c831377b59b37_70865828.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8e624639b897385726e0a744560431b2_24767191.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/99486f0c92ae81291830a88dc266b2b3_2107812.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0594da79ce0663e31d32808697c0c348_64608230.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9d1784c00dcb1066bb60fbd5285966b3_7476422.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9fe56aa972e9cd3dfe27213c0873239f_1162831.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ef2eab32687ffdc6d156dfeb6246980f_38476566.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2bf22d879d57f0afd129ab300b3ae86a_19875095.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cbcf9d6087f3034c216b79c3687b5d89_8201147.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4bb33059d44d38f49723c87325699277_20611716.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d7dc4ab401f73884294a4d9ac23e8cff_61365399.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c2f726b4bc76b38f6bd96543b6f897ac_92771546.png change filename to text .imagette204147101739209380/ imagette204147101739209380/1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361216_0.png.png imagette204147101739209380/1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361293_0.png.png imagette204147101739209380/1739208951_546372_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360252_0.png.png imagette204147101739209380/1739209171_550303_1336562904_d213760e62037e76efce3b9dfd2fabd4_rle_crop_3668363269_0.png.png imagette204147101739209380/1739209215_551286_1336562865_20603dd3307f1a79989ed95ebe0a9838_rle_crop_3668363604_0.png.png imagette204147101739209380/1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363820_0.png.png imagette204147101739209380/1739209171_550303_1336562900_1ac8507678c7e476dab73601a857af53_rle_crop_3668363448_0.png.png imagette204147101739209380/1739209113_549638_1336562180_c573426348d2d9ba02db32a03f6b34cd_rle_crop_3668361310_0.png.png imagette204147101739209380/1739209134_549844_1336562583_e2648dccb84b9ce15adfebf0b3a04f16_rle_crop_3668360252_0.png.png imagette204147101739209380/1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361139_0.png.png imagette204147101739209380/1739209215_551286_1336562857_ed4365437ed60654db1a3fbc67659ed1_rle_crop_3668363789_0.png.png imagette204147101739209380/1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361207_0.png.png imagette204147101739209380/1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363817_0.png.png imagette204147101739209380/1739209215_551286_1336562865_20603dd3307f1a79989ed95ebe0a9838_rle_crop_3668363605_0.png.png imagette204147101739209380/1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363598_0.png.png imagette204147101739209380/1739209215_551286_1336562854_d569971b921f3a0994a944bb414464aa_rle_crop_3668363802_0.png.png imagette204147101739209380/1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363823_0.png.png imagette204147101739209380/1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361295_0.png.png imagette204147101739209380/1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363593_0.png.png imagette204147101739209380/1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361295_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9964a6b692948db5f5b09823f7f32c60_14291058.png imagette204147101739209380 20414713 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=20414713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336562923: '1739208951_546372_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361135_0.png', 1336562960: '1739208973_546673_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361208_0.png', 1336562961: '1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361288_0.png', 1336562962: '1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361290_0.png', 1336563061: '1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361208_0.png', 1336563062: '1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361288_0.png', 1336563063: '1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361290_0.png', 1336563064: '1739209153_550092_1336562964_12eed26e7adb31c01f7298294ceb34c7_rle_crop_3668362898_0.png', 1336563095: '1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361135_0.png', 1336563180: '1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363597_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/caf23b7f5d0e4678799dacdbf1329f3f_51678659.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5e4598dcbe9eed6df1409351f39acc00_19076806.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6971fd40c61bc5b78f0ffb883ec10898_43637455.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1702309dd4e5390b462a66e8e83d8a79_16146881.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5e4598dcbe9eed6df1409351f39acc00_32437626.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6971fd40c61bc5b78f0ffb883ec10898_27745839.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1702309dd4e5390b462a66e8e83d8a79_5597139.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/10417a1754c851ce9029ea882cba3754_83690718.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/caf23b7f5d0e4678799dacdbf1329f3f_42819490.png change filename to text .imagette204147131739209381/ imagette204147131739209381/1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361290_0.png.png imagette204147131739209381/1739208973_546673_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361208_0.png.png imagette204147131739209381/1739209215_551286_1336562907_7695deb82f52addd4f4885a1b5a0357f_rle_crop_3668363597_0.png.png imagette204147131739209381/1739209134_549844_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361135_0.png.png imagette204147131739209381/1739208973_546673_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361288_0.png.png imagette204147131739209381/1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361290_0.png.png imagette204147131739209381/1739209113_549638_1336562188_d3ec4cd2e4cc08fcffcca8c82861f194_rle_crop_3668361208_0.png.png imagette204147131739209381/1739208951_546372_1336562571_82afc6b7e56a042848bfba44196cbdb5_rle_crop_3668361135_0.png.png imagette204147131739209381/1739209113_549638_1336562184_64d80b1dbb22a647ef3b4348e976fd00_rle_crop_3668361288_0.png.png imagette204147131739209381/1739209153_550092_1336562964_12eed26e7adb31c01f7298294ceb34c7_rle_crop_3668362898_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/acca6c9e7928085f39d981b316f2d6f7_46679225.png imagette204147131739209381 20414717 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=20414717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336562863: '1739208932_546219_1336562619_23c656ce9b359886b0fec102c5b94305_rle_crop_3668359802_0.png', 1336562915: '1739208951_546372_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668361105_0.png', 1336562916: '1739208951_546372_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361122_0.png', 1336562956: '1739208973_546673_1336562192_fa93696a1afa9a510cfea8a4b10c6935_rle_crop_3668361194_0.png', 1336563056: '1739209113_549638_1336562192_fa93696a1afa9a510cfea8a4b10c6935_rle_crop_3668361194_0.png', 1336563089: '1739209134_549844_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668361105_0.png', 1336563090: '1739209134_549844_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361122_0.png', 1336563174: '1739209215_551286_1336562857_ed4365437ed60654db1a3fbc67659ed1_rle_crop_3668363786_0.png', 1336563175: '1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363822_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3b50151a6e913e1dfa9cf83c54ab6ca6_55546589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/154bb0f5bb92a911c85584bde41ac2d9_51485671.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/326078f183707a129620560288c2a650_64907258.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1c6a1d841981028788098ba1ac7257e0_2882193.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1c6a1d841981028788098ba1ac7257e0_73090627.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/154bb0f5bb92a911c85584bde41ac2d9_46534433.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/326078f183707a129620560288c2a650_87402629.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e94df15b92c427dbeb5397ac0984f306_23253632.png change filename to text .imagette204147171739209382/ imagette204147171739209382/1739209215_551286_1336562857_ed4365437ed60654db1a3fbc67659ed1_rle_crop_3668363786_0.png.png imagette204147171739209382/1739208973_546673_1336562192_fa93696a1afa9a510cfea8a4b10c6935_rle_crop_3668361194_0.png.png imagette204147171739209382/1739209113_549638_1336562192_fa93696a1afa9a510cfea8a4b10c6935_rle_crop_3668361194_0.png.png imagette204147171739209382/1739208951_546372_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361122_0.png.png imagette204147171739209382/1739209134_549844_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668361105_0.png.png imagette204147171739209382/1739209215_551286_1336562852_4ff30668087a6f20de1da7629c5d8676_rle_crop_3668363822_0.png.png imagette204147171739209382/1739208932_546219_1336562619_23c656ce9b359886b0fec102c5b94305_rle_crop_3668359802_0.png.png imagette204147171739209382/1739208951_546372_1336562581_a4ea8508f525cec1da2968301502ffe1_rle_crop_3668361105_0.png.png imagette204147171739209382/1739209134_549844_1336562577_60feaf349246b260844aa704e36c48ff_rle_crop_3668361122_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/777cb7f3703f2ce55ac045c20015afc5_65904931.png imagette204147171739209382 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20414667 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20414719,20414720,20414721,20414722,20414723,20414724,20414725,20414726,20414727,20414728,20414729,20414730?tags=metal,autre_refus,flou,Teint_Dans_La_Masse,plastique,environnement,Carton_brun,kraft,cartonnette,papier,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1336563176] : ('0.05162503936229636',) no score found for photo 1336563176 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563163] : ('0.05162503936229636',) no score found for photo 1336563163 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563159] : ('0.05162503936229636',) no score found for photo 1336563159 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563155] : ('0.05162503936229636',) no score found for photo 1336563155 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563152] : ('0.05162503936229636',) no score found for photo 1336563152 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563122] : ('0.05162503936229636',) no score found for photo 1336563122 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563119] : ('0.05162503936229636',) no score found for photo 1336563119 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563116] : ('0.05162503936229636',) no score found for photo 1336563116 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563113] : ('0.05162503936229636',) no score found for photo 1336563113 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563110] : ('0.05162503936229636',) no score found for photo 1336563110 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563073] : ('0.05162503936229636',) no score found for photo 1336563073 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563069] : ('0.05162503936229636',) no score found for photo 1336563069 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563067] : ('0.05162503936229636',) no score found for photo 1336563067 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563059] : ('0.05162503936229636',) no score found for photo 1336563059 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com args[1336563043] : ('0.05162503936229636',) no score found for photo 1336563043 apple ('0.05162503936229636',) We are sending mail with results at report@fotonower.com refus_total : 0.05162503936229636 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=20414667 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_P20414667_10-02-2025_18_42_59.pdf results_Auto_P20414667_10-02-2025_18_42_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_10-02-2025_18_42_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','20414667','results_Auto_P20414667_10-02-2025_18_42_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_10-02-2025_18_42_59.pdf','pdf','','0.28','0.05162503936229636') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20414667]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] map_info['map_portfolio_photo'] : {20414667: [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043, 1336563021, 1336563017, 1336563014, 1336563009, 1336563006, 1336563003, 1336562973, 1336562967, 1336562964, 1336562957, 1336562907, 1336562904, 1336562900, 1336562898, 1336562894, 1336562892, 1336562869, 1336562865, 1336562861, 1336562857, 1336562854, 1336562852, 1336562666, 1336562663, 1336562660, 1336562657, 1336562623, 1336562619, 1336562616, 1336562613, 1336562585, 1336562583, 1336562581, 1336562577, 1336562571, 1336562196, 1336562192, 1336562188, 1336562184, 1336562180, 1336562144, 1336562140, 1336562137, 1336562135]} final : False mtd_id 4302 list_pids : [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] 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, '2573321') ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321') 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', '20414667', '1336563176', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321')] time used for this insertion : 0.016696691513061523 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.02432656288147 time spend to save output : 0.017035961151123047 total time spend for step 4 : 5.041362524032593 step5:split_time_score Mon Feb 10 18:43:04 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 : ['20414667'] 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 : [('20414667',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20414667) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336563159: {'path': 'temp/1739209379_3556717_1336563159_5f928844618d33343c16f2b033a957d4.jpg', 'extension': 'jpg'}, 1336563163: {'path': 'temp/1739209379_3556717_1336563163_d16051855f1a8700611e0e882f8b1b7e.jpg', 'extension': 'jpg'}, 1336563176: {'path': 'temp/1739209379_3556717_1336563176_ff56db5ab85eb357aae8502883deb2fa.jpg', 'extension': 'jpg'}, 1336563119: {'path': 'temp/1739209379_3556717_1336563119_16b05ed0e7a4924293c86270f1ed6b0b.jpg', 'extension': 'jpg'}, 1336563122: {'path': 'temp/1739209379_3556717_1336563122_6d351cc10f8893e4171d0a3ca7c018d9.jpg', 'extension': 'jpg'}, 1336563152: {'path': 'temp/1739209379_3556717_1336563152_934018b2ad715ded9c7ba4724aa68be1.jpg', 'extension': 'jpg'}, 1336563155: {'path': 'temp/1739209379_3556717_1336563155_0e707283cf0c43a3a43babb43f7ac9b8.jpg', 'extension': 'jpg'}, 1336563043: {'path': 'temp/1739209379_3556717_1336563043_892148fa5033f91df0a36621574c3af9.jpg', 'extension': 'jpg'}, 1336563059: {'path': 'temp/1739209379_3556717_1336563059_47b400634b01574765ae62328dfad7ce.jpg', 'extension': 'jpg'}, 1336563067: {'path': 'temp/1739209379_3556717_1336563067_0a6e3c8b4d1b9b132aef2553e33a4551.jpg', 'extension': 'jpg'}, 1336563069: {'path': 'temp/1739209379_3556717_1336563069_245a62055741b424478e038faadfc783.jpg', 'extension': 'jpg'}, 1336563073: {'path': 'temp/1739209379_3556717_1336563073_6ea9981f630bfecfb392dcbb12cc0473.jpg', 'extension': 'jpg'}, 1336563110: {'path': 'temp/1739209379_3556717_1336563110_3b0148161b45796d7bece41ddadbe506.jpg', 'extension': 'jpg'}, 1336563113: {'path': 'temp/1739209379_3556717_1336563113_0361678bd07d93714296062af98e4629.jpg', 'extension': 'jpg'}, 1336563116: {'path': 'temp/1739209379_3556717_1336563116_9c1cbf9646b006bae17f4f28e38ab920.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 = 20414667; (('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 = 20414667 group by h (('18', 59),) 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=20414667 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 (20414667) 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 (20414667) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20414667 Nombre de photos uploadées : 59 / 23040 (0%) 10022025 20414667 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 10022025 20414667 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1336562144, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d76c9b7f7c2ce7d1796676616e39dbab.jpg', 'username': None, 'uploaded_at': 1739208667, 'text': 'image_10022025_18_30_14_10137.jpg'}, {'photo_id': 1336562140, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/284f5b0ae2d5995e145acbc9c8001721.jpg', 'username': None, 'uploaded_at': 1739208667, 'text': 'image_10022025_18_30_24_10135.jpg'}, {'photo_id': 1336562137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ed71ea7b1270969ef36bc1abd2234ded.jpg', 'username': None, 'uploaded_at': 1739208667, 'text': 'image_10022025_18_30_34_10145.jpg'}, {'photo_id': 1336562135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/595629dc8354576152b86b7f74c7c05a.jpg', 'username': None, 'uploaded_at': 1739208667, 'text': 'image_10022025_18_30_44_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016620159149169922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20414667, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023359060287475586 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599883, 'mtr_portfolio_id': 20413473, 'dashboard_result_id': 8798071, '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_P20413473_10-02-2025_18_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599883, 'mtr_portfolio_id': 20413963, 'dashboard_result_id': 8798072, '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_P20413963_10-02-2025_18_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599883, 'mtr_portfolio_id': 20414667, 'dashboard_result_id': 8798073, '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_P20414667_10-02-2025_18_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, '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 = 20413473 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': 2573212, 'mtr_portfolio_id': 20413473, 'created_at': datetime.datetime(2025, 2, 10, 18, 16, 58), 'result': '0.03550536732652263', 'result_long': None, 'result_double': None}] Qualite : 0.03550536732652263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20413473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_10-02-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20413473 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_P20413473_10-02-2025_18_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, 'pht': 3726}}" where mtr_portfolio_id = 20413473 and dashboard_run_id = 1599883 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`=20413473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8798071, 0.03550536732652263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_10-02-2025_18_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, '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 = 20413963 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': 2573251, 'mtr_portfolio_id': 20413963, 'created_at': datetime.datetime(2025, 2, 10, 18, 32, 57), 'result': '0.04443659301947966', 'result_long': None, 'result_double': None}] Qualite : 0.04443659301947966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20413963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_10-02-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20413963 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_P20413963_10-02-2025_18_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, 'pht': 3726}}" where mtr_portfolio_id = 20413963 and dashboard_run_id = 1599883 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`=20413963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8798072, 0.04443659301947966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_10-02-2025_18_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, '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 = 20414667 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': 2573321, 'mtr_portfolio_id': 20414667, 'created_at': datetime.datetime(2025, 2, 10, 18, 42, 58), 'result': '0.05162503936229636', 'result_long': None, 'result_double': None}] Qualite : 0.05162503936229636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20414667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_10-02-2025_18_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20414667 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_P20414667_10-02-2025_18_42_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, 'pht': 3726}}" where mtr_portfolio_id = 20414667 and dashboard_run_id = 1599883 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`=20414667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8798073, 0.05162503936229636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_10-02-2025_18_42_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, '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 (20413473,20413963,20414667) result : ((1336557437,), (1336557439,), (1336557454,), (1336557457,), (1336557467,), (1336557483,), (1336557752,), (1336557850,), (1336557861,), (1336557864,), (1336557905,), (1336557962,), (1336558015,), (1336558044,), (1336558054,), (1336558060,), (1336558081,), (1336558112,), (1336558277,), (1336558363,), (1336558679,), (1336558682,), (1336558686,), (1336558690,), (1336558735,), (1336558786,), (1336558883,), (1336558935,), (1336558967,), (1336559016,), (1336559018,), (1336559023,), (1336559027,), (1336559068,), (1336559074,), (1336559395,), (1336559429,), (1336559483,), (1336559485,), (1336559489,), (1336559620,), (1336559623,), (1336559627,), (1336559897,), (1336559918,), (1336559923,), (1336559968,), (1336559975,), (1336559980,), (1336559996,), (1336559987,), (1336559988,), (1336559991,), (1336560234,), (1336560237,), (1336560454,), (1336560468,), (1336560695,), (1336560697,), (1336560699,), (1336560703,), (1336560708,), (1336560745,), (1336560747,), (1336560829,), (1336560848,), (1336560851,), (1336560869,), (1336560880,), (1336560893,), (1336560920,), (1336560923,), (1336560927,), (1336560930,), (1336560936,), (1336560971,), (1336560973,), (1336560976,), (1336560978,), (1336561236,), (1336561239,), (1336561298,), (1336561524,), (1336561531,), (1336561559,), (1336561568,), (1336561571,), (1336561747,), (1336561772,), (1336561779,), (1336561783,), (1336561840,), (1336561843,), (1336561848,), (1336561851,), (1336561855,), (1336561856,), (1336561893,), (1336561903,), (1336561957,), (1336561967,), (1336561968,), (1336561971,), (1336561977,), (1336561982,), (1336562013,), (1336562016,), (1336562021,), (1336562027,), (1336562042,), (1336562082,), (1336562086,), (1336562092,), (1336562149,), (1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20414667]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] map_info['map_portfolio_photo'] : {20414667: [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043, 1336563021, 1336563017, 1336563014, 1336563009, 1336563006, 1336563003, 1336562973, 1336562967, 1336562964, 1336562957, 1336562907, 1336562904, 1336562900, 1336562898, 1336562894, 1336562892, 1336562869, 1336562865, 1336562861, 1336562857, 1336562854, 1336562852, 1336562666, 1336562663, 1336562660, 1336562657, 1336562623, 1336562619, 1336562616, 1336562613, 1336562585, 1336562583, 1336562581, 1336562577, 1336562571, 1336562196, 1336562192, 1336562188, 1336562184, 1336562180, 1336562144, 1336562140, 1336562137, 1336562135]} final : True mtd_id 4302 list_pids : [1336563176, 1336563163, 1336563159, 1336563155, 1336563152, 1336563122, 1336563119, 1336563116, 1336563113, 1336563110, 1336563073, 1336563069, 1336563067, 1336563059, 1336563043] Looping around the photos to save general results len do output : 1 /20414667Didn'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, '2573321') ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321') ('4302', None, None, None, None, None, None, None, '2573321') ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '20414667', 'None', None, None, None, None, '2573321'), ('4302', '20414667', '1336563176', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563163', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563159', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563155', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563152', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563122', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563119', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563116', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563113', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563110', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563073', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563069', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563067', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563059', None, None, None, None, None, '2573321'), ('4302', '20414667', '1336563043', None, None, None, None, None, '2573321')] time used for this insertion : 0.014519691467285156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2843630313873291 time spend to save output : 0.014722585678100586 total time spend for step 5 : 0.2990856170654297 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 (2573321) 2.45user 2.42system 0:09.20elapsed 53%CPU (0avgtext+0avgdata 159556maxresident)k 352inputs+19104outputs (1major+75076minor)pagefaults 0swaps