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 : 139048 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 (2737330) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2737330) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196575 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2737330'] with mtr_portfolio_ids : ['22196575'] and first list_photo_ids : [] new path : /proc/139048/ Name: python3 Umask: 0002 State: R (running) Tgid: 139048 Ngid: 0 Pid: 139048 PPid: 139047 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 139048 NSpid: 139048 NSpgid: 134771 NSsid: 134771 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98452 kB VmRSS: 98452 kB RssAnon: 59764 kB RssFile: 38688 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 48 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '139048', 'Ngid': '0', 'Pid': '139048', 'PPid': '139047', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '139048', 'NSpid': '139048', 'NSpgid': '134771', 'NSsid': '134771', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98452 kB', 'VmRSS': '98452 kB', 'RssAnon': '59764 kB', 'RssFile': '38688 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '48', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '139048', '1106840', '0', '1106840', '865588', '98452', b'', 'marlene', '2737330') 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 (22196575) 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 (2737330 ) ) 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 (22196575) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350989706, 'portfolio_id': 22196575}, {'photo_id': 1350989692, 'portfolio_id': 22196575}, {'photo_id': 1350989689, 'portfolio_id': 22196575}, {'photo_id': 1350989682, 'portfolio_id': 22196575}, {'photo_id': 1350989624, 'portfolio_id': 22196575}, {'photo_id': 1350989621, 'portfolio_id': 22196575}, {'photo_id': 1350989617, 'portfolio_id': 22196575}, {'photo_id': 1350989613, 'portfolio_id': 22196575}, {'photo_id': 1350989399, 'portfolio_id': 22196575}, {'photo_id': 1350989366, 'portfolio_id': 22196575}, {'photo_id': 1350989344, 'portfolio_id': 22196575}, {'photo_id': 1350989330, 'portfolio_id': 22196575}, {'photo_id': 1350989305, 'portfolio_id': 22196575}, {'photo_id': 1350988916, 'portfolio_id': 22196575}, {'photo_id': 1350988816, 'portfolio_id': 22196575}, {'photo_id': 1350988812, 'portfolio_id': 22196575}, {'photo_id': 1350988788, 'portfolio_id': 22196575}, {'photo_id': 1350988783, 'portfolio_id': 22196575}, {'photo_id': 1350988375, 'portfolio_id': 22196575}, {'photo_id': 1350988344, 'portfolio_id': 22196575}, {'photo_id': 1350988099, 'portfolio_id': 22196575}, {'photo_id': 1350988075, 'portfolio_id': 22196575}, {'photo_id': 1350988032, 'portfolio_id': 22196575}, {'photo_id': 1350988006, 'portfolio_id': 22196575}, {'photo_id': 1350987974, 'portfolio_id': 22196575}, {'photo_id': 1350987704, 'portfolio_id': 22196575}, {'photo_id': 1350987645, 'portfolio_id': 22196575}, {'photo_id': 1350987608, 'portfolio_id': 22196575}, {'photo_id': 1350987591, 'portfolio_id': 22196575}, {'photo_id': 1350987485, 'portfolio_id': 22196575}, {'photo_id': 1350987476, 'portfolio_id': 22196575}, {'photo_id': 1350987428, 'portfolio_id': 22196575}, {'photo_id': 1350987390, 'portfolio_id': 22196575}, {'photo_id': 1350987367, 'portfolio_id': 22196575}, {'photo_id': 1350987361, 'portfolio_id': 22196575}, {'photo_id': 1350987097, 'portfolio_id': 22196575}, {'photo_id': 1350987015, 'portfolio_id': 22196575}, {'photo_id': 1350986908, 'portfolio_id': 22196575}, {'photo_id': 1350986641, 'portfolio_id': 22196575}, {'photo_id': 1350986562, 'portfolio_id': 22196575}, {'photo_id': 1350986529, 'portfolio_id': 22196575}, {'photo_id': 1350986515, 'portfolio_id': 22196575}, {'photo_id': 1350986488, 'portfolio_id': 22196575}, {'photo_id': 1350986467, 'portfolio_id': 22196575}, {'photo_id': 1350986149, 'portfolio_id': 22196575}, {'photo_id': 1350986126, 'portfolio_id': 22196575}, {'photo_id': 1350986100, 'portfolio_id': 22196575}, {'photo_id': 1350986076, 'portfolio_id': 22196575}, {'photo_id': 1350985983, 'portfolio_id': 22196575}, {'photo_id': 1350985978, 'portfolio_id': 22196575}, {'photo_id': 1350985967, 'portfolio_id': 22196575}, {'photo_id': 1350985942, 'portfolio_id': 22196575}, {'photo_id': 1350985940, 'portfolio_id': 22196575}, {'photo_id': 1350985939, 'portfolio_id': 22196575}, {'photo_id': 1350985908, 'portfolio_id': 22196575}, {'photo_id': 1350985884, 'portfolio_id': 22196575}, {'photo_id': 1350985871, 'portfolio_id': 22196575}, {'photo_id': 1350985866, 'portfolio_id': 22196575}, {'photo_id': 1350985848, 'portfolio_id': 22196575}, {'photo_id': 1350985844, 'portfolio_id': 22196575}, {'photo_id': 1350985840, 'portfolio_id': 22196575}, {'photo_id': 1350985835, 'portfolio_id': 22196575}, {'photo_id': 1350985831, 'portfolio_id': 22196575}, {'photo_id': 1350985828, 'portfolio_id': 22196575}, {'photo_id': 1350985742, 'portfolio_id': 22196575}, {'photo_id': 1350985734, 'portfolio_id': 22196575}, {'photo_id': 1350985732, 'portfolio_id': 22196575}, {'photo_id': 1350985728, 'portfolio_id': 22196575}] map_portfolio_id_photo_id: {22196575: [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305, 1350988916, 1350988816, 1350988812, 1350988788, 1350988783, 1350988375, 1350988344, 1350988099, 1350988075, 1350988032, 1350988006, 1350987974, 1350987704, 1350987645, 1350987608, 1350987591, 1350987485, 1350987476, 1350987428, 1350987390, 1350987367, 1350987361, 1350987097, 1350987015, 1350986908, 1350986641, 1350986562, 1350986529, 1350986515, 1350986488, 1350986467, 1350986149, 1350986126, 1350986100, 1350986076, 1350985983, 1350985978, 1350985967, 1350985942, 1350985940, 1350985939, 1350985908, 1350985884, 1350985871, 1350985866, 1350985848, 1350985844, 1350985840, 1350985835, 1350985831, 1350985828, 1350985742, 1350985734, 1350985732, 1350985728]} ##### 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.017304420471191406 #### 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 Thu Apr 10 02:31:02 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 (22196575) 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 : 22196575 get user id for portfolio 22196575 get sub ptf for main ptf 22196575, type 3726 and hashtags ['metal', 'cartonnette', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'papier', 'environnement', 'kraft', 'autre_refus', 'flou'] 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`=22196575 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','kraft','autre_refus','flou')) 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`=22196575 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','kraft','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22196575, 'sub_port_id': 22196635, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670248, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'plastique': {'main_port_id': 22196575, 'sub_port_id': 22196636, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670249, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'mal_croppe': {'main_port_id': 22196575, 'sub_port_id': 22196637, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670250, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'Carton_gris': {'main_port_id': 22196575, 'sub_port_id': 22196638, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670251, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'environnement': {'main_port_id': 22196575, 'sub_port_id': 22196639, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670252, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'kraft': {'main_port_id': 22196575, 'sub_port_id': 22196640, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670253, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'flou': {'main_port_id': 22196575, 'sub_port_id': 22196641, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670254, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22196575, 'sub_port_id': 22196642, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670255, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'papier': {'main_port_id': 22196575, 'sub_port_id': 22196643, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670256, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'autre_refus': {'main_port_id': 22196575, 'sub_port_id': 22196644, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670257, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'metal': {'main_port_id': 22196575, 'sub_port_id': 22196645, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670258, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}, 'Carton_brun': {'main_port_id': 22196575, 'sub_port_id': 22196646, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670259, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22196635 , 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=22196575 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 (22196635) result : ((1350986099,), (1350986101,), (1350987218,), (1350987358,), (1350987359,), (1350987935,), (1350987937,), (1350987938,), (1350988332,), (1350988367,), (1350988669,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196636 , 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=22196575 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 (22196636) result : ((1350986107,), (1350987221,), (1350987223,), (1350987225,), (1350987229,), (1350987348,), (1350987349,), (1350987350,), (1350987508,), (1350987510,), (1350987932,), (1350988374,), (1350988738,), (1350988739,), (1350989309,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196637 , 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=22196575 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 (22196637) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196638 , 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=22196575 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 (22196638) result : ((1350987214,), (1350987215,), (1350987216,), (1350987217,), (1350987342,), (1350987897,), (1350987899,), (1350987900,), (1350987901,), (1350988650,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196639 , 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=22196575 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 (22196639) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196640 , 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=22196575 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 (22196640) result : ((1350986111,), (1350987351,), (1350987352,), (1350987951,), (1350987952,), (1350987953,), (1350989314,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196641 , 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=22196575 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 (22196641) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196642 , 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=22196575 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 (22196642) result : ((1350986078,), (1350986080,), (1350986081,), (1350986082,), (1350986083,), (1350986084,), (1350986085,), (1350987198,), (1350987202,), (1350987206,), (1350987209,), (1350987331,), (1350987353,), (1350987354,), (1350987856,), (1350987857,), (1350987921,), (1350987923,), (1350988311,), (1350988351,), (1350988489,), (1350988493,), (1350988497,), (1350988498,), (1350988499,), (1350989287,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196643 , 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=22196575 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 (22196643) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196644 , 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=22196575 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 (22196644) result : ((1350986090,), (1350987212,), (1350987213,), (1350987878,), (1350988628,), (1350988632,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196645 , 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=22196575 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 (22196645) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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 22196646 , 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=22196575 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 (22196646) result : ((1350987220,), (1350987344,), (1350987363,), (1350987364,), (1350987917,), (1350987919,), (1350987943,), (1350987944,), (1350988686,), (1350989294,), (1350989295,), (1350989296,), (1350989297,), (1350989300,), (1350989301,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22196575) result : ((1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) 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 (1350986100) 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`=22196575 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','kraft','autre_refus','flou')) 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`=22196575 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','kraft','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22196575, 'sub_port_id': 22196647, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670260, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'plastique': {'main_port_id': 22196575, 'sub_port_id': 22196648, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670261, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'mal_croppe': {'main_port_id': 22196575, 'sub_port_id': 22196649, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670262, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'Carton_gris': {'main_port_id': 22196575, 'sub_port_id': 22196650, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670263, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'environnement': {'main_port_id': 22196575, 'sub_port_id': 22196651, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670264, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'kraft': {'main_port_id': 22196575, 'sub_port_id': 22196652, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670265, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'flou': {'main_port_id': 22196575, 'sub_port_id': 22196653, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670266, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22196575, 'sub_port_id': 22196654, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670267, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'papier': {'main_port_id': 22196575, 'sub_port_id': 22196655, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670268, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'autre_refus': {'main_port_id': 22196575, 'sub_port_id': 22196656, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670269, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'metal': {'main_port_id': 22196575, 'sub_port_id': 22196657, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670270, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}, 'Carton_brun': {'main_port_id': 22196575, 'sub_port_id': 22196658, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670271, 'last_updated_at': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 2, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 2, 19, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196647,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196648,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196636 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196649,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196650,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196638 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196651,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196652,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196640 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196653,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196654,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196642 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196655,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196643 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196656,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196644 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196657,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196645 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22196658,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22196646 lien utilise dans velours : https://www.fotonower.com/velours/22196647,22196648,22196649,22196650,22196651,22196652,22196653,22196654,22196655,22196656,22196657,22196658?tags=cartonnette,plastique,mal_croppe,Carton_gris,environnement,kraft,flou,Teint_Dans_La_Masse,papier,autre_refus,metal,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22196575]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] map_info['map_portfolio_photo'] : {22196575: [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305, 1350988916, 1350988816, 1350988812, 1350988788, 1350988783, 1350988375, 1350988344, 1350988099, 1350988075, 1350988032, 1350988006, 1350987974, 1350987704, 1350987645, 1350987608, 1350987591, 1350987485, 1350987476, 1350987428, 1350987390, 1350987367, 1350987361, 1350987097, 1350987015, 1350986908, 1350986641, 1350986562, 1350986529, 1350986515, 1350986488, 1350986467, 1350986149, 1350986126, 1350986100, 1350986076, 1350985983, 1350985978, 1350985967, 1350985942, 1350985940, 1350985939, 1350985908, 1350985884, 1350985871, 1350985866, 1350985848, 1350985844, 1350985840, 1350985835, 1350985831, 1350985828, 1350985742, 1350985734, 1350985732, 1350985728]} final : False mtd_id 4302 list_pids : [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] Looping around the photos to save general results len do output : 1 /22196575. 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, '2737330') ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22196575', "{'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646}", None, None, None, None, '2737330'), ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330')] time used for this insertion : 0.016506195068359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.781553030014038 time spend to save output : 0.016837120056152344 total time spend for step 1 : 1.7983901500701904 step2:final Thu Apr 10 02:31:03 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 (22196575) 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 22196575 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350985742,1350985734,1350985732,1350985728,1350985848,1350985844,1350985840,1350985835,1350985831,1350985828,1350985908,1350985884,1350985871,1350985866,1350985983,1350985978,1350985967,1350985942,1350985940,1350985939,1350986149,1350986126,1350986100,1350986076,1350986641,1350986562,1350986529,1350986515,1350986488,1350986467,1350987097,1350987015,1350986908,1350987485,1350987476,1350987428,1350987390,1350987367,1350987361,1350987704,1350987645,1350987608,1350987591,1350988099,1350988075,1350988032,1350988006,1350987974,1350988375,1350988344,1350988916,1350988816,1350988812,1350988788,1350988783,1350989399,1350989366,1350989344,1350989330,1350989305,1350989624,1350989621,1350989617,1350989613,1350989706,1350989692,1350989689,1350989682); 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([22196575]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} new output for save of step final : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] map_info['map_portfolio_photo'] : {22196575: [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305, 1350988916, 1350988816, 1350988812, 1350988788, 1350988783, 1350988375, 1350988344, 1350988099, 1350988075, 1350988032, 1350988006, 1350987974, 1350987704, 1350987645, 1350987608, 1350987591, 1350987485, 1350987476, 1350987428, 1350987390, 1350987367, 1350987361, 1350987097, 1350987015, 1350986908, 1350986641, 1350986562, 1350986529, 1350986515, 1350986488, 1350986467, 1350986149, 1350986126, 1350986100, 1350986076, 1350985983, 1350985978, 1350985967, 1350985942, 1350985940, 1350985939, 1350985908, 1350985884, 1350985871, 1350985866, 1350985848, 1350985844, 1350985840, 1350985835, 1350985831, 1350985828, 1350985742, 1350985734, 1350985732, 1350985728]} final : False mtd_id 4302 list_pids : [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] Looping around the photos to save general results len do output : 13 /1350989706.Didn't retrieve data . /1350989692.Didn't retrieve data . /1350989689.Didn't retrieve data . /1350989682.Didn't retrieve data . /1350989624.Didn't retrieve data . /1350989621.Didn't retrieve data . /1350989617.Didn't retrieve data . /1350989613.Didn't retrieve data . /1350989399.Didn't retrieve data . /1350989366.Didn't retrieve data . /1350989344.Didn't retrieve data . /1350989330.Didn't retrieve data . /1350989305.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, '2737330') ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22196575', '1350989706', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989692', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989689', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989682', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989624', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989621', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989617', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989613', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989399', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989366', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989344', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989330', '0.03897285305170522', None, None, None, None, '2737330'), ('4302', '22196575', '1350989305', '0.03897285305170522', None, None, None, None, '2737330')] time used for this insertion : 0.03632307052612305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29625463485717773 time spend to save output : 0.03692817687988281 total time spend for step 2 : 0.33318281173706055 step3:velours_tree Thu Apr 10 02:31: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 : {22196575: [{'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646}]} input_args_next_step : {22196575: ()} output_args : {22196575: [{'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646}]} args : 22196575 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 : ({'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22196575) 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([22196575]) 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.3611600399017334 time spend to save output : 0.0001049041748046875 total time spend for step 3 : 0.3612649440765381 step4:send_mail_cod Thu Apr 10 02:31: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 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 : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} input_args_next_step : {1350989706: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989706 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989692 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989689 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989682 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989624 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989621 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989617 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989613 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989399 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989366 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989344 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989330 depend.output_id : 0 input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ()} output_args : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',)} args : 1350989305 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 : {22196575: [{'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646}]} input_args_next_step : {1350989706: ('0.03897285305170522',), 1350989692: ('0.03897285305170522',), 1350989689: ('0.03897285305170522',), 1350989682: ('0.03897285305170522',), 1350989624: ('0.03897285305170522',), 1350989621: ('0.03897285305170522',), 1350989617: ('0.03897285305170522',), 1350989613: ('0.03897285305170522',), 1350989399: ('0.03897285305170522',), 1350989366: ('0.03897285305170522',), 1350989344: ('0.03897285305170522',), 1350989330: ('0.03897285305170522',), 1350989305: ('0.03897285305170522',), 22196575: ()} output_args : {22196575: [{'cartonnette': 22196635, 'plastique': 22196636, 'mal_croppe': 22196637, 'Carton_gris': 22196638, 'environnement': 22196639, 'kraft': 22196640, 'flou': 22196641, 'Teint_Dans_La_Masse': 22196642, 'papier': 22196643, 'autre_refus': 22196644, 'metal': 22196645, 'Carton_brun': 22196646}]} args : 22196575 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 :14, first value : ('0.03897285305170522',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22196575) 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 (1350989706,1350989692,1350989689,1350989682,1350989624,1350989621,1350989617,1350989613,1350989399,1350989366,1350989344,1350989330,1350989305) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350989305 begin to download photo : 1350989366 begin to download photo : 1350989617 begin to download photo : 1350989682 begin to download photo : 1350989706 download finish for photo 1350989366 begin to download photo : 1350989399 download finish for photo 1350989305 begin to download photo : 1350989330 download finish for photo 1350989682 begin to download photo : 1350989689 download finish for photo 1350989617 begin to download photo : 1350989621 download finish for photo 1350989706 download finish for photo 1350989621 begin to download photo : 1350989624 download finish for photo 1350989689 begin to download photo : 1350989692 download finish for photo 1350989330 begin to download photo : 1350989344 download finish for photo 1350989399 begin to download photo : 1350989613 download finish for photo 1350989692 download finish for photo 1350989344 download finish for photo 1350989624 download finish for photo 1350989613 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22196575_10-04-2025_02_31_04.pdf 22196635 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=22196635 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350986099: '1744244333_3569472_1350985844_d1455feafdfe6114c3b0a3fc8707414a_rle_crop_3752934372_0.png', 1350986101: '1744244333_3569472_1350985831_730c22b4c406f32c6cbb9b5508b39b64_rle_crop_3752935247_0.png', 1350987218: '1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938674_0.png', 1350987358: '1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939689_0.png', 1350987359: '1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939683_0.png', 1350987935: '1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939689_0.png', 1350987937: '1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752945041_0.png', 1350987938: '1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_bib_crop_3752939683_0.jpg', 1350988332: '1744244713_3576029_1350987485_3a7c58534491159cc793356265857940_rle_crop_3752946435_0.png', 1350988367: '1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946452_0.png', 1350988669: '1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b89a96cbf834e637910f09b475691ad9_41938001.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/832a6da27936af734d7b2a8626512c5d_98801180.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3be617843b5714992c4411290b1b9ad6_17755461.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/acd62c5562a16b29228e8b5a6c8d6b09_12623758.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d8a2a9dea69d6a8a8d80753b8e9d6fdd_80287249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/acd62c5562a16b29228e8b5a6c8d6b09_98869724.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ca0f3810cfe7710ce5a3e48d0beb735e_58675960.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8e19687a4c55d608aea920d113bf53e9_96438520.jpg change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7af504792ad59083fa136223e593c102_9038745.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8121ac3770247feab7dd1144511e17d5_98062622.png change filename to text .imagette221966351744245064/ imagette221966351744245064/1744244333_3569472_1350985844_d1455feafdfe6114c3b0a3fc8707414a_rle_crop_3752934372_0.png.png imagette221966351744245064/1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939689_0.png.png imagette221966351744245064/1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946452_0.png.png imagette221966351744245064/1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752945041_0.png.png imagette221966351744245064/1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939689_0.png.png imagette221966351744245064/1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939683_0.png.png imagette221966351744245064/1744244713_3576029_1350987485_3a7c58534491159cc793356265857940_rle_crop_3752946435_0.png.png imagette221966351744245064/1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938674_0.png.png imagette221966351744245064/1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946661_0.png.png imagette221966351744245064/1744244333_3569472_1350985831_730c22b4c406f32c6cbb9b5508b39b64_rle_crop_3752935247_0.png.png imagette221966351744245064/1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_bib_crop_3752939683_0.jpg.jpg wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/eed8db9b6bcef1c480a098a21665b4fc_440131.png imagette221966351744245064 22196636 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=22196636 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350986107: '1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935307_0.png', 1350987221: '1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938352_0.png', 1350987223: '1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938424_0.png', 1350987225: '1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938458_0.png', 1350987229: '1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938679_0.png', 1350987348: '1744244513_3572548_1350986149_052e43cd51df1a42e984ea1cddf9e4fc_rle_crop_3752939489_0.png', 1350987349: '1744244513_3572548_1350985978_3b76a61df3172701c85081120cbafe05_rle_crop_3752939506_0.png', 1350987350: '1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939629_0.png', 1350987508: '1744244606_3338922_1350987015_755430b79fe8a7c27b85aa0416cb5891_rle_crop_3752942005_0.png', 1350987510: '1744244606_3338922_1350987015_755430b79fe8a7c27b85aa0416cb5891_rle_crop_3752941999_0.png', 1350987932: '1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944760_0.png', 1350988374: '1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946462_0.png', 1350988738: '1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946414_0.png', 1350988739: '1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946663_0.png', 1350989309: '1744244833_3577352_1350988375_9097e4d65251fccbea3f71d633f39ddd_rle_crop_3752950418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/135ff53795c6161e0321bebdfe0d58bf_76666361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/50152baa63005014dcc3720c5d7cb385_31756555.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/10631446b63170a58be2ffbaec37f667_40546761.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e7c9871aac733174587e89a6f481f5ce_37066434.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/91d58678e0fd3f2e3ee555b6e72b45b6_13024458.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4b24eb0dbcf31d6a5782cc0341bec7c1_35379162.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2ccf0ae1681e3860cf58b35159a2dced_95438001.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6b6acf105fcc2b9d6d4f2217934a733f_39307888.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/34ea3779be3513a3bf9973e5f1faa8d4_5082283.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/55ec887e226397434ae5eed5ae46eb7a_41335637.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fe97526dac40f269d2a4096659bf9d1a_3543643.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/94de9d9e98ec5995c062e9cdb2d5bcd5_1288095.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2a46f8bb4f33d6bc438c767b31e43da6_79175210.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9868b47e373a0d420503b1010a57e450_5581871.png change filename to text .imagette221966361744245065/ imagette221966361744245065/1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946462_0.png.png imagette221966361744245065/1744244606_3338922_1350987015_755430b79fe8a7c27b85aa0416cb5891_rle_crop_3752942005_0.png.png imagette221966361744245065/1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935307_0.png.png imagette221966361744245065/1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946663_0.png.png imagette221966361744245065/1744244513_3572548_1350986149_052e43cd51df1a42e984ea1cddf9e4fc_rle_crop_3752939489_0.png.png imagette221966361744245065/1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938679_0.png.png imagette221966361744245065/1744244833_3577352_1350988375_9097e4d65251fccbea3f71d633f39ddd_rle_crop_3752950418_0.png.png imagette221966361744245065/1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938352_0.png.png imagette221966361744245065/1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938424_0.png.png imagette221966361744245065/1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946414_0.png.png imagette221966361744245065/1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938458_0.png.png imagette221966361744245065/1744244606_3338922_1350987015_755430b79fe8a7c27b85aa0416cb5891_rle_crop_3752941999_0.png.png imagette221966361744245065/1744244513_3572548_1350985978_3b76a61df3172701c85081120cbafe05_rle_crop_3752939506_0.png.png imagette221966361744245065/1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944760_0.png.png imagette221966361744245065/1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939629_0.png.png imagette221966371744245066/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/45a8851170d4ba2255e5840fd2f82eff_59127583.png imagette221966361744245065 22196637 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=22196637 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221966371744245066 22196640 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=22196640 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350986111: '1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935313_0.png', 1350987351: '1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939623_0.png', 1350987352: '1744244513_3572548_1350985939_5d60998dd2059e49c72551c06d908813_rle_crop_3752939641_0.png', 1350987951: '1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944678_0.png', 1350987952: '1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944757_0.png', 1350987953: '1744244612_3574590_1350986515_9206cb876e472e1f9524fcb78b12f3e4_rle_crop_3752944808_0.png', 1350989314: '1744244833_3577352_1350987974_cd458a1ef574aef63ca79b45867dfa17_rle_crop_3752950953_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/977c462961363d198650624ba652ac1f_14010478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/68390a3849907bea93c9c317738d91f8_37945959.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/945b592ddc3295e6049c3f4c876516f7_13525067.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1b8ee8e85eb8f8f78b5100fa47c1167a_16049640.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2d48e2a43718b290d4a5b348f843b5c3_35169969.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b6d3060293ea659db7159205a61e6d97_952400.png change filename to text .imagette221966401744245066/ imagette221966401744245066/1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944757_0.png.png imagette221966401744245066/1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944678_0.png.png imagette221966401744245066/1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939623_0.png.png imagette221966401744245066/1744244612_3574590_1350986515_9206cb876e472e1f9524fcb78b12f3e4_rle_crop_3752944808_0.png.png imagette221966401744245066/1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935313_0.png.png imagette221966401744245066/1744244513_3572548_1350985939_5d60998dd2059e49c72551c06d908813_rle_crop_3752939641_0.png.png imagette221966401744245066/1744244833_3577352_1350987974_cd458a1ef574aef63ca79b45867dfa17_rle_crop_3752950953_0.png.png imagette221966411744245066/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/95e25feb15feb2b4e05a1c40455263df_10352223.png imagette221966401744245066 22196641 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=22196641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221966411744245066 22196644 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=22196644 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350986090: '1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935309_0.png', 1350987212: '1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938343_0.png', 1350987213: '1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938671_0.png', 1350987878: '1744244612_3574590_1350986529_d887d87b17d5e607836a96db0f44f6c4_rle_crop_3752944772_0.png', 1350988628: '1744244727_3341714_1350987476_c5e5b604c9114920a55f7395d943b4a3_rle_crop_3752946473_0.png', 1350988632: '1744244727_3341714_1350987361_15a69844bdb5b921ef3cf6772468c7b1_rle_crop_3752946676_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9283880bfb5a5062b8edd2a171d48e1a_46036207.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/04f10009b8cacf9cc04afd2be2fa71a6_86935487.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a54f9cea68fb6252c4de4735b1960db6_72717686.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1f0a90f2b4601375751d5a7e9cfa4941_74298172.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4f7619fa293d4bac1896b0b3bd10082d_73176324.png change filename to text .imagette221966441744245066/ imagette221966441744245066/1744244727_3341714_1350987361_15a69844bdb5b921ef3cf6772468c7b1_rle_crop_3752946676_0.png.png imagette221966441744245066/1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938343_0.png.png imagette221966441744245066/1744244333_3569472_1350985828_5bc20089215e66d94d8423da9d825f8b_rle_crop_3752935309_0.png.png imagette221966441744245066/1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938671_0.png.png imagette221966441744245066/1744244727_3341714_1350987476_c5e5b604c9114920a55f7395d943b4a3_rle_crop_3752946473_0.png.png imagette221966441744245066/1744244612_3574590_1350986529_d887d87b17d5e607836a96db0f44f6c4_rle_crop_3752944772_0.png.png imagette221966451744245067/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/abe2f1eb58746f43322824cf4b7bccae_51171759.png imagette221966441744245066 22196645 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=22196645 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221966451744245067 22196638 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=22196638 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350987214: '1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938346_0.png', 1350987215: '1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938454_0.png', 1350987216: '1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938668_0.png', 1350987217: '1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938670_0.png', 1350987342: '1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939632_0.png', 1350987897: '1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944682_0.png', 1350987899: '1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944752_0.png', 1350987900: '1744244612_3574590_1350986488_01ae70b464313f39a869bcace7bdecdf_rle_crop_3752944838_0.png', 1350987901: '1744244612_3574590_1350986488_01ae70b464313f39a869bcace7bdecdf_rle_crop_3752944833_0.png', 1350988650: '1744244727_3341714_1350987361_15a69844bdb5b921ef3cf6772468c7b1_rle_crop_3752946678_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/774ccaed642b349f5186df570702d011_85670556.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5c476df43ef2a37d65b77fe3432b61eb_14313246.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2fe045adb56d8e960f782073800f2501_27949694.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/83d3edd9177df924e261113bc204ae84_27836718.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9ab0544bfb84bbf9a9bbcd2baf172054_31629315.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/181b3f3281f20c9c455b3459eac2a3a4_7351089.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/62604a0bca8f8ada778ca5ec177e9aa2_74151319.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a245645a9c46133380ddb1d0e5071315_70868360.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/50c974acf6bd70b4bb3646fc2d24a82b_39290407.png change filename to text .imagette221966381744245067/ imagette221966381744245067/1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938454_0.png.png imagette221966381744245067/1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944682_0.png.png imagette221966381744245067/1744244612_3574590_1350986488_01ae70b464313f39a869bcace7bdecdf_rle_crop_3752944833_0.png.png imagette221966381744245067/1744244513_3572548_1350985940_06a5d2bc1ff0e43b195b9c9f7869f1fa_rle_crop_3752939632_0.png.png imagette221966381744245067/1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938668_0.png.png imagette221966381744245067/1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944752_0.png.png imagette221966381744245067/1744244486_3335957_1350985728_e640182b643ec2c8694cde53147f1dd4_rle_crop_3752938670_0.png.png imagette221966381744245067/1744244727_3341714_1350987361_15a69844bdb5b921ef3cf6772468c7b1_rle_crop_3752946678_0.png.png imagette221966381744245067/1744244612_3574590_1350986488_01ae70b464313f39a869bcace7bdecdf_rle_crop_3752944838_0.png.png imagette221966381744245067/1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938346_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/83861d756fc749183f20db515373d671_12214995.png imagette221966381744245067 22196642 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=22196642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350987354: '1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939691_0.png', 1350989287: '1744244833_3577352_1350988375_9097e4d65251fccbea3f71d633f39ddd_rle_crop_3752950420_0.png', 1350988499: '1744244727_3341714_1350987390_eb486b830911294b1c568b42411b483e_rle_crop_3752946640_0.png', 1350988498: '1744244727_3341714_1350987428_a688c1b9d067552abb27c4051ffe7e26_rle_crop_3752946499_0.png', 1350988497: '1744244727_3341714_1350987476_c5e5b604c9114920a55f7395d943b4a3_rle_crop_3752946482_0.png', 1350988493: '1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946416_0.png', 1350988489: '1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946420_0.png', 1350988351: '1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946459_0.png', 1350988311: '1744244713_3576029_1350987485_3a7c58534491159cc793356265857940_rle_crop_3752946444_0.png', 1350987923: '1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939691_0.png', 1350987921: '1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939696_0.png', 1350987857: '1744244612_3574590_1350986515_9206cb876e472e1f9524fcb78b12f3e4_rle_crop_3752944812_0.png', 1350987856: '1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944680_0.png', 1350986078: '1744244333_3569472_1350985840_8001abfb81f9d9fcee381a6ebdb86c5f_rle_crop_3752935204_0.png', 1350987353: '1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939696_0.png', 1350987331: '1744244513_3572548_1350986149_052e43cd51df1a42e984ea1cddf9e4fc_rle_crop_3752939494_0.png', 1350987209: '1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938453_0.png', 1350987206: '1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938451_0.png', 1350987202: '1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938422_0.png', 1350987198: '1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938353_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2f798e5457847a3f0d409a6e5911626b_87895751.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f9ed1fa2ec549f5a9d6e0e74b719c1c7_78594523.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9341642c2eb3ff3580d66bc489cace23_27653589.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bcfd098231672e917a13dd7f36224917_35040937.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b520de55da0fee1ae150518ef47bbca2_70641304.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4f5ba4235af33f4210d907fc230c934b_97281669.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/02ee53b2a11144b6ef59c0648bbc8555_94633193.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2c7a4e17facf77dbfb1bf59fccc31bfc_91968909.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a65d4c0a15b315879446a979c634fb6c_47166064.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2f798e5457847a3f0d409a6e5911626b_8370367.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/23a5119181ef5aa03ccfe834049d2a2a_21404544.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ec8c77b01cf93e8c7db55c7d6df1858e_88158764.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5c97095e6d2d77f6be50d926e7a78c1f_76705858.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b905c8c9059c7e7882ca11d4c2f01662_48420699.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/23a5119181ef5aa03ccfe834049d2a2a_23143763.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/44d9cd3af8fb61573d8bc6f7ebc32cac_70905278.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5fd94dfa258aefe3dcc97133701a37d2_75816234.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9d566bf602cde39f6c83b3e442545fa9_85282991.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bdb339bd84297c43030456e760df17a7_9315950.png change filename to text .imagette221966421744245067/ imagette221966421744245067/1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946416_0.png.png imagette221966421744245067/1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939696_0.png.png imagette221966421744245067/1744244612_3574590_1350986515_9206cb876e472e1f9524fcb78b12f3e4_rle_crop_3752944812_0.png.png imagette221966421744245067/1744244727_3341714_1350987704_66afcbf0c678463aea2871cb017b44e0_rle_crop_3752946420_0.png.png imagette221966421744245067/1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938453_0.png.png imagette221966421744245067/1744244531_3573105_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939691_0.png.png imagette221966421744245067/1744244486_3335957_1350985732_d1eb563fbd381133254d1c3970852a62_rle_crop_3752938451_0.png.png imagette221966421744245067/1744244486_3335957_1350985848_b32ea6cc5980344fb53b633cf0ba3b1e_rle_crop_3752938353_0.png.png imagette221966421744245067/1744244713_3576029_1350987485_3a7c58534491159cc793356265857940_rle_crop_3752946444_0.png.png imagette221966421744245067/1744244727_3341714_1350987428_a688c1b9d067552abb27c4051ffe7e26_rle_crop_3752946499_0.png.png imagette221966421744245067/1744244727_3341714_1350987390_eb486b830911294b1c568b42411b483e_rle_crop_3752946640_0.png.png imagette221966421744245067/1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939696_0.png.png imagette221966421744245067/1744244701_3575867_1350987645_a35fd2dbe2e30b61493dbb8a1b6f1294_rle_crop_3752946459_0.png.png imagette221966421744245067/1744244633_3574811_1350985871_c3cd8358802e101e564a644a628519d9_rle_crop_3752939691_0.png.png imagette221966421744245067/1744244833_3577352_1350988375_9097e4d65251fccbea3f71d633f39ddd_rle_crop_3752950420_0.png.png imagette221966421744245067/1744244612_3574590_1350987097_a843be2978c9e2430b2fd10b2c0653a5_rle_crop_3752944680_0.png.png imagette221966421744245067/1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938422_0.png.png imagette221966421744245067/1744244513_3572548_1350986149_052e43cd51df1a42e984ea1cddf9e4fc_rle_crop_3752939494_0.png.png imagette221966421744245067/1744244727_3341714_1350987476_c5e5b604c9114920a55f7395d943b4a3_rle_crop_3752946482_0.png.png imagette221966421744245067/1744244333_3569472_1350985840_8001abfb81f9d9fcee381a6ebdb86c5f_rle_crop_3752935204_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0ec72d209127924243fe90ea32ea9df6_26296059.png imagette221966421744245067 22196646 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=22196646 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350987220: '1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938420_0.png', 1350987344: '1744244513_3572548_1350985967_1ee65a4d61d78271eea76ece155f4c6c_rle_crop_3752939519_0.png', 1350987363: '1744244531_3573105_1350985983_a9ee36db1483e19baff1a6246e28834f_rle_crop_3752939539_0.png', 1350987364: '1744244531_3573105_1350985884_b9c598e477cf960d9f7786a4d15c20f1_rle_crop_3752939613_0.png', 1350987917: '1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944755_0.png', 1350987919: '1744244612_3574590_1350986467_17d2ea9b5fb4e3aa11d53580b1f9b2c6_rle_crop_3752944944_0.png', 1350987943: '1744244633_3574811_1350985983_a9ee36db1483e19baff1a6246e28834f_rle_crop_3752939539_0.png', 1350987944: '1744244633_3574811_1350985884_b9c598e477cf960d9f7786a4d15c20f1_rle_crop_3752939613_0.png', 1350988686: '1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946660_0.png', 1350989294: '1744244833_3577352_1350988075_1c19faaa3e346ba9a137417a3a5516ce_rle_crop_3752950446_0.png', 1350989295: '1744244833_3577352_1350988075_1c19faaa3e346ba9a137417a3a5516ce_rle_crop_3752950443_0.png', 1350989296: '1744244833_3577352_1350988032_b57cb27febacb101a0f863161664a6bd_rle_crop_3752950475_0.png', 1350989297: '1744244833_3577352_1350988006_8796f9094db3a5bf6a3b3b99670bd425_rle_crop_3752950484_0.png', 1350989300: '1744244833_3577352_1350988006_8796f9094db3a5bf6a3b3b99670bd425_rle_crop_3752950486_0.png', 1350989301: '1744244833_3577352_1350987974_cd458a1ef574aef63ca79b45867dfa17_rle_crop_3752950963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7d6a38e1bd3e8f12216bddbf2f1bad40_15990395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/88b1b607e0c19bac2c8aa960bfd1576a_28373433.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/12fd82b1b22622991550e5e09cdc878b_1573698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/55043659616a0d3f6459e61886b40bc5_5809403.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f34139eb0bff48bfad77b77aabebcf77_65850893.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1d5bb28f6f3fa37e8eecd4dc0936d310_63164850.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/12fd82b1b22622991550e5e09cdc878b_47735828.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/55043659616a0d3f6459e61886b40bc5_2889700.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/86419f1d92a999ef46cf4100a75134c8_37592551.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/069315b818906e23948e49de2d175fad_34114074.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3db9b6536a87a0ff6638513a6c4a051c_31963933.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/86c692ae7dae26574ef6988e8c161a3f_65407521.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7cab292c63ec6684ed4f93352bfac4e4_75467667.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5a77e55624e93567da27aab753d4e54d_6074095.png change filename to text .imagette221966461744245068/ imagette221966461744245068/1744244833_3577352_1350988006_8796f9094db3a5bf6a3b3b99670bd425_rle_crop_3752950484_0.png.png imagette221966461744245068/1744244633_3574811_1350985884_b9c598e477cf960d9f7786a4d15c20f1_rle_crop_3752939613_0.png.png imagette221966461744245068/1744244833_3577352_1350988075_1c19faaa3e346ba9a137417a3a5516ce_rle_crop_3752950446_0.png.png imagette221966461744245068/1744244531_3573105_1350985884_b9c598e477cf960d9f7786a4d15c20f1_rle_crop_3752939613_0.png.png imagette221966461744245068/1744244833_3577352_1350988075_1c19faaa3e346ba9a137417a3a5516ce_rle_crop_3752950443_0.png.png imagette221966461744245068/1744244727_3341714_1350987367_a0f4b8d8f19e0e8c38a4053fad85e507_rle_crop_3752946660_0.png.png imagette221966461744245068/1744244486_3335957_1350985734_9f282b8e2d967f512365f224680abe7f_rle_crop_3752938420_0.png.png imagette221966461744245068/1744244633_3574811_1350985983_a9ee36db1483e19baff1a6246e28834f_rle_crop_3752939539_0.png.png imagette221966461744245068/1744244513_3572548_1350985967_1ee65a4d61d78271eea76ece155f4c6c_rle_crop_3752939519_0.png.png imagette221966461744245068/1744244833_3577352_1350987974_cd458a1ef574aef63ca79b45867dfa17_rle_crop_3752950963_0.png.png imagette221966461744245068/1744244833_3577352_1350988006_8796f9094db3a5bf6a3b3b99670bd425_rle_crop_3752950486_0.png.png imagette221966461744245068/1744244612_3574590_1350986562_6f94a4e18baf9bddbb6dcf594a7bf289_rle_crop_3752944755_0.png.png imagette221966461744245068/1744244833_3577352_1350988032_b57cb27febacb101a0f863161664a6bd_rle_crop_3752950475_0.png.png imagette221966461744245068/1744244612_3574590_1350986467_17d2ea9b5fb4e3aa11d53580b1f9b2c6_rle_crop_3752944944_0.png.png imagette221966461744245068/1744244531_3573105_1350985983_a9ee36db1483e19baff1a6246e28834f_rle_crop_3752939539_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c5921c1f5bfcda932ea80112812ec8bc_15475115.png imagette221966461744245068 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22196575 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22196647,22196648,22196649,22196650,22196651,22196652,22196653,22196654,22196655,22196656,22196657,22196658?tags=cartonnette,plastique,mal_croppe,Carton_gris,environnement,kraft,flou,Teint_Dans_La_Masse,papier,autre_refus,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350989706] : ('0.03897285305170522',) no score found for photo 1350989706 We are sending mail with results at report@fotonower.com args[1350989692] : ('0.03897285305170522',) no score found for photo 1350989692 We are sending mail with results at report@fotonower.com args[1350989689] : ('0.03897285305170522',) no score found for photo 1350989689 We are sending mail with results at report@fotonower.com args[1350989682] : ('0.03897285305170522',) no score found for photo 1350989682 We are sending mail with results at report@fotonower.com args[1350989624] : ('0.03897285305170522',) no score found for photo 1350989624 We are sending mail with results at report@fotonower.com args[1350989621] : ('0.03897285305170522',) no score found for photo 1350989621 We are sending mail with results at report@fotonower.com args[1350989617] : ('0.03897285305170522',) no score found for photo 1350989617 We are sending mail with results at report@fotonower.com args[1350989613] : ('0.03897285305170522',) no score found for photo 1350989613 We are sending mail with results at report@fotonower.com args[1350989399] : ('0.03897285305170522',) no score found for photo 1350989399 We are sending mail with results at report@fotonower.com args[1350989366] : ('0.03897285305170522',) no score found for photo 1350989366 We are sending mail with results at report@fotonower.com args[1350989344] : ('0.03897285305170522',) no score found for photo 1350989344 We are sending mail with results at report@fotonower.com args[1350989330] : ('0.03897285305170522',) no score found for photo 1350989330 We are sending mail with results at report@fotonower.com args[1350989305] : ('0.03897285305170522',) no score found for photo 1350989305 We are sending mail with results at report@fotonower.com refus_total : 0.03897285305170522 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=22196575 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_P22196575_10-04-2025_02_31_04.pdf results_Auto_P22196575_10-04-2025_02_31_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196575_10-04-2025_02_31_04.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','22196575','results_Auto_P22196575_10-04-2025_02_31_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196575_10-04-2025_02_31_04.pdf','pdf','','0.31','0.03897285305170522') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22196575]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] map_info['map_portfolio_photo'] : {22196575: [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305, 1350988916, 1350988816, 1350988812, 1350988788, 1350988783, 1350988375, 1350988344, 1350988099, 1350988075, 1350988032, 1350988006, 1350987974, 1350987704, 1350987645, 1350987608, 1350987591, 1350987485, 1350987476, 1350987428, 1350987390, 1350987367, 1350987361, 1350987097, 1350987015, 1350986908, 1350986641, 1350986562, 1350986529, 1350986515, 1350986488, 1350986467, 1350986149, 1350986126, 1350986100, 1350986076, 1350985983, 1350985978, 1350985967, 1350985942, 1350985940, 1350985939, 1350985908, 1350985884, 1350985871, 1350985866, 1350985848, 1350985844, 1350985840, 1350985835, 1350985831, 1350985828, 1350985742, 1350985734, 1350985732, 1350985728]} final : False mtd_id 4302 list_pids : [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] 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, '2737330') ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22196575', '1350989706', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330')] time used for this insertion : 0.014565706253051758 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.312337875366211 time spend to save output : 0.015085697174072266 total time spend for step 4 : 7.327423572540283 step5:split_time_score Thu Apr 10 02:31:11 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 : ['22196575'] 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 : [('22196575',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22196575) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350989706: {'path': 'temp/1744245064_139048_1350989706_60f7123f71da7abf9ca198339615d1c4.jpg', 'extension': 'jpg'}, 1350989682: {'path': 'temp/1744245064_139048_1350989682_a79bc5355ceea19c3b1bba6b85e8606b.jpg', 'extension': 'jpg'}, 1350989689: {'path': 'temp/1744245064_139048_1350989689_94b972fb33cc74f6bd8d4fe576dcb431.jpg', 'extension': 'jpg'}, 1350989692: {'path': 'temp/1744245064_139048_1350989692_92d16cf114cadc1aa416ce4b9637c86e.jpg', 'extension': 'jpg'}, 1350989305: {'path': 'temp/1744245064_139048_1350989305_de3a35ffc66225d66ec15856c8d1393e.jpg', 'extension': 'jpg'}, 1350989330: {'path': 'temp/1744245064_139048_1350989330_c1fbf1bd23c6c8b087da8e554bd5dead.jpg', 'extension': 'jpg'}, 1350989344: {'path': 'temp/1744245064_139048_1350989344_2afa747b872478a25fdc553bb6d2d889.jpg', 'extension': 'jpg'}, 1350989617: {'path': 'temp/1744245064_139048_1350989617_a94c2e0acb812eb21f2162b016d984bb.jpg', 'extension': 'jpg'}, 1350989621: {'path': 'temp/1744245064_139048_1350989621_1041d3f3149d79fa63658210a81afc22.jpg', 'extension': 'jpg'}, 1350989624: {'path': 'temp/1744245064_139048_1350989624_8a8eeb81da6b797502e512a5ea37e6b0.jpg', 'extension': 'jpg'}, 1350989366: {'path': 'temp/1744245064_139048_1350989366_6984e9dbf692e36dac8b8d9e9ab2a922.jpg', 'extension': 'jpg'}, 1350989399: {'path': 'temp/1744245064_139048_1350989399_2186b4d8067dddef512b7bdc67c0712a.jpg', 'extension': 'jpg'}, 1350989613: {'path': 'temp/1744245064_139048_1350989613_c8410148b58f7a228424c0d6279a34d9.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 = 22196575; (('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 = 22196575 group by h (('02', 68),) 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=22196575 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 (22196575) 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 (22196575) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22196575 Nombre de photos uploadées : 68 / 23040 (0%) 10042025 22196575 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 10042025 22196575 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1350985742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b9676b89fcf0524da455c411e20d5ed4.jpg', 'username': None, 'uploaded_at': 1744244167, 'text': 'image_10042025_02_15_04_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350985734, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9f282b8e2d967f512365f224680abe7f.jpg', 'username': None, 'uploaded_at': 1744244167, 'text': 'image_10042025_02_15_15_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350985732, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d1eb563fbd381133254d1c3970852a62.jpg', 'username': None, 'uploaded_at': 1744244167, 'text': 'image_10042025_02_15_35_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350985728, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e640182b643ec2c8694cde53147f1dd4.jpg', 'username': None, 'uploaded_at': 1744244167, 'text': 'image_10042025_02_15_44_009128m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 6.4373016357421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1920928955078125e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003087282180786133 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22196575, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 2.3983235359191895 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736363, 'mtr_portfolio_id': 22194679, 'dashboard_result_id': 9968581, '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_P22194679_10-04-2025_01_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22194699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194709, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736363, 'mtr_portfolio_id': 22194828, 'dashboard_result_id': 9968582, '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_P22194828_10-04-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194907, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736363, 'mtr_portfolio_id': 22195492, 'dashboard_result_id': 9968583, '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_P22195492_10-04-2025_02_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195528, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736363, 'mtr_portfolio_id': 22196575, 'dashboard_result_id': 9968584, '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_P22196575_10-04-2025_02_28_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196646, '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 = 22194679 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': 2737215, 'mtr_portfolio_id': 22194679, 'created_at': datetime.datetime(2025, 4, 10, 1, 48, 58), 'result': '0.07175086479871491', 'result_long': None, 'result_double': None}] Qualite : 0.07175086479871491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22194679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22194679_10-04-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22194679 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_P22194679_10-04-2025_01_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22194699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194709, 'pht': 3726}}" where mtr_portfolio_id = 22194679 and dashboard_run_id = 1736363 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`=22194679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968581, 0.07175086479871491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22194679_10-04-2025_01_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22194699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194709, '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 = 22194828 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': 2737225, 'mtr_portfolio_id': 22194828, 'created_at': datetime.datetime(2025, 4, 10, 2, 2, 57), 'result': '0.04568115305237573', 'result_long': None, 'result_double': None}] Qualite : 0.04568115305237573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22194828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22194828_10-04-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22194828 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_P22194828_10-04-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194907, 'pht': 3726}}" where mtr_portfolio_id = 22194828 and dashboard_run_id = 1736363 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`=22194828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968582, 0.04568115305237573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22194828_10-04-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22194897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22194898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22194899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22194900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22194903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22194904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22194905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22194906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22194907, '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 = 22195492 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': 2737293, 'mtr_portfolio_id': 22195492, 'created_at': datetime.datetime(2025, 4, 10, 2, 19, 27), 'result': '0.049413672085982525', 'result_long': None, 'result_double': None}] Qualite : 0.049413672085982525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22195492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195492_10-04-2025_02_19_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22195492 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_P22195492_10-04-2025_02_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195528, 'pht': 3726}}" where mtr_portfolio_id = 22195492 and dashboard_run_id = 1736363 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`=22195492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968583, 0.049413672085982525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195492_10-04-2025_02_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195528, '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 = 22196575 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': 2737330, 'mtr_portfolio_id': 22196575, 'created_at': datetime.datetime(2025, 4, 10, 2, 31, 4), 'result': '0.03897285305170522', 'result_long': None, 'result_double': None}] Qualite : 0.03897285305170522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22196575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196575_10-04-2025_02_31_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22196575 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_P22196575_10-04-2025_02_31_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196646, 'pht': 3726}}" where mtr_portfolio_id = 22196575 and dashboard_run_id = 1736363 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`=22196575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968584, 0.03897285305170522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196575_10-04-2025_02_31_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196646, '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 (22194679,22194828,22195492,22196575) result : ((1350974769,), (1350974809,), (1350974815,), (1350974833,), (1350974842,), (1350974849,), (1350975048,), (1350975051,), (1350975056,), (1350975061,), (1350975429,), (1350975327,), (1350975352,), (1350975390,), (1350975592,), (1350975668,), (1350975739,), (1350975806,), (1350975889,), (1350976287,), (1350976305,), (1350976335,), (1350976366,), (1350976385,), (1350976400,), (1350976550,), (1350976582,), (1350976623,), (1350976662,), (1350976719,), (1350977067,), (1350977134,), (1350977180,), (1350977207,), (1350977708,), (1350977722,), (1350978066,), (1350978110,), (1350978174,), (1350978538,), (1350978564,), (1350978579,), (1350978584,), (1350978608,), (1350978620,), (1350978722,), (1350978726,), (1350978729,), (1350978733,), (1350978932,), (1350978940,), (1350978942,), (1350978963,), (1350979038,), (1350979223,), (1350979230,), (1350979273,), (1350979285,), (1350979356,), (1350979395,), (1350979427,), (1350979449,), (1350979467,), (1350979490,), (1350979563,), (1350979582,), (1350980758,), (1350980707,), (1350980735,), (1350981177,), (1350981236,), (1350981289,), (1350981320,), (1350981345,), (1350981366,), (1350981794,), (1350981819,), (1350981883,), (1350981913,), (1350981944,), (1350982690,), (1350982800,), (1350982870,), (1350982888,), (1350982925,), (1350982959,), (1350983246,), (1350983305,), (1350983350,), (1350983382,), (1350983428,), (1350983596,), (1350983624,), (1350983650,), (1350984003,), (1350984042,), (1350984069,), (1350984093,), (1350984117,), (1350984136,), (1350984253,), (1350984256,), (1350984272,), (1350984281,), (1350984287,), (1350984601,), (1350984646,), (1350984715,), (1350984764,), (1350984786,), (1350984911,), (1350984982,), (1350984985,), (1350985012,), (1350985072,), (1350985073,), (1350985077,), (1350985080,), (1350985139,), (1350985146,), (1350985223,), (1350985346,), (1350985497,), (1350985511,), (1350985641,), (1350985649,), (1350985652,), (1350985654,), (1350985798,), (1350985728,), (1350985732,), (1350985734,), (1350985742,), (1350985828,), (1350985831,), (1350985835,), (1350985840,), (1350985844,), (1350985848,), (1350985866,), (1350985871,), (1350985884,), (1350985908,), (1350985939,), (1350985940,), (1350985942,), (1350985967,), (1350985978,), (1350985983,), (1350986076,), (1350986100,), (1350986126,), (1350986149,), (1350986467,), (1350986488,), (1350986515,), (1350986529,), (1350986562,), (1350986641,), (1350986908,), (1350987015,), (1350987097,), (1350987361,), (1350987367,), (1350987390,), (1350987428,), (1350987476,), (1350987485,), (1350987591,), (1350987608,), (1350987645,), (1350987704,), (1350987974,), (1350988006,), (1350988032,), (1350988075,), (1350988099,), (1350988344,), (1350988375,), (1350988783,), (1350988788,), (1350988812,), (1350988816,), (1350988916,), (1350989305,), (1350989330,), (1350989344,), (1350989366,), (1350989399,), (1350989613,), (1350989617,), (1350989621,), (1350989624,), (1350989682,), (1350989689,), (1350989692,), (1350989706,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22196575]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] map_info['map_portfolio_photo'] : {22196575: [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305, 1350988916, 1350988816, 1350988812, 1350988788, 1350988783, 1350988375, 1350988344, 1350988099, 1350988075, 1350988032, 1350988006, 1350987974, 1350987704, 1350987645, 1350987608, 1350987591, 1350987485, 1350987476, 1350987428, 1350987390, 1350987367, 1350987361, 1350987097, 1350987015, 1350986908, 1350986641, 1350986562, 1350986529, 1350986515, 1350986488, 1350986467, 1350986149, 1350986126, 1350986100, 1350986076, 1350985983, 1350985978, 1350985967, 1350985942, 1350985940, 1350985939, 1350985908, 1350985884, 1350985871, 1350985866, 1350985848, 1350985844, 1350985840, 1350985835, 1350985831, 1350985828, 1350985742, 1350985734, 1350985732, 1350985728]} final : True mtd_id 4302 list_pids : [1350989706, 1350989692, 1350989689, 1350989682, 1350989624, 1350989621, 1350989617, 1350989613, 1350989399, 1350989366, 1350989344, 1350989330, 1350989305] Looping around the photos to save general results len do output : 1 /22196575Didn'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, '2737330') ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330') ('4302', None, None, None, None, None, None, None, '2737330') ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22196575', 'None', None, None, None, None, '2737330'), ('4302', '22196575', '1350989706', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989692', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989689', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989682', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989624', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989621', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989617', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989613', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989399', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989366', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989344', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989330', None, None, None, None, None, '2737330'), ('4302', '22196575', '1350989305', None, None, None, None, None, '2737330')] time used for this insertion : 0.017670392990112305 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.890077590942383 time spend to save output : 0.018143177032470703 total time spend for step 5 : 2.9082207679748535 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 (2737330) 2.68user 1.94system 0:22.20elapsed 20%CPU (0avgtext+0avgdata 160156maxresident)k 256inputs+16608outputs (2major+75513minor)pagefaults 0swaps