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 : 2533810 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 (2643173) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2643173) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118079 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2643173'] with mtr_portfolio_ids : ['21118079'] and first list_photo_ids : [] new path : /proc/2533810/ Name: python3 Umask: 0002 State: R (running) Tgid: 2533810 Ngid: 0 Pid: 2533810 PPid: 2533809 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2533810 NSpid: 2533810 NSpgid: 2530586 NSsid: 2530586 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98372 kB VmRSS: 98372 kB RssAnon: 59756 kB RssFile: 38616 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 72 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2533810', 'Ngid': '0', 'Pid': '2533810', 'PPid': '2533809', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2533810', 'NSpid': '2533810', 'NSpgid': '2530586', 'NSsid': '2530586', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98372 kB', 'VmRSS': '98372 kB', 'RssAnon': '59756 kB', 'RssFile': '38616 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '72', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '2533810', '1106844', '0', '1106844', '865592', '98372', b'', 'marlene', '2643173') 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 (21118079) 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 (2643173 ) ) 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 (21118079) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341266221, 'portfolio_id': 21118079}, {'photo_id': 1341266217, 'portfolio_id': 21118079}, {'photo_id': 1341266206, 'portfolio_id': 21118079}, {'photo_id': 1341266201, 'portfolio_id': 21118079}, {'photo_id': 1341266196, 'portfolio_id': 21118079}, {'photo_id': 1341266190, 'portfolio_id': 21118079}, {'photo_id': 1341266158, 'portfolio_id': 21118079}, {'photo_id': 1341266123, 'portfolio_id': 21118079}, {'photo_id': 1341266116, 'portfolio_id': 21118079}, {'photo_id': 1341266105, 'portfolio_id': 21118079}, {'photo_id': 1341266072, 'portfolio_id': 21118079}, {'photo_id': 1341265720, 'portfolio_id': 21118079}, {'photo_id': 1341265669, 'portfolio_id': 21118079}, {'photo_id': 1341265606, 'portfolio_id': 21118079}, {'photo_id': 1341265565, 'portfolio_id': 21118079}, {'photo_id': 1341265548, 'portfolio_id': 21118079}, {'photo_id': 1341265540, 'portfolio_id': 21118079}, {'photo_id': 1341265529, 'portfolio_id': 21118079}, {'photo_id': 1341265523, 'portfolio_id': 21118079}, {'photo_id': 1341265511, 'portfolio_id': 21118079}, {'photo_id': 1341265507, 'portfolio_id': 21118079}, {'photo_id': 1341265464, 'portfolio_id': 21118079}, {'photo_id': 1341265459, 'portfolio_id': 21118079}, {'photo_id': 1341265454, 'portfolio_id': 21118079}, {'photo_id': 1341265446, 'portfolio_id': 21118079}, {'photo_id': 1341265371, 'portfolio_id': 21118079}, {'photo_id': 1341265368, 'portfolio_id': 21118079}, {'photo_id': 1341265362, 'portfolio_id': 21118079}, {'photo_id': 1341265353, 'portfolio_id': 21118079}, {'photo_id': 1341265340, 'portfolio_id': 21118079}, {'photo_id': 1341265288, 'portfolio_id': 21118079}, {'photo_id': 1341265281, 'portfolio_id': 21118079}, {'photo_id': 1341265259, 'portfolio_id': 21118079}, {'photo_id': 1341265249, 'portfolio_id': 21118079}, {'photo_id': 1341265243, 'portfolio_id': 21118079}, {'photo_id': 1341265240, 'portfolio_id': 21118079}, {'photo_id': 1341265236, 'portfolio_id': 21118079}, {'photo_id': 1341265234, 'portfolio_id': 21118079}, {'photo_id': 1341265174, 'portfolio_id': 21118079}, {'photo_id': 1341265169, 'portfolio_id': 21118079}, {'photo_id': 1341265165, 'portfolio_id': 21118079}, {'photo_id': 1341265160, 'portfolio_id': 21118079}, {'photo_id': 1341265155, 'portfolio_id': 21118079}, {'photo_id': 1341265144, 'portfolio_id': 21118079}, {'photo_id': 1341265137, 'portfolio_id': 21118079}, {'photo_id': 1341265132, 'portfolio_id': 21118079}, {'photo_id': 1341265124, 'portfolio_id': 21118079}, {'photo_id': 1341265120, 'portfolio_id': 21118079}, {'photo_id': 1341265116, 'portfolio_id': 21118079}, {'photo_id': 1341265113, 'portfolio_id': 21118079}, {'photo_id': 1341265110, 'portfolio_id': 21118079}, {'photo_id': 1341265107, 'portfolio_id': 21118079}, {'photo_id': 1341265106, 'portfolio_id': 21118079}, {'photo_id': 1341265102, 'portfolio_id': 21118079}, {'photo_id': 1341265099, 'portfolio_id': 21118079}, {'photo_id': 1341265025, 'portfolio_id': 21118079}, {'photo_id': 1341265019, 'portfolio_id': 21118079}, {'photo_id': 1341265014, 'portfolio_id': 21118079}, {'photo_id': 1341264948, 'portfolio_id': 21118079}, {'photo_id': 1341264942, 'portfolio_id': 21118079}, {'photo_id': 1341264935, 'portfolio_id': 21118079}, {'photo_id': 1341264928, 'portfolio_id': 21118079}, {'photo_id': 1341264923, 'portfolio_id': 21118079}, {'photo_id': 1341264903, 'portfolio_id': 21118079}, {'photo_id': 1341264902, 'portfolio_id': 21118079}, {'photo_id': 1341264897, 'portfolio_id': 21118079}, {'photo_id': 1341264895, 'portfolio_id': 21118079}, {'photo_id': 1341264889, 'portfolio_id': 21118079}, {'photo_id': 1341264886, 'portfolio_id': 21118079}, {'photo_id': 1341264882, 'portfolio_id': 21118079}, {'photo_id': 1341264881, 'portfolio_id': 21118079}, {'photo_id': 1341264876, 'portfolio_id': 21118079}, {'photo_id': 1341264874, 'portfolio_id': 21118079}, {'photo_id': 1341264872, 'portfolio_id': 21118079}, {'photo_id': 1341264869, 'portfolio_id': 21118079}, {'photo_id': 1341264806, 'portfolio_id': 21118079}, {'photo_id': 1341264803, 'portfolio_id': 21118079}, {'photo_id': 1341264800, 'portfolio_id': 21118079}, {'photo_id': 1341264797, 'portfolio_id': 21118079}, {'photo_id': 1341264793, 'portfolio_id': 21118079}, {'photo_id': 1341264763, 'portfolio_id': 21118079}, {'photo_id': 1341264749, 'portfolio_id': 21118079}, {'photo_id': 1341264743, 'portfolio_id': 21118079}, {'photo_id': 1341264736, 'portfolio_id': 21118079}, {'photo_id': 1341264664, 'portfolio_id': 21118079}, {'photo_id': 1341264661, 'portfolio_id': 21118079}, {'photo_id': 1341264656, 'portfolio_id': 21118079}, {'photo_id': 1341264651, 'portfolio_id': 21118079}] map_portfolio_id_photo_id: {21118079: [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072, 1341265720, 1341265669, 1341265606, 1341265565, 1341265548, 1341265540, 1341265529, 1341265523, 1341265511, 1341265507, 1341265464, 1341265459, 1341265454, 1341265446, 1341265371, 1341265368, 1341265362, 1341265353, 1341265340, 1341265288, 1341265281, 1341265259, 1341265249, 1341265243, 1341265240, 1341265236, 1341265234, 1341265174, 1341265169, 1341265165, 1341265160, 1341265155, 1341265144, 1341265137, 1341265132, 1341265124, 1341265120, 1341265116, 1341265113, 1341265110, 1341265107, 1341265106, 1341265102, 1341265099, 1341265025, 1341265019, 1341265014, 1341264948, 1341264942, 1341264935, 1341264928, 1341264923, 1341264903, 1341264902, 1341264897, 1341264895, 1341264889, 1341264886, 1341264882, 1341264881, 1341264876, 1341264874, 1341264872, 1341264869, 1341264806, 1341264803, 1341264800, 1341264797, 1341264793, 1341264763, 1341264749, 1341264743, 1341264736, 1341264664, 1341264661, 1341264656, 1341264651]} ##### 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.013647317886352539 #### 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 Mar 6 17:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21118079) 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 : 21118079 get user id for portfolio 21118079 get sub ptf for main ptf 21118079, type 3726 and hashtags ['metal', 'environnement', 'mal_croppe', 'kraft', 'papier', 'plastique', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'autre_refus'] 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`=21118079 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','kraft','papier','plastique','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus')) 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`=21118079 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','kraft','papier','plastique','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21118079, 'sub_port_id': 21118095, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723189, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'mal_croppe': {'main_port_id': 21118079, 'sub_port_id': 21118096, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723190, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'flou': {'main_port_id': 21118079, 'sub_port_id': 21118097, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723191, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'plastique': {'main_port_id': 21118079, 'sub_port_id': 21118098, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723192, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'papier': {'main_port_id': 21118079, 'sub_port_id': 21118099, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723193, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'autre_refus': {'main_port_id': 21118079, 'sub_port_id': 21118100, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723194, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'Carton_brun': {'main_port_id': 21118079, 'sub_port_id': 21118101, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723195, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'cartonnette': {'main_port_id': 21118079, 'sub_port_id': 21118102, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723196, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'environnement': {'main_port_id': 21118079, 'sub_port_id': 21118103, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723197, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'kraft': {'main_port_id': 21118079, 'sub_port_id': 21118104, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723198, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'metal': {'main_port_id': 21118079, 'sub_port_id': 21118105, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723199, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}, 'Carton_gris': {'main_port_id': 21118079, 'sub_port_id': 21118106, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723200, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21118095 , 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=21118079 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 (21118095) result : ((1341265295,), (1341265296,), (1341265479,), (1341265480,), (1341265942,), (1341265943,), (1341265945,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118096 , 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=21118079 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 (21118096) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118097 , 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=21118079 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 (21118097) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118098 , 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=21118079 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 (21118098) result : ((1341265253,), (1341265354,), (1341265355,), (1341265403,), (1341265404,), (1341265405,), (1341265406,), (1341265407,), (1341265959,), (1341265960,), (1341266178,), (1341266179,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118099 , 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=21118079 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 (21118099) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118100 , 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=21118079 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 (21118100) result : ((1341265246,), (1341265267,), (1341265268,), (1341265270,), (1341265271,), (1341265272,), (1341265273,), (1341265274,), (1341265275,), (1341265276,), (1341265277,), (1341265278,), (1341265279,), (1341265301,), (1341265302,), (1341265303,), (1341265304,), (1341265305,), (1341265309,), (1341265310,), (1341265313,), (1341265315,), (1341265318,), (1341265320,), (1341265323,), (1341265393,), (1341265394,), (1341265395,), (1341265491,), (1341265492,), (1341265493,), (1341265494,), (1341265495,), (1341265948,), (1341265949,), (1341265950,), (1341266142,), (1341266144,), (1341266145,), (1341266146,), (1341266148,), (1341266149,), (1341266150,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118101 , 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=21118079 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 (21118101) result : ((1341265252,), (1341265285,), (1341265324,), (1341265325,), (1341265326,), (1341265396,), (1341265397,), (1341265398,), (1341265504,), (1341265505,), (1341265506,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118102 , 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=21118079 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 (21118102) result : ((1341265283,), (1341265311,), (1341265312,), (1341265352,), (1341265500,), (1341265501,), (1341265502,), (1341265955,), (1341265956,), (1341265957,), (1341266175,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118103 , 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=21118079 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 (21118103) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118104 , 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=21118079 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 (21118104) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118105 , 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=21118079 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 (21118105) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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 21118106 , 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=21118079 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 (21118106) result : ((1341265282,), (1341265307,), (1341265341,), (1341265342,), (1341265343,), (1341265344,), (1341265346,), (1341265347,), (1341265499,), (1341265953,), (1341265954,), (1341266166,), (1341266167,), (1341266168,), (1341266169,), (1341266170,), (1341266171,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21118079) result : ((1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,)) 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 (1341264800) 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`=21118079 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','kraft','papier','plastique','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus')) 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`=21118079 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','kraft','papier','plastique','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21118079, 'sub_port_id': 21118107, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723201, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'mal_croppe': {'main_port_id': 21118079, 'sub_port_id': 21118108, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723202, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'flou': {'main_port_id': 21118079, 'sub_port_id': 21118109, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723203, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'plastique': {'main_port_id': 21118079, 'sub_port_id': 21118110, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723204, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'papier': {'main_port_id': 21118079, 'sub_port_id': 21118111, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723205, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'autre_refus': {'main_port_id': 21118079, 'sub_port_id': 21118112, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723206, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'Carton_brun': {'main_port_id': 21118079, 'sub_port_id': 21118114, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723207, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'cartonnette': {'main_port_id': 21118079, 'sub_port_id': 21118115, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723208, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'environnement': {'main_port_id': 21118079, 'sub_port_id': 21118116, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723209, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'kraft': {'main_port_id': 21118079, 'sub_port_id': 21118117, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723210, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'metal': {'main_port_id': 21118079, 'sub_port_id': 21118118, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723211, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}, 'Carton_gris': {'main_port_id': 21118079, 'sub_port_id': 21118119, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13723212, 'last_updated_at': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 17, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 17, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118107,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118095 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118108,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118096 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118109,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118097 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118110,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118098 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118111,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118099 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118112,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118100 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118114,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118101 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118115,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118102 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118116,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118103 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118117,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118104 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118105 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21118119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21118106 lien utilise dans velours : https://www.fotonower.com/velours/21118107,21118108,21118109,21118110,21118111,21118112,21118114,21118115,21118116,21118117,21118118,21118119?tags=Teint_Dans_La_Masse,mal_croppe,flou,plastique,papier,autre_refus,Carton_brun,cartonnette,environnement,kraft,metal,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21118079]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] map_info['map_portfolio_photo'] : {21118079: [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072, 1341265720, 1341265669, 1341265606, 1341265565, 1341265548, 1341265540, 1341265529, 1341265523, 1341265511, 1341265507, 1341265464, 1341265459, 1341265454, 1341265446, 1341265371, 1341265368, 1341265362, 1341265353, 1341265340, 1341265288, 1341265281, 1341265259, 1341265249, 1341265243, 1341265240, 1341265236, 1341265234, 1341265174, 1341265169, 1341265165, 1341265160, 1341265155, 1341265144, 1341265137, 1341265132, 1341265124, 1341265120, 1341265116, 1341265113, 1341265110, 1341265107, 1341265106, 1341265102, 1341265099, 1341265025, 1341265019, 1341265014, 1341264948, 1341264942, 1341264935, 1341264928, 1341264923, 1341264903, 1341264902, 1341264897, 1341264895, 1341264889, 1341264886, 1341264882, 1341264881, 1341264876, 1341264874, 1341264872, 1341264869, 1341264806, 1341264803, 1341264800, 1341264797, 1341264793, 1341264763, 1341264749, 1341264743, 1341264736, 1341264664, 1341264661, 1341264656, 1341264651]} final : False mtd_id 4302 list_pids : [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] Looping around the photos to save general results len do output : 1 /21118079. 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, '2643173') ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21118079', "{'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106}", None, None, None, None, '2643173'), ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173')] time used for this insertion : 0.015727996826171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.506364107131958 time spend to save output : 0.016029834747314453 total time spend for step 1 : 0.5223939418792725 step2:final Thu Mar 6 17:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21118079) 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 21118079 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341264664,1341264661,1341264656,1341264651,1341264763,1341264749,1341264743,1341264736,1341264806,1341264803,1341264800,1341264797,1341264793,1341264903,1341264902,1341264897,1341264895,1341264889,1341264886,1341264881,1341264882,1341264876,1341264874,1341264872,1341264869,1341264948,1341264942,1341264935,1341264928,1341264923,1341265025,1341265019,1341265014,1341265144,1341265132,1341265124,1341265137,1341265116,1341265120,1341265110,1341265113,1341265107,1341265106,1341265099,1341265102,1341265174,1341265169,1341265165,1341265160,1341265155,1341265288,1341265259,1341265249,1341265281,1341265240,1341265243,1341265236,1341265234,1341265371,1341265368,1341265362,1341265353,1341265340,1341265464,1341265459,1341265454,1341265446,1341265548,1341265540,1341265529,1341265523,1341265511,1341265507,1341265720,1341265669,1341265606,1341265565,1341266158,1341266123,1341266116,1341266105,1341266072,1341266221,1341266217,1341266206,1341266201,1341266196,1341266190); 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([21118079]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} new output for save of step final : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] map_info['map_portfolio_photo'] : {21118079: [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072, 1341265720, 1341265669, 1341265606, 1341265565, 1341265548, 1341265540, 1341265529, 1341265523, 1341265511, 1341265507, 1341265464, 1341265459, 1341265454, 1341265446, 1341265371, 1341265368, 1341265362, 1341265353, 1341265340, 1341265288, 1341265281, 1341265259, 1341265249, 1341265243, 1341265240, 1341265236, 1341265234, 1341265174, 1341265169, 1341265165, 1341265160, 1341265155, 1341265144, 1341265137, 1341265132, 1341265124, 1341265120, 1341265116, 1341265113, 1341265110, 1341265107, 1341265106, 1341265102, 1341265099, 1341265025, 1341265019, 1341265014, 1341264948, 1341264942, 1341264935, 1341264928, 1341264923, 1341264903, 1341264902, 1341264897, 1341264895, 1341264889, 1341264886, 1341264882, 1341264881, 1341264876, 1341264874, 1341264872, 1341264869, 1341264806, 1341264803, 1341264800, 1341264797, 1341264793, 1341264763, 1341264749, 1341264743, 1341264736, 1341264664, 1341264661, 1341264656, 1341264651]} final : False mtd_id 4302 list_pids : [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] Looping around the photos to save general results len do output : 11 /1341266221.Didn't retrieve data . /1341266217.Didn't retrieve data . /1341266206.Didn't retrieve data . /1341266201.Didn't retrieve data . /1341266196.Didn't retrieve data . /1341266190.Didn't retrieve data . /1341266158.Didn't retrieve data . /1341266123.Didn't retrieve data . /1341266116.Didn't retrieve data . /1341266105.Didn't retrieve data . /1341266072.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, '2643173') ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21118079', '1341266221', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266217', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266206', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266201', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266196', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266190', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266158', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266123', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266116', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266105', '0.05806036861716257', None, None, None, None, '2643173'), ('4302', '21118079', '1341266072', '0.05806036861716257', None, None, None, None, '2643173')] time used for this insertion : 0.018336057662963867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07705378532409668 time spend to save output : 0.018985986709594727 total time spend for step 2 : 0.0960397720336914 step3:velours_tree Thu Mar 6 17:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21118079: [{'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106}]} input_args_next_step : {21118079: ()} output_args : {21118079: [{'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106}]} args : 21118079 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 : ({'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21118079) 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([21118079]) 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.3072664737701416 time spend to save output : 5.555152893066406e-05 total time spend for step 3 : 0.30732202529907227 step4:send_mail_cod Thu Mar 6 17:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} input_args_next_step : {1341266221: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266221 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266217 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266206 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266201 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266196 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266190 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266158 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266123 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266116 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266105 depend.output_id : 0 input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ()} output_args : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',)} args : 1341266072 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 : {21118079: [{'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106}]} input_args_next_step : {1341266221: ('0.05806036861716257',), 1341266217: ('0.05806036861716257',), 1341266206: ('0.05806036861716257',), 1341266201: ('0.05806036861716257',), 1341266196: ('0.05806036861716257',), 1341266190: ('0.05806036861716257',), 1341266158: ('0.05806036861716257',), 1341266123: ('0.05806036861716257',), 1341266116: ('0.05806036861716257',), 1341266105: ('0.05806036861716257',), 1341266072: ('0.05806036861716257',), 21118079: ()} output_args : {21118079: [{'Teint_Dans_La_Masse': 21118095, 'mal_croppe': 21118096, 'flou': 21118097, 'plastique': 21118098, 'papier': 21118099, 'autre_refus': 21118100, 'Carton_brun': 21118101, 'cartonnette': 21118102, 'environnement': 21118103, 'kraft': 21118104, 'metal': 21118105, 'Carton_gris': 21118106}]} args : 21118079 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.05806036861716257',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21118079) 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 (1341266221,1341266217,1341266206,1341266201,1341266196,1341266190,1341266158,1341266123,1341266116,1341266105,1341266072) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341266072 begin to download photo : 1341266123 begin to download photo : 1341266196 begin to download photo : 1341266217 download finish for photo 1341266196 begin to download photo : 1341266201 download finish for photo 1341266072 begin to download photo : 1341266105 download finish for photo 1341266217 begin to download photo : 1341266221 download finish for photo 1341266221 download finish for photo 1341266201 begin to download photo : 1341266206 download finish for photo 1341266105 begin to download photo : 1341266116 download finish for photo 1341266206 download finish for photo 1341266116 download finish for photo 1341266123 begin to download photo : 1341266158 download finish for photo 1341266158 begin to download photo : 1341266190 download finish for photo 1341266190 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette211180961741277822/ imagette211180971741277822/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21118079_06-03-2025_17_17_02.pdf 21118096 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=21118096 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211180961741277822 21118097 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=21118097 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211180971741277822 21118098 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=21118098 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265253: '1741277365_54549_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185492_0.png', 1341265354: '1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185773_0.png', 1341265355: '1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185790_0.png', 1341265403: '1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186196_0.png', 1341265404: '1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186194_0.png', 1341265405: '1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186389_0.png', 1341265406: '1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186387_0.png', 1341265407: '1741277412_824500_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185492_0.png', 1341265959: '1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190150_0.png', 1341265960: '1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190156_0.png', 1341266178: '1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185773_0.png', 1341266179: '1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185790_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e9132616555e333a5e333b13119e3cfc_78972009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/12211a1f07c4f9cf196570cc49ffd6f7_98235819.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/12211a1f07c4f9cf196570cc49ffd6f7_76714145.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/92b038534cccb4ea7d181ef9656b13b9_92240296.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/3169b2db3e2cdfee1b3309dfb12cd5d1_25527803.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/92b038534cccb4ea7d181ef9656b13b9_43860991.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/3169b2db3e2cdfee1b3309dfb12cd5d1_59684667.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e9132616555e333a5e333b13119e3cfc_77410223.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7fb78384d66d7015efce5c79acd5dc25_64431482.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a848b03aa698642beafb4c9bbf5b68c7_62038481.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/12211a1f07c4f9cf196570cc49ffd6f7_9535022.png change filename to text .imagette211180981741277822/ imagette211180981741277822/1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185773_0.png.png imagette211180981741277822/1741277365_54549_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185492_0.png.png imagette211180981741277822/1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186389_0.png.png imagette211180981741277822/1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186196_0.png.png imagette211180981741277822/1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185790_0.png.png imagette211180981741277822/1741277412_824500_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185492_0.png.png imagette211180981741277822/1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185790_0.png.png imagette211180981741277822/1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190156_0.png.png imagette211180981741277822/1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185773_0.png.png imagette211180981741277822/1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186194_0.png.png imagette211180981741277822/1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186387_0.png.png imagette211180981741277822/1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190150_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/12211a1f07c4f9cf196570cc49ffd6f7_11961361.png imagette211180981741277822 21118100 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=21118100 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265495: '1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185763_0.png', 1341265318: '1741277366_2860_1341264874_cd1964c24bf5349b3e4e922d77885cac_rle_crop_3696185748_0.png', 1341265320: '1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185777_0.png', 1341265323: '1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185794_0.png', 1341265393: '1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186185_0.png', 1341265394: '1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186378_0.png', 1341265395: '1741277412_824500_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185491_0.png', 1341265491: '1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185636_0.png', 1341265492: '1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185673_0.png', 1341265493: '1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185682_0.png', 1341265494: '1741277431_824845_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185733_0.png', 1341265315: '1741277366_2860_1341264876_670b0cb764fe1357b1c8f00bf1c3690a_rle_crop_3696185715_0.png', 1341265948: '1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190147_0.png', 1341265949: '1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190159_0.png', 1341265950: '1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190178_0.png', 1341266142: '1741277473_825525_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185559_0.png', 1341266144: '1741277473_825525_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185667_0.png', 1341266145: '1741277473_825525_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185702_0.png', 1341266146: '1741277473_825525_1341264876_670b0cb764fe1357b1c8f00bf1c3690a_rle_crop_3696185715_0.png', 1341266148: '1741277473_825525_1341264874_cd1964c24bf5349b3e4e922d77885cac_rle_crop_3696185748_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/742f834b52f9881c2a08d73aa336a609_61378924.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b056905cf94fe5a58ad1c7532eb52be7_18552089.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d4426350e1112311c5f863238c0e8539_94185763.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d4426350e1112311c5f863238c0e8539_79200331.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6b502c2929c687861e15a3b4eabbe53f_57903030.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6b502c2929c687861e15a3b4eabbe53f_33069562.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/9059b10342e0e2a6e63eb1875ed85ffa_37328517.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/5548ed3c7f9e6e6c321f60339bdf2e3b_78297478.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/15e10945bc137ffa7900c9768a5c1814_74384687.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/644804b06cdb96a5bd1e97d4f539ba1a_73938508.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7eb218452b02087f860d7dacd329f9c5_82252196.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b056905cf94fe5a58ad1c7532eb52be7_22744999.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/1152ffbb9953e4839d28cfd62bcde7ea_86048818.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7617de852da69dd780afc63e4351bead_85524828.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/5cc5598cdfeadb8b62d2efb49a461e71_26229169.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/324c9a1f44fef6f09c56e5d7dc4bbabc_24196431.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/5e284648bf321fcbf41f8272fb35ac83_11873241.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/5e284648bf321fcbf41f8272fb35ac83_57651102.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b056905cf94fe5a58ad1c7532eb52be7_13538903.png change filename to text .imagette211181001741277826/ imagette211181001741277826/1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190159_0.png.png imagette211181001741277826/1741277473_825525_1341264876_670b0cb764fe1357b1c8f00bf1c3690a_rle_crop_3696185715_0.png.png imagette211181001741277826/1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185673_0.png.png imagette211181001741277826/1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185777_0.png.png imagette211181001741277826/1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186378_0.png.png imagette211181001741277826/1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185636_0.png.png imagette211181001741277826/1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185682_0.png.png imagette211181001741277826/1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186185_0.png.png imagette211181001741277826/1741277366_2860_1341264874_cd1964c24bf5349b3e4e922d77885cac_rle_crop_3696185748_0.png.png imagette211181001741277826/1741277473_825525_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185559_0.png.png imagette211181001741277826/1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185763_0.png.png imagette211181001741277826/1741277473_825525_1341264874_cd1964c24bf5349b3e4e922d77885cac_rle_crop_3696185748_0.png.png imagette211181001741277826/1741277473_825525_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185667_0.png.png imagette211181001741277826/1741277431_824845_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185733_0.png.png imagette211181001741277826/1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185794_0.png.png imagette211181001741277826/1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190178_0.png.png imagette211181001741277826/1741277412_824500_1341265014_bebf9f534094d0c4fcb9539fe33706ac_rle_crop_3696185491_0.png.png imagette211181001741277826/1741277473_825525_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185702_0.png.png imagette211181001741277826/1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190147_0.png.png imagette211181001741277826/1741277366_2860_1341264876_670b0cb764fe1357b1c8f00bf1c3690a_rle_crop_3696185715_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b056905cf94fe5a58ad1c7532eb52be7_97766980.png imagette211181001741277826 21118102 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=21118102 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265283: '1741277351_823633_1341264800_82c7984b13b63c6711008b69aa01bd32_rle_crop_3696185499_0.png', 1341265311: '1741277371_823888_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185679_0.png', 1341265312: '1741277371_823888_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185755_0.png', 1341265352: '1741277366_2860_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185551_0.png', 1341265500: '1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696189362_0.png', 1341265501: '1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_bib_crop_3696185679_0.jpg', 1341265502: '1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185755_0.png', 1341265955: '1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190148_0.png', 1341265956: '1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190176_0.png', 1341265957: '1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190171_0.png', 1341266175: '1741277473_825525_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/46a5a8def538fe2d4b3e323741bbf10c_60850268.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/8f203b3c8250af05cfb19048c5a4327d_70393945.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/14e428750126e956dc9b32eb5eb52465_34760492.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a24e79268784aed620061ee7498953da_26451358.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d0f513806556ca38665c94736ff8d5d5_61375822.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6e6d095727630e1d4c252cee00f79164_91654100.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/14e428750126e956dc9b32eb5eb52465_19568453.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b8921520f23a68f117ae47f2e1569498_87110867.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/da42e3f85e5e91bf3ade9dea85f68c3c_34911990.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/5a24abbccef4ad861ab98db3c43ea113_49502577.png change filename to text .imagette211181021741277827/ imagette211181021741277827/1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_bib_crop_3696185679_0.jpg.jpg imagette211181021741277827/1741277366_2860_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185551_0.png.png imagette211181021741277827/1741277351_823633_1341264800_82c7984b13b63c6711008b69aa01bd32_rle_crop_3696185499_0.png.png imagette211181021741277827/1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190148_0.png.png imagette211181021741277827/1741277371_823888_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185755_0.png.png imagette211181021741277827/1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696189362_0.png.png imagette211181021741277827/1741277473_825525_1341264948_b86a93d2ef5668758e726e8836a48409_rle_crop_3696185551_0.png.png imagette211181021741277827/1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190171_0.png.png imagette211181021741277827/1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185755_0.png.png imagette211181021741277827/1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190176_0.png.png imagette211181021741277827/1741277371_823888_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185679_0.png.png imagette211181041741277828/ imagette211181051741277828/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a24e79268784aed620061ee7498953da_2204567.png imagette211181021741277827 21118104 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=21118104 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211181041741277828 21118105 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=21118105 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211181051741277828 21118095 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=21118095 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265295: '1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185629_0.png', 1341265296: '1741277371_823888_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185728_0.png', 1341265479: '1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185629_0.png', 1341265480: '1741277431_824845_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185728_0.png', 1341265942: '1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190145_0.png', 1341265943: '1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190179_0.png', 1341265945: '1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190180_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b024d157fa6c73e21ad207df2ae25a4e_72438842.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/cadf56f80fa6e5b4b8d501e93ecfaf1d_94555611.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b024d157fa6c73e21ad207df2ae25a4e_52374546.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/cadf56f80fa6e5b4b8d501e93ecfaf1d_85258035.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6c6375b6afb729e7b6af58d6af6ff6a1_9474205.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/68ba61ea34a60bec51f03c7fbe88cb1c_10023512.png change filename to text .imagette211180951741277828/ imagette211180951741277828/1741277371_823888_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185728_0.png.png imagette211180951741277828/1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185629_0.png.png imagette211180951741277828/1741277431_824845_1341264928_635de5b20426dac1d861001469c5a1c3_rle_crop_3696185728_0.png.png imagette211180951741277828/1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185629_0.png.png imagette211180951741277828/1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190180_0.png.png imagette211180951741277828/1741277495_825737_1341264736_2adbae5cdc9d0a9ad507349327345b8e_rle_crop_3696190179_0.png.png imagette211180951741277828/1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190145_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ab53af645d976fcb87f422d193ce4979_78529613.png imagette211180951741277828 21118101 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=21118101 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265252: '1741277365_54549_1341265019_741855fdc037aedae3300ebafa2a05b7_rle_crop_3696185469_0.png', 1341265285: '1741277351_823633_1341264797_1be30336d0056762056a9f6a2f9fa669_rle_crop_3696185518_0.png', 1341265324: '1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185630_0.png', 1341265325: '1741277371_823888_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185675_0.png', 1341265326: '1741277371_823888_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185758_0.png', 1341265396: '1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186187_0.png', 1341265397: '1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186380_0.png', 1341265398: '1741277412_824500_1341265019_741855fdc037aedae3300ebafa2a05b7_rle_crop_3696185469_0.png', 1341265504: '1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185630_0.png', 1341265505: '1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185675_0.png', 1341265506: '1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185758_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b1d6b7a93914d6e488244682d9978d49_42624733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a24315f2b290d782fe938f9cced2e375_23939415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/543162d1d5f9383680a86dd02a639cec_82183281.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/04db5544c39ce732d47b93e26af417ad_47299892.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/865a8731d6590a9c69489b9bbd1513a2_83413990.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bb25c911d60f5be960d44dc323e1f09c_56972861.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bb25c911d60f5be960d44dc323e1f09c_23248205.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b1d6b7a93914d6e488244682d9978d49_53835355.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/543162d1d5f9383680a86dd02a639cec_65281899.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/04db5544c39ce732d47b93e26af417ad_8814674.png change filename to text .imagette211181011741277828/ imagette211181011741277828/1741277351_823633_1341264797_1be30336d0056762056a9f6a2f9fa669_rle_crop_3696185518_0.png.png imagette211181011741277828/1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185630_0.png.png imagette211181011741277828/1741277371_823888_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185675_0.png.png imagette211181011741277828/1741277431_824845_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185758_0.png.png imagette211181011741277828/1741277365_54549_1341265019_741855fdc037aedae3300ebafa2a05b7_rle_crop_3696185469_0.png.png imagette211181011741277828/1741277412_824500_1341265144_2f359985b428e46ee26129b9724f5dd1_rle_crop_3696186187_0.png.png imagette211181011741277828/1741277371_823888_1341264923_a55ec1321aa832456c9cdcd40e5b106e_rle_crop_3696185758_0.png.png imagette211181011741277828/1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185630_0.png.png imagette211181011741277828/1741277412_824500_1341265132_3dbd5daa211aceb3e6ef1c0f19f8f5de_rle_crop_3696186380_0.png.png imagette211181011741277828/1741277431_824845_1341264935_f1fdd588364b85c8a5841e9b10a37ac3_rle_crop_3696185675_0.png.png imagette211181011741277828/1741277412_824500_1341265019_741855fdc037aedae3300ebafa2a05b7_rle_crop_3696185469_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/865a8731d6590a9c69489b9bbd1513a2_40350198.png imagette211181011741277828 21118106 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=21118106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341265499: '1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185623_0.png', 1341266171: '1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185793_0.png', 1341266170: '1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185787_0.png', 1341266169: '1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185776_0.png', 1341266168: '1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185770_0.png', 1341266167: '1741277473_825525_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185694_0.png', 1341266166: '1741277473_825525_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185659_0.png', 1341265954: '1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190155_0.png', 1341265953: '1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190143_0.png', 1341265282: '1741277351_823633_1341264797_1be30336d0056762056a9f6a2f9fa669_rle_crop_3696185523_0.png', 1341265347: '1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185793_0.png', 1341265346: '1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185787_0.png', 1341265344: '1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185776_0.png', 1341265343: '1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185770_0.png', 1341265342: '1741277366_2860_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185694_0.png', 1341265341: '1741277366_2860_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185659_0.png', 1341265307: '1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185623_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/371cbadee52e94941fe9318640947dd6_19328028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/00c1578182e707b18aec51aabcb9ca10_63208042.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/85d582655a10d11954da64b5bd8c7715_3665924.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/00c1578182e707b18aec51aabcb9ca10_40175489.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/85d582655a10d11954da64b5bd8c7715_62658034.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/27e3fd8d104766ee6070035903f4ce46_66626580.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/27e3fd8d104766ee6070035903f4ce46_91191835.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e28253413d40ac620a322dbc31c80d0d_21653618.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/08381ef75d098de1f8991f2a2056c0d3_34965522.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/55672671dc385e3d8c0e57ef6fa86aed_78477621.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/00c1578182e707b18aec51aabcb9ca10_58078311.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/85d582655a10d11954da64b5bd8c7715_53830985.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/00c1578182e707b18aec51aabcb9ca10_66783006.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/85d582655a10d11954da64b5bd8c7715_52026983.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/27e3fd8d104766ee6070035903f4ce46_86273440.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/27e3fd8d104766ee6070035903f4ce46_55715814.png change filename to text .imagette211181061741277828/ imagette211181061741277828/1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185776_0.png.png imagette211181061741277828/1741277473_825525_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185694_0.png.png imagette211181061741277828/1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185787_0.png.png imagette211181061741277828/1741277371_823888_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185623_0.png.png imagette211181061741277828/1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185787_0.png.png imagette211181061741277828/1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185770_0.png.png imagette211181061741277828/1741277473_825525_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185659_0.png.png imagette211181061741277828/1741277431_824845_1341264942_85a70772508137af3ad1e1015a2eed45_rle_crop_3696185623_0.png.png imagette211181061741277828/1741277495_825737_1341264749_92201f150be91dd35648d077844412fa_rle_crop_3696190143_0.png.png imagette211181061741277828/1741277473_825525_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185793_0.png.png imagette211181061741277828/1741277366_2860_1341264881_fb672aa251cebf8f090c0ffeb6124804_rle_crop_3696185694_0.png.png imagette211181061741277828/1741277351_823633_1341264797_1be30336d0056762056a9f6a2f9fa669_rle_crop_3696185523_0.png.png imagette211181061741277828/1741277473_825525_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185770_0.png.png imagette211181061741277828/1741277366_2860_1341264872_33cb8577f40b5aaeea0f6296d042e48b_rle_crop_3696185776_0.png.png imagette211181061741277828/1741277366_2860_1341264882_56b3f14cdb4abff2cddceccba338f408_rle_crop_3696185659_0.png.png imagette211181061741277828/1741277366_2860_1341264869_9bfd7ba48b718b23d5f172a45603ec02_rle_crop_3696185793_0.png.png imagette211181061741277828/1741277495_825737_1341264743_989c6182f2dfac61810a79f78a159eed_rle_crop_3696190155_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/371cbadee52e94941fe9318640947dd6_47681901.png imagette211181061741277828 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21118079 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21118107,21118108,21118109,21118110,21118111,21118112,21118114,21118115,21118116,21118117,21118118,21118119?tags=Teint_Dans_La_Masse,mal_croppe,flou,plastique,papier,autre_refus,Carton_brun,cartonnette,environnement,kraft,metal,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1341266221] : ('0.05806036861716257',) no score found for photo 1341266221 We are sending mail with results at report@fotonower.com args[1341266217] : ('0.05806036861716257',) no score found for photo 1341266217 We are sending mail with results at report@fotonower.com args[1341266206] : ('0.05806036861716257',) no score found for photo 1341266206 We are sending mail with results at report@fotonower.com args[1341266201] : ('0.05806036861716257',) no score found for photo 1341266201 We are sending mail with results at report@fotonower.com args[1341266196] : ('0.05806036861716257',) no score found for photo 1341266196 We are sending mail with results at report@fotonower.com args[1341266190] : ('0.05806036861716257',) no score found for photo 1341266190 We are sending mail with results at report@fotonower.com args[1341266158] : ('0.05806036861716257',) no score found for photo 1341266158 We are sending mail with results at report@fotonower.com args[1341266123] : ('0.05806036861716257',) no score found for photo 1341266123 We are sending mail with results at report@fotonower.com args[1341266116] : ('0.05806036861716257',) no score found for photo 1341266116 We are sending mail with results at report@fotonower.com args[1341266105] : ('0.05806036861716257',) no score found for photo 1341266105 We are sending mail with results at report@fotonower.com args[1341266072] : ('0.05806036861716257',) no score found for photo 1341266072 We are sending mail with results at report@fotonower.com refus_total : 0.05806036861716257 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=21118079 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_P21118079_06-03-2025_17_17_02.pdf results_Auto_P21118079_06-03-2025_17_17_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118079_06-03-2025_17_17_02.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','21118079','results_Auto_P21118079_06-03-2025_17_17_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118079_06-03-2025_17_17_02.pdf','pdf','','0.24','0.05806036861716257') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21118079]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] map_info['map_portfolio_photo'] : {21118079: [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072, 1341265720, 1341265669, 1341265606, 1341265565, 1341265548, 1341265540, 1341265529, 1341265523, 1341265511, 1341265507, 1341265464, 1341265459, 1341265454, 1341265446, 1341265371, 1341265368, 1341265362, 1341265353, 1341265340, 1341265288, 1341265281, 1341265259, 1341265249, 1341265243, 1341265240, 1341265236, 1341265234, 1341265174, 1341265169, 1341265165, 1341265160, 1341265155, 1341265144, 1341265137, 1341265132, 1341265124, 1341265120, 1341265116, 1341265113, 1341265110, 1341265107, 1341265106, 1341265102, 1341265099, 1341265025, 1341265019, 1341265014, 1341264948, 1341264942, 1341264935, 1341264928, 1341264923, 1341264903, 1341264902, 1341264897, 1341264895, 1341264889, 1341264886, 1341264882, 1341264881, 1341264876, 1341264874, 1341264872, 1341264869, 1341264806, 1341264803, 1341264800, 1341264797, 1341264793, 1341264763, 1341264749, 1341264743, 1341264736, 1341264664, 1341264661, 1341264656, 1341264651]} final : False mtd_id 4302 list_pids : [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] 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, '2643173') ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21118079', '1341266221', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173')] time used for this insertion : 0.013672828674316406 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.192797899246216 time spend to save output : 0.01393270492553711 total time spend for step 4 : 12.206730604171753 step5:split_time_score Thu Mar 6 17:17: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 : ['21118079'] 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 : [('21118079',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21118079) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341266217: {'path': 'temp/1741277818_2533810_1341266217_980e00358041d68a9ab9c23f5495dd33.jpg', 'extension': 'jpg'}, 1341266221: {'path': 'temp/1741277818_2533810_1341266221_7e3903bdc82fe15fac62f5da9bd1535d.jpg', 'extension': 'jpg'}, 1341266196: {'path': 'temp/1741277818_2533810_1341266196_582e9ca7cb9d9edcbc106e68ccbed42a.jpg', 'extension': 'jpg'}, 1341266201: {'path': 'temp/1741277818_2533810_1341266201_78ff1840bf86857107723821f459a965.jpg', 'extension': 'jpg'}, 1341266206: {'path': 'temp/1741277818_2533810_1341266206_44c887f20361bc40eb32aaed366f3cb0.jpg', 'extension': 'jpg'}, 1341266072: {'path': 'temp/1741277818_2533810_1341266072_b97e5796bf36dfa4786706dd664548b1.jpg', 'extension': 'jpg'}, 1341266105: {'path': 'temp/1741277818_2533810_1341266105_8aa2bd70529890bad8e7a6e160221f2c.jpg', 'extension': 'jpg'}, 1341266116: {'path': 'temp/1741277818_2533810_1341266116_01d0bcb8e5227217b7df2444ad736a21.jpg', 'extension': 'jpg'}, 1341266123: {'path': 'temp/1741277818_2533810_1341266123_6320b2ab43463f1be788a1f0725f8152.jpg', 'extension': 'jpg'}, 1341266158: {'path': 'temp/1741277818_2533810_1341266158_dcd6fe9eda4f0968aaed807fd0555809.jpg', 'extension': 'jpg'}, 1341266190: {'path': 'temp/1741277818_2533810_1341266190_a37a4a06fbfda12adb24b2c69fc8e24c.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 = 21118079; (('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 = 21118079 group by h (('17', 88),) 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=21118079 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 (21118079) 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 (21118079) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06032025 21118079 Nombre de photos uploadées : 88 / 23040 (0%) 06032025 21118079 Nombre de photos taguées (types de déchets): 0 / 88 (0%) 06032025 21118079 Nombre de photos taguées (volume) : 0 / 88 (0%) [{'photo_id': 1341264664, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/1f63cea140cf8b9ca34665fff4807e5e.jpg', 'username': None, 'uploaded_at': 1741276907, 'text': 'image_06032025_17_00_14_10201.jpg'}, {'photo_id': 1341264661, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/70a785416f46e7e26f5e58c81d1bc0fd.jpg', 'username': None, 'uploaded_at': 1741276907, 'text': 'image_06032025_17_00_24_10140.jpg'}, {'photo_id': 1341264656, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a33cfdffe303e163af4b35911ce9880e.jpg', 'username': None, 'uploaded_at': 1741276907, 'text': 'image_06032025_17_00_34_10136.jpg'}, {'photo_id': 1341264651, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/44d8eb7a6066fe0658a57bd94e81d49f.jpg', 'username': None, 'uploaded_at': 1741276907, 'text': 'image_06032025_17_00_44_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ???????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003938913345336914 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21118079, '2025-03-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1643118,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021960735321044922 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= 1643118 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1643118, 'dashboard_run_id': 1652475, 'mtr_portfolio_id': 21118295, 'dashboard_result_id': 9270943, '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_P21118295_06-03-2025_17_17_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118347, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1652475, 'mtr_portfolio_id': 21118076, 'dashboard_result_id': 9270944, '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_P21118076_06-03-2025_17_09_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118133, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1652475, 'mtr_portfolio_id': 21118079, 'dashboard_result_id': 9270945, '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_P21118079_06-03-2025_17_14_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118106, '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 = 21118295 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21118295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21118295 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21118295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21118295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21118295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118295_06-03-2025_17_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21118295 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_P21118295_06-03-2025_17_17_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118347, 'pht': 3726}}" where mtr_portfolio_id = 21118295 and dashboard_run_id = 1652475 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 = 21118076 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21118076 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21118076 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21118076 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21118076 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21118076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118076_06-03-2025_17_09_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21118076 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_P21118076_06-03-2025_17_09_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118123, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118133, 'pht': 3726}}" where mtr_portfolio_id = 21118076 and dashboard_run_id = 1652475 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 = 21118079 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': 2643173, 'mtr_portfolio_id': 21118079, 'created_at': datetime.datetime(2025, 3, 6, 17, 16, 58), 'result': '0.05806036861716257', 'result_long': None, 'result_double': None}] Qualite : 0.05806036861716257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21118079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118079_06-03-2025_17_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21118079 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_P21118079_06-03-2025_17_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118106, 'pht': 3726}}" where mtr_portfolio_id = 21118079 and dashboard_run_id = 1652475 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`=21118079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9270945, 0.05806036861716257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21118079_06-03-2025_17_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21118095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21118096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21118097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21118098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21118099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21118100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21118101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21118102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21118103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21118104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21118105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21118106, '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 (21118295,21118076,21118079) result : ((1341264473,), (1341264474,), (1341264476,), (1341264478,), (1341264480,), (1341264482,), (1341264543,), (1341264550,), (1341264558,), (1341264564,), (1341264569,), (1341264574,), (1341264600,), (1341264611,), (1341264618,), (1341264628,), (1341264634,), (1341264638,), (1341264668,), (1341264673,), (1341264697,), (1341264704,), (1341264714,), (1341264718,), (1341264722,), (1341264728,), (1341264771,), (1341264779,), (1341264809,), (1341264833,), (1341264839,), (1341264843,), (1341264846,), (1341264851,), (1341264857,), (1341264952,), (1341264966,), (1341264974,), (1341264983,), (1341264989,), (1341264996,), (1341265002,), (1341265030,), (1341265034,), (1341265039,), (1341265058,), (1341265063,), (1341264651,), (1341264656,), (1341264661,), (1341264664,), (1341264736,), (1341264743,), (1341264749,), (1341264763,), (1341264793,), (1341264797,), (1341264800,), (1341264803,), (1341264806,), (1341264869,), (1341264872,), (1341264874,), (1341264876,), (1341264881,), (1341264882,), (1341264886,), (1341264889,), (1341264895,), (1341264897,), (1341264902,), (1341264903,), (1341264923,), (1341264928,), (1341264935,), (1341264942,), (1341264948,), (1341265014,), (1341265019,), (1341265025,), (1341265099,), (1341265102,), (1341265106,), (1341265107,), (1341265110,), (1341265113,), (1341265116,), (1341265120,), (1341265124,), (1341265132,), (1341265137,), (1341265144,), (1341265155,), (1341265160,), (1341265165,), (1341265169,), (1341265174,), (1341265234,), (1341265236,), (1341265240,), (1341265243,), (1341265249,), (1341265259,), (1341265281,), (1341265288,), (1341265340,), (1341265353,), (1341265362,), (1341265368,), (1341265371,), (1341265446,), (1341265454,), (1341265459,), (1341265464,), (1341265507,), (1341265511,), (1341265523,), (1341265529,), (1341265540,), (1341265548,), (1341265565,), (1341265606,), (1341265669,), (1341265720,), (1341266072,), (1341266105,), (1341266116,), (1341266123,), (1341266158,), (1341266190,), (1341266196,), (1341266201,), (1341266206,), (1341266217,), (1341266221,), (1341265069,), (1341265075,), (1341265080,), (1341265084,), (1341265178,), (1341265200,), (1341265205,), (1341265210,), (1341265212,), (1341265217,), (1341265220,), (1341265289,), (1341265297,), (1341265298,), (1341265316,), (1341265377,), (1341265391,), (1341265409,), (1341265413,), (1341265418,), (1341265422,), (1341265436,), (1341265470,), (1341265475,), (1341265773,), (1341265839,), (1341265936,), (1341265941,), (1341265952,), (1341265962,), (1341265978,), (1341265985,), (1341266172,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06032025': {'nb_upload': 88, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21118079]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] map_info['map_portfolio_photo'] : {21118079: [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072, 1341265720, 1341265669, 1341265606, 1341265565, 1341265548, 1341265540, 1341265529, 1341265523, 1341265511, 1341265507, 1341265464, 1341265459, 1341265454, 1341265446, 1341265371, 1341265368, 1341265362, 1341265353, 1341265340, 1341265288, 1341265281, 1341265259, 1341265249, 1341265243, 1341265240, 1341265236, 1341265234, 1341265174, 1341265169, 1341265165, 1341265160, 1341265155, 1341265144, 1341265137, 1341265132, 1341265124, 1341265120, 1341265116, 1341265113, 1341265110, 1341265107, 1341265106, 1341265102, 1341265099, 1341265025, 1341265019, 1341265014, 1341264948, 1341264942, 1341264935, 1341264928, 1341264923, 1341264903, 1341264902, 1341264897, 1341264895, 1341264889, 1341264886, 1341264882, 1341264881, 1341264876, 1341264874, 1341264872, 1341264869, 1341264806, 1341264803, 1341264800, 1341264797, 1341264793, 1341264763, 1341264749, 1341264743, 1341264736, 1341264664, 1341264661, 1341264656, 1341264651]} final : True mtd_id 4302 list_pids : [1341266221, 1341266217, 1341266206, 1341266201, 1341266196, 1341266190, 1341266158, 1341266123, 1341266116, 1341266105, 1341266072] Looping around the photos to save general results len do output : 1 /21118079Didn'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, '2643173') ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173') ('4302', None, None, None, None, None, None, None, '2643173') ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21118079', 'None', None, None, None, None, '2643173'), ('4302', '21118079', '1341266221', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266217', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266206', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266201', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266196', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266190', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266158', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266123', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266116', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266105', None, None, None, None, None, '2643173'), ('4302', '21118079', '1341266072', None, None, None, None, None, '2643173')] time used for this insertion : 0.05808663368225098 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24750900268554688 time spend to save output : 0.058379411697387695 total time spend for step 5 : 0.30588841438293457 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 (2643173) 2.29user 2.44system 0:16.35elapsed 29%CPU (0avgtext+0avgdata 160232maxresident)k 2528inputs+17920outputs (72major+75104minor)pagefaults 0swaps