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 : 4094537 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 (2744494) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2744494) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276699 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2744494'] with mtr_portfolio_ids : ['22276699'] and first list_photo_ids : [] new path : /proc/4094537/ Name: python3 Umask: 0002 State: R (running) Tgid: 4094537 Ngid: 0 Pid: 4094537 PPid: 4094536 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4094537 NSpid: 4094537 NSpgid: 4053661 NSsid: 4053661 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98228 kB VmRSS: 98228 kB RssAnon: 59772 kB RssFile: 38456 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 922 nonvoluntary_ctxt_switches: 105 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4094537', 'Ngid': '0', 'Pid': '4094537', 'PPid': '4094536', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4094537', 'NSpid': '4094537', 'NSpgid': '4053661', 'NSsid': '4053661', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98228 kB', 'VmRSS': '98228 kB', 'RssAnon': '59772 kB', 'RssFile': '38456 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '922', 'nonvoluntary_ctxt_switches': '105'} ('datou_batch_current', '4094537', '1106936', '0', '1106936', '865684', '98228', b'', 'marlene', '2744494') 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 (22276699) 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 (2744494 ) ) 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 (22276699) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351669722, 'portfolio_id': 22276699}, {'photo_id': 1351669638, 'portfolio_id': 22276699}, {'photo_id': 1351669515, 'portfolio_id': 22276699}, {'photo_id': 1351669427, 'portfolio_id': 22276699}, {'photo_id': 1351668386, 'portfolio_id': 22276699}, {'photo_id': 1351668356, 'portfolio_id': 22276699}, {'photo_id': 1351668317, 'portfolio_id': 22276699}, {'photo_id': 1351668292, 'portfolio_id': 22276699}, {'photo_id': 1351668246, 'portfolio_id': 22276699}, {'photo_id': 1351667924, 'portfolio_id': 22276699}, {'photo_id': 1351667874, 'portfolio_id': 22276699}, {'photo_id': 1351667810, 'portfolio_id': 22276699}, {'photo_id': 1351667164, 'portfolio_id': 22276699}, {'photo_id': 1351667097, 'portfolio_id': 22276699}, {'photo_id': 1351666538, 'portfolio_id': 22276699}, {'photo_id': 1351666476, 'portfolio_id': 22276699}, {'photo_id': 1351666409, 'portfolio_id': 22276699}, {'photo_id': 1351665943, 'portfolio_id': 22276699}, {'photo_id': 1351665901, 'portfolio_id': 22276699}, {'photo_id': 1351665857, 'portfolio_id': 22276699}, {'photo_id': 1351665806, 'portfolio_id': 22276699}, {'photo_id': 1351665426, 'portfolio_id': 22276699}, {'photo_id': 1351665361, 'portfolio_id': 22276699}, {'photo_id': 1351665305, 'portfolio_id': 22276699}, {'photo_id': 1351665282, 'portfolio_id': 22276699}, {'photo_id': 1351665220, 'portfolio_id': 22276699}, {'photo_id': 1351664867, 'portfolio_id': 22276699}, {'photo_id': 1351664845, 'portfolio_id': 22276699}, {'photo_id': 1351664821, 'portfolio_id': 22276699}, {'photo_id': 1351664803, 'portfolio_id': 22276699}, {'photo_id': 1351664536, 'portfolio_id': 22276699}, {'photo_id': 1351664510, 'portfolio_id': 22276699}, {'photo_id': 1351664486, 'portfolio_id': 22276699}, {'photo_id': 1351664461, 'portfolio_id': 22276699}, {'photo_id': 1351664298, 'portfolio_id': 22276699}, {'photo_id': 1351664206, 'portfolio_id': 22276699}, {'photo_id': 1351664169, 'portfolio_id': 22276699}, {'photo_id': 1351664150, 'portfolio_id': 22276699}, {'photo_id': 1351664122, 'portfolio_id': 22276699}, {'photo_id': 1351663906, 'portfolio_id': 22276699}, {'photo_id': 1351663893, 'portfolio_id': 22276699}, {'photo_id': 1351663872, 'portfolio_id': 22276699}, {'photo_id': 1351663781, 'portfolio_id': 22276699}, {'photo_id': 1351663759, 'portfolio_id': 22276699}, {'photo_id': 1351663181, 'portfolio_id': 22276699}, {'photo_id': 1351662973, 'portfolio_id': 22276699}, {'photo_id': 1351662970, 'portfolio_id': 22276699}, {'photo_id': 1351662914, 'portfolio_id': 22276699}, {'photo_id': 1351662910, 'portfolio_id': 22276699}, {'photo_id': 1351661317, 'portfolio_id': 22276699}, {'photo_id': 1351661308, 'portfolio_id': 22276699}, {'photo_id': 1351661301, 'portfolio_id': 22276699}] map_portfolio_id_photo_id: {22276699: [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246, 1351667924, 1351667874, 1351667810, 1351667164, 1351667097, 1351666538, 1351666476, 1351666409, 1351665943, 1351665901, 1351665857, 1351665806, 1351665426, 1351665361, 1351665305, 1351665282, 1351665220, 1351664867, 1351664845, 1351664821, 1351664803, 1351664536, 1351664510, 1351664486, 1351664461, 1351664298, 1351664206, 1351664169, 1351664150, 1351664122, 1351663906, 1351663893, 1351663872, 1351663781, 1351663759, 1351663181, 1351662973, 1351662970, 1351662914, 1351662910, 1351661317, 1351661308, 1351661301]} ##### 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.016763925552368164 #### 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 Fri Apr 11 14:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22276699) 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 : 22276699 get user id for portfolio 22276699 get sub ptf for main ptf 22276699, type 3726 and hashtags ['environnement', 'papier', 'metal', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'plastique', 'flou', 'kraft', 'autre_refus', 'cartonnette', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22276699 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','metal','mal_croppe','Carton_gris','Carton_brun','plastique','flou','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22276699 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','metal','mal_croppe','Carton_gris','Carton_brun','plastique','flou','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22276699, 'sub_port_id': 22276727, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742933, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'mal_croppe': {'main_port_id': 22276699, 'sub_port_id': 22276728, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742934, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'flou': {'main_port_id': 22276699, 'sub_port_id': 22276729, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742935, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'metal': {'main_port_id': 22276699, 'sub_port_id': 22276730, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742936, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22276699, 'sub_port_id': 22276731, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742937, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'kraft': {'main_port_id': 22276699, 'sub_port_id': 22276732, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742938, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'plastique': {'main_port_id': 22276699, 'sub_port_id': 22276733, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742939, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'autre_refus': {'main_port_id': 22276699, 'sub_port_id': 22276734, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742940, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'Carton_brun': {'main_port_id': 22276699, 'sub_port_id': 22276735, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742941, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'papier': {'main_port_id': 22276699, 'sub_port_id': 22276736, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742942, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'Carton_gris': {'main_port_id': 22276699, 'sub_port_id': 22276737, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742943, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}, 'cartonnette': {'main_port_id': 22276699, 'sub_port_id': 22276738, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742944, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276727 , 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=22276699 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 (22276727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276728 , 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=22276699 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 (22276728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276729 , 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=22276699 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 (22276729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276730 , 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=22276699 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 (22276730) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276731 , 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=22276699 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 (22276731) result : ((1351664204,), (1351664252,), (1351664254,), (1351664255,), (1351664256,), (1351665600,), (1351665601,), (1351665602,), (1351666533,), (1351666535,), (1351666537,), (1351666850,), (1351666851,), (1351666853,), (1351666854,), (1351668005,), (1351668006,), (1351668007,), (1351668008,), (1351668009,), (1351668010,), (1351668011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276732 , 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=22276699 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 (22276732) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276733 , 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=22276699 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 (22276733) result : ((1351664377,), (1351669308,), (1351669310,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276734 , 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=22276699 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 (22276734) result : ((1351664219,), (1351664896,), (1351665617,), (1351665618,), (1351666545,), (1351668015,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276735 , 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=22276699 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 (22276735) result : ((1351664334,), (1351664335,), (1351664336,), (1351665634,), (1351666576,), (1351668034,), (1351668035,), (1351668036,), (1351669291,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276736 , 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=22276699 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 (22276736) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276737 , 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=22276699 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 (22276737) result : ((1351664309,), (1351664312,), (1351666557,), (1351668800,), (1351669244,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22276738 , 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=22276699 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 (22276738) result : ((1351666567,), (1351668026,), (1351668027,), (1351669258,), (1351669259,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22276699) result : ((1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=22276699 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','metal','mal_croppe','Carton_gris','Carton_brun','plastique','flou','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22276699 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','metal','mal_croppe','Carton_gris','Carton_brun','plastique','flou','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22276699, 'sub_port_id': 22276739, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742945, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'mal_croppe': {'main_port_id': 22276699, 'sub_port_id': 22276740, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742946, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'flou': {'main_port_id': 22276699, 'sub_port_id': 22276741, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742947, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'metal': {'main_port_id': 22276699, 'sub_port_id': 22276742, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742948, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22276699, 'sub_port_id': 22276743, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742949, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'kraft': {'main_port_id': 22276699, 'sub_port_id': 22276744, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742950, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'plastique': {'main_port_id': 22276699, 'sub_port_id': 22276745, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742951, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'autre_refus': {'main_port_id': 22276699, 'sub_port_id': 22276746, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742952, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'Carton_brun': {'main_port_id': 22276699, 'sub_port_id': 22276747, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742953, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'papier': {'main_port_id': 22276699, 'sub_port_id': 22276748, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742954, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'Carton_gris': {'main_port_id': 22276699, 'sub_port_id': 22276749, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742955, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}, 'cartonnette': {'main_port_id': 22276699, 'sub_port_id': 22276750, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14742956, 'last_updated_at': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 13, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22276750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22276738 lien utilise dans velours : https://www.fotonower.com/velours/22276739,22276740,22276741,22276742,22276743,22276744,22276745,22276746,22276747,22276748,22276749,22276750?tags=environnement,mal_croppe,flou,metal,Teint_Dans_La_Masse,kraft,plastique,autre_refus,Carton_brun,papier,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22276699]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] map_info['map_portfolio_photo'] : {22276699: [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246, 1351667924, 1351667874, 1351667810, 1351667164, 1351667097, 1351666538, 1351666476, 1351666409, 1351665943, 1351665901, 1351665857, 1351665806, 1351665426, 1351665361, 1351665305, 1351665282, 1351665220, 1351664867, 1351664845, 1351664821, 1351664803, 1351664536, 1351664510, 1351664486, 1351664461, 1351664298, 1351664206, 1351664169, 1351664150, 1351664122, 1351663906, 1351663893, 1351663872, 1351663781, 1351663759, 1351663181, 1351662973, 1351662970, 1351662914, 1351662910, 1351661317, 1351661308, 1351661301]} final : False mtd_id 4302 list_pids : [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] Looping around the photos to save general results len do output : 1 /22276699. 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, '2744494') ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22276699', "{'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738}", None, None, None, None, '2744494'), ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494')] time used for this insertion : 0.01579141616821289 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.44566011428833 time spend to save output : 0.016115188598632812 total time spend for step 1 : 2.461775302886963 step2:final Fri Apr 11 14:01:00 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 (22276699) 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 22276699 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351661317,1351661308,1351661301,1351662973,1351662970,1351662914,1351662910,1351663181,1351663906,1351663893,1351663872,1351663781,1351663759,1351664298,1351664206,1351664169,1351664150,1351664122,1351664536,1351664510,1351664486,1351664461,1351664867,1351664845,1351664821,1351664803,1351665426,1351665361,1351665305,1351665282,1351665220,1351665943,1351665901,1351665857,1351665806,1351666538,1351666476,1351666409,1351667164,1351667097,1351667924,1351667874,1351667810,1351668386,1351668356,1351668317,1351668292,1351668246,1351669722,1351669638,1351669515,1351669427); 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([22276699]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} new output for save of step final : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] map_info['map_portfolio_photo'] : {22276699: [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246, 1351667924, 1351667874, 1351667810, 1351667164, 1351667097, 1351666538, 1351666476, 1351666409, 1351665943, 1351665901, 1351665857, 1351665806, 1351665426, 1351665361, 1351665305, 1351665282, 1351665220, 1351664867, 1351664845, 1351664821, 1351664803, 1351664536, 1351664510, 1351664486, 1351664461, 1351664298, 1351664206, 1351664169, 1351664150, 1351664122, 1351663906, 1351663893, 1351663872, 1351663781, 1351663759, 1351663181, 1351662973, 1351662970, 1351662914, 1351662910, 1351661317, 1351661308, 1351661301]} final : False mtd_id 4302 list_pids : [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] Looping around the photos to save general results len do output : 9 /1351669722.Didn't retrieve data . /1351669638.Didn't retrieve data . /1351669515.Didn't retrieve data . /1351669427.Didn't retrieve data . /1351668386.Didn't retrieve data . /1351668356.Didn't retrieve data . /1351668317.Didn't retrieve data . /1351668292.Didn't retrieve data . /1351668246.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, '2744494') ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22276699', '1351669722', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351669638', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351669515', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351669427', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351668386', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351668356', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351668317', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351668292', '0.053980849682906056', None, None, None, None, '2744494'), ('4302', '22276699', '1351668246', '0.053980849682906056', None, None, None, None, '2744494')] time used for this insertion : 0.01598215103149414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07730245590209961 time spend to save output : 0.01653456687927246 total time spend for step 2 : 0.09383702278137207 step3:velours_tree Fri Apr 11 14:01:00 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 : {22276699: [{'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738}]} input_args_next_step : {22276699: ()} output_args : {22276699: [{'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738}]} args : 22276699 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 : ({'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22276699) 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([22276699]) 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.6493585109710693 time spend to save output : 7.605552673339844e-05 total time spend for step 3 : 0.6494345664978027 step4:send_mail_cod Fri Apr 11 14:01:01 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 : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} input_args_next_step : {1351669722: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351669722 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351669638 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351669515 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351669427 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351668386 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351668356 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351668317 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351668292 depend.output_id : 0 input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ()} output_args : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',)} args : 1351668246 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 : {22276699: [{'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738}]} input_args_next_step : {1351669722: ('0.053980849682906056',), 1351669638: ('0.053980849682906056',), 1351669515: ('0.053980849682906056',), 1351669427: ('0.053980849682906056',), 1351668386: ('0.053980849682906056',), 1351668356: ('0.053980849682906056',), 1351668317: ('0.053980849682906056',), 1351668292: ('0.053980849682906056',), 1351668246: ('0.053980849682906056',), 22276699: ()} output_args : {22276699: [{'environnement': 22276727, 'mal_croppe': 22276728, 'flou': 22276729, 'metal': 22276730, 'Teint_Dans_La_Masse': 22276731, 'kraft': 22276732, 'plastique': 22276733, 'autre_refus': 22276734, 'Carton_brun': 22276735, 'papier': 22276736, 'Carton_gris': 22276737, 'cartonnette': 22276738}]} args : 22276699 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 :10, first value : ('0.053980849682906056',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22276699) 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 (1351669722,1351669638,1351669515,1351669427,1351668386,1351668356,1351668317,1351668292,1351668246) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351668246 begin to download photo : 1351668317 begin to download photo : 1351668386 begin to download photo : 1351669515 begin to download photo : 1351669722 download finish for photo 1351668246 begin to download photo : 1351668292 download finish for photo 1351669515 begin to download photo : 1351669638 download finish for photo 1351669722 download finish for photo 1351668386 begin to download photo : 1351669427 download finish for photo 1351668317 begin to download photo : 1351668356 download finish for photo 1351668292 download finish for photo 1351669638 download finish for photo 1351668356 download finish for photo 1351669427 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222767281744372861/ imagette222767291744372861/ imagette222767301744372861/ imagette222767321744372861/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22276699_11-04-2025_14_01_01.pdf 22276728 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=22276728 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222767281744372861 22276729 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=22276729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222767291744372861 22276730 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=22276730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222767301744372861 22276732 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=22276732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222767321744372861 22276733 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=22276733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351664377: '1744372143_1690436_1351663181_7a2da2de51214f3980a1d87103d6ac49_rle_crop_3757360254_0.png', 1351669308: '1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378456_0.png', 1351669310: '1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/52bf9b3257ba36d84c11a63e01aceeab_32957517.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/784eafc21955c329f232e00b233af9c1_66682174.png change filename to text .imagette222767331744372861/ imagette222767331744372861/1744372143_1690436_1351663181_7a2da2de51214f3980a1d87103d6ac49_rle_crop_3757360254_0.png.png imagette222767331744372861/1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378456_0.png.png imagette222767331744372861/1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378455_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8f048496d25c9d8a2ce24c08621d63c6_77297493.png imagette222767331744372861 22276734 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=22276734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351664219: '1744372153_1690631_1351661317_991a6dc55f7062a708c4a98f8fff0670_rle_crop_3757360385_0.png', 1351664896: '1744372273_1692380_1351663759_248e369ecd3f87bf9a12c6167734e7a4_rle_crop_3757364466_0.png', 1351665617: '1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366488_0.png', 1351665618: '1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366523_0.png', 1351666545: '1744372454_1694393_1351664461_f4ed4e89fa4ec92ff7e15523be81c671_rle_crop_3757366749_0.png', 1351668015: '1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369823_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/acd42cc12c81851fa3cbc150586f94c7_820462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4c0bd80b4d6850cdd6822d04ee9ce9de_37543012.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4b758f6821331d2aa70fed93f87ac1c4_86669164.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/65c41a993ced6d31bd0cb1d0d170300a_80868586.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/26f7420526ba6ee3946c015feece22ff_16595380.png change filename to text .imagette222767341744372861/ imagette222767341744372861/1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366488_0.png.png imagette222767341744372861/1744372153_1690631_1351661317_991a6dc55f7062a708c4a98f8fff0670_rle_crop_3757360385_0.png.png imagette222767341744372861/1744372273_1692380_1351663759_248e369ecd3f87bf9a12c6167734e7a4_rle_crop_3757364466_0.png.png imagette222767341744372861/1744372454_1694393_1351664461_f4ed4e89fa4ec92ff7e15523be81c671_rle_crop_3757366749_0.png.png imagette222767341744372861/1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369823_0.png.png imagette222767341744372861/1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366523_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6d985db7a0f2922015202ef2480bf7a1_26383838.png imagette222767341744372861 22276738 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=22276738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351666567: '1744372454_1694393_1351664461_f4ed4e89fa4ec92ff7e15523be81c671_rle_crop_3757366748_0.png', 1351668026: '1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369820_0.png', 1351668027: '1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370134_0.png', 1351669258: '1744372752_1697984_1351667924_c760284862b2c7323f4a2c8ec2409a3e_rle_crop_3757378423_0.png', 1351669259: '1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378457_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cb8aeb2d07eade8a3f022b11ac5ba88b_44414771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ee71eafb7c8e4ef0bdd74b3daa5cc7f9_18176209.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ff039c4c2a7b401fa3da387e8a9e704b_56151685.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/70ac3252d4e8d5c780a1b86ec3d9a8bc_65314565.png change filename to text .imagette222767381744372862/ imagette222767381744372862/1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369820_0.png.png imagette222767381744372862/1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378457_0.png.png imagette222767381744372862/1744372752_1697984_1351667924_c760284862b2c7323f4a2c8ec2409a3e_rle_crop_3757378423_0.png.png imagette222767381744372862/1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370134_0.png.png imagette222767381744372862/1744372454_1694393_1351664461_f4ed4e89fa4ec92ff7e15523be81c671_rle_crop_3757366748_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e0838c6d2ca8555d8b3bbd4ddd2cff4f_14256305.png imagette222767381744372862 22276731 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=22276731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351666850: '1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366869_0.png', 1351668011: '1744372574_1695618_1351665220_699acf47400ba30052d43a8de3f90e7c_rle_crop_3757370159_0.png', 1351668010: '1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370146_0.png', 1351668009: '1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370141_0.png', 1351668008: '1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369826_0.png', 1351668007: '1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369418_0.png', 1351668006: '1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369417_0.png', 1351668005: '1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369419_0.png', 1351666854: '1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366859_0.png', 1351666853: '1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366860_0.png', 1351666851: '1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366868_0.png', 1351664204: '1744372153_1690631_1351661308_34e454e9f519b5aed7464816ee167451_rle_crop_3757360550_0.png', 1351666537: '1744372454_1694393_1351664486_dee5aca3bc185fef6b0995d83bcdf037_rle_crop_3757366739_0.png', 1351666535: '1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366667_0.png', 1351666533: '1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366665_0.png', 1351665602: '1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366527_0.png', 1351665601: '1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366526_0.png', 1351665600: '1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366485_0.png', 1351664256: '1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360682_0.png', 1351664255: '1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360688_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c78d02b69d173cc698f021f6eb8be993_96015526.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7e21a6bc1a880898a16d9263afe42271_73692616.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0cfb79919d435f70ada5879836ddacba_61060005.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/56ccd3bd2204e7f0aecf1413566c37d3_81433128.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/34a8ec5f512623ecd35681a9113ca8a8_82569979.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/68b549c823d99c8e40fb70c2c8fcaed9_83904745.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e7425e977fdfd0bf08796dc4edac9ebe_19093291.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/00ca9f5b42215c5964c2d2b674e2be50_95019729.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8ef22ea35ff1fa2c63b12277691eb3d3_41711325.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d28c1f316de5c3da5099d0f4c8c687a5_57643646.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e19fc94a89c4cea9324c37e54e4cc4da_74822292.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/81fa3975317e1393ffc735dced7c7d27_13211338.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/580c623275f8937171cbdf47b002ede3_53525198.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d0c5769b47a43bccac46a99e43ec75a0_57525065.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5db227a2144a0f151a0916efc4a3d766_78113065.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7f1dc29c98a7b1939a4595b43d0e4497_65392005.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e68c1927f3138e8461949097dc080660_15559687.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/514baed2756d0f7016d973ed9f7b5d81_29013920.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/48acd606c1e6abe20d0ecd352142e64a_85874375.png change filename to text .imagette222767311744372862/ imagette222767311744372862/1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366859_0.png.png imagette222767311744372862/1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366868_0.png.png imagette222767311744372862/1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369418_0.png.png imagette222767311744372862/1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370141_0.png.png imagette222767311744372862/1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366527_0.png.png imagette222767311744372862/1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366485_0.png.png imagette222767311744372862/1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360682_0.png.png imagette222767311744372862/1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369417_0.png.png imagette222767311744372862/1744372391_1693784_1351664803_cc500f34c5f7f5b4a577f0caf0d4f6a6_rle_crop_3757366526_0.png.png imagette222767311744372862/1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360688_0.png.png imagette222767311744372862/1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366667_0.png.png imagette222767311744372862/1744372454_1694393_1351664486_dee5aca3bc185fef6b0995d83bcdf037_rle_crop_3757366739_0.png.png imagette222767311744372862/1744372574_1695618_1351665220_699acf47400ba30052d43a8de3f90e7c_rle_crop_3757370159_0.png.png imagette222767311744372862/1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366860_0.png.png imagette222767311744372862/1744372153_1690631_1351661308_34e454e9f519b5aed7464816ee167451_rle_crop_3757360550_0.png.png imagette222767311744372862/1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369419_0.png.png imagette222767311744372862/1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366665_0.png.png imagette222767311744372862/1744372511_1694958_1351665426_81677f1f997238f47e718be1c1d20f3e_rle_crop_3757366869_0.png.png imagette222767311744372862/1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369826_0.png.png imagette222767311744372862/1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370146_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a6637cd53c7fc26d07a882c9340aa4ce_5468388.png imagette222767311744372862 22276735 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=22276735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351664334: '1744372143_1690436_1351662970_0f1be574903f9a520944151a19f875c1_rle_crop_3757360400_0.png', 1351664335: '1744372143_1690436_1351662914_e03ea55360fd0c621e01d8a689b455ce_rle_crop_3757360562_0.png', 1351664336: '1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360689_0.png', 1351665634: '1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366490_0.png', 1351666576: '1744372454_1694393_1351664486_dee5aca3bc185fef6b0995d83bcdf037_rle_crop_3757366738_0.png', 1351668034: '1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369414_0.png', 1351668035: '1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369818_0.png', 1351668036: '1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370140_0.png', 1351669291: '1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8428eb0ba8d556119564aef4bf15b4f4_13979357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3c9b50829e433caa383c025614671037_87709072.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3845c0d8e8403b250f1f6ff2689093d7_75558713.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/024ca8da26b3e0cf1c85eac98a2f7e1e_19597024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2105bb9b095eb6f1e24a0585cec71b1f_60303433.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8c91d36a30ba104463837f1265dcc041_9921060.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5ce644794e98357874ed0232dfa5ec0b_43363775.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7feb097ba6e7a1863b062eb9539bc415_57453035.png change filename to text .imagette222767351744372863/ imagette222767351744372863/1744372143_1690436_1351662914_e03ea55360fd0c621e01d8a689b455ce_rle_crop_3757360562_0.png.png imagette222767351744372863/1744372752_1697984_1351667097_6bc7d1497e155fb36409ddfa30751fb8_rle_crop_3757378459_0.png.png imagette222767351744372863/1744372143_1690436_1351662910_86d114f8cfb09a6d7128bb75a1417f4c_rle_crop_3757360689_0.png.png imagette222767351744372863/1744372454_1694393_1351664486_dee5aca3bc185fef6b0995d83bcdf037_rle_crop_3757366738_0.png.png imagette222767351744372863/1744372574_1695618_1351665282_7ecab313958d9ff80f4f6a590ac2dda9_rle_crop_3757370140_0.png.png imagette222767351744372863/1744372391_1693784_1351664821_e8e786a2c01c8e62fe69c0759f5852b3_rle_crop_3757366490_0.png.png imagette222767351744372863/1744372574_1695618_1351665305_e69c47bcfb94f29238a4cdafdea31a4b_rle_crop_3757369818_0.png.png imagette222767351744372863/1744372574_1695618_1351665361_a3ae9110d0608f9d1de1095944906542_rle_crop_3757369414_0.png.png imagette222767351744372863/1744372143_1690436_1351662970_0f1be574903f9a520944151a19f875c1_rle_crop_3757360400_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/169f4fcbd9c732bb85213e8bea05253e_89663642.png imagette222767351744372863 22276737 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=22276737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351664309: '1744372143_1690436_1351663181_7a2da2de51214f3980a1d87103d6ac49_rle_crop_3757360253_0.png', 1351664312: '1744372143_1690436_1351662914_e03ea55360fd0c621e01d8a689b455ce_rle_crop_3757360554_0.png', 1351666557: '1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366666_0.png', 1351668800: '1744372694_1697374_1351667874_6a39a92c912ce7efbb81b44f4d6cd702_rle_crop_3757377655_0.png', 1351669244: '1744372752_1697984_1351667924_c760284862b2c7323f4a2c8ec2409a3e_rle_crop_3757378424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3267ddb47bf07d726b69202f21b0acea_36426060.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/340084aa4ac0c60469e78758c056f797_92261086.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/666809640344e554f8a5c5ec5109544c_79276297.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/de2842851d2e0bfea2efc9147bca1234_26285345.png change filename to text .imagette222767371744372864/ imagette222767371744372864/1744372143_1690436_1351662914_e03ea55360fd0c621e01d8a689b455ce_rle_crop_3757360554_0.png.png imagette222767371744372864/1744372454_1694393_1351664510_a841f8f235c162e3d04fc3fe2a5093e9_rle_crop_3757366666_0.png.png imagette222767371744372864/1744372143_1690436_1351663181_7a2da2de51214f3980a1d87103d6ac49_rle_crop_3757360253_0.png.png imagette222767371744372864/1744372694_1697374_1351667874_6a39a92c912ce7efbb81b44f4d6cd702_rle_crop_3757377655_0.png.png imagette222767371744372864/1744372752_1697984_1351667924_c760284862b2c7323f4a2c8ec2409a3e_rle_crop_3757378424_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/36aa0b4fc3bc00ab0f05b06b249fc382_11231400.png imagette222767371744372864 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22276699 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22276739,22276740,22276741,22276742,22276743,22276744,22276745,22276746,22276747,22276748,22276749,22276750?tags=environnement,mal_croppe,flou,metal,Teint_Dans_La_Masse,kraft,plastique,autre_refus,Carton_brun,papier,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1351669722] : ('0.053980849682906056',) no score found for photo 1351669722 We are sending mail with results at report@fotonower.com args[1351669638] : ('0.053980849682906056',) no score found for photo 1351669638 We are sending mail with results at report@fotonower.com args[1351669515] : ('0.053980849682906056',) no score found for photo 1351669515 We are sending mail with results at report@fotonower.com args[1351669427] : ('0.053980849682906056',) no score found for photo 1351669427 We are sending mail with results at report@fotonower.com args[1351668386] : ('0.053980849682906056',) no score found for photo 1351668386 We are sending mail with results at report@fotonower.com args[1351668356] : ('0.053980849682906056',) no score found for photo 1351668356 We are sending mail with results at report@fotonower.com args[1351668317] : ('0.053980849682906056',) no score found for photo 1351668317 We are sending mail with results at report@fotonower.com args[1351668292] : ('0.053980849682906056',) no score found for photo 1351668292 We are sending mail with results at report@fotonower.com args[1351668246] : ('0.053980849682906056',) no score found for photo 1351668246 We are sending mail with results at report@fotonower.com refus_total : 0.053980849682906056 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=22276699 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_P22276699_11-04-2025_14_01_01.pdf results_Auto_P22276699_11-04-2025_14_01_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_11-04-2025_14_01_01.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','22276699','results_Auto_P22276699_11-04-2025_14_01_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_11-04-2025_14_01_01.pdf','pdf','','0.24','0.053980849682906056') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22276699]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] map_info['map_portfolio_photo'] : {22276699: [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246, 1351667924, 1351667874, 1351667810, 1351667164, 1351667097, 1351666538, 1351666476, 1351666409, 1351665943, 1351665901, 1351665857, 1351665806, 1351665426, 1351665361, 1351665305, 1351665282, 1351665220, 1351664867, 1351664845, 1351664821, 1351664803, 1351664536, 1351664510, 1351664486, 1351664461, 1351664298, 1351664206, 1351664169, 1351664150, 1351664122, 1351663906, 1351663893, 1351663872, 1351663781, 1351663759, 1351663181, 1351662973, 1351662970, 1351662914, 1351662910, 1351661317, 1351661308, 1351661301]} final : False mtd_id 4302 list_pids : [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] 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, '2744494') ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22276699', '1351669722', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494')] time used for this insertion : 0.013307809829711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.482817649841309 time spend to save output : 0.01368856430053711 total time spend for step 4 : 4.496506214141846 step5:split_time_score Fri Apr 11 14:01:05 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 : ['22276699'] 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 : [('22276699',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22276699) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351669722: {'path': 'temp/1744372861_4094537_1351669722_8a0c36b7abcd9e0b7d7dab34a7e48228.jpg', 'extension': 'jpg'}, 1351668246: {'path': 'temp/1744372861_4094537_1351668246_e9f043dc995e4d54254ba94145e16a1d.jpg', 'extension': 'jpg'}, 1351668292: {'path': 'temp/1744372861_4094537_1351668292_f0b00531d28ab88a0ea326b31ee950ae.jpg', 'extension': 'jpg'}, 1351669515: {'path': 'temp/1744372861_4094537_1351669515_9f332823b4caf935499971df07105e84.jpg', 'extension': 'jpg'}, 1351669638: {'path': 'temp/1744372861_4094537_1351669638_9ae6bc7ccdf642be2962253e6df42fbb.jpg', 'extension': 'jpg'}, 1351668317: {'path': 'temp/1744372861_4094537_1351668317_730dca80257df73f4c48dc69ce935ce4.jpg', 'extension': 'jpg'}, 1351668356: {'path': 'temp/1744372861_4094537_1351668356_5a8ad64be665e91a25cdb75b4960fbd7.jpg', 'extension': 'jpg'}, 1351668386: {'path': 'temp/1744372861_4094537_1351668386_df257c787d75e7a4f0d6ead663adf746.jpg', 'extension': 'jpg'}, 1351669427: {'path': 'temp/1744372861_4094537_1351669427_9c6ca5fc892664afae0fe070c1c7c8ea.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 = 22276699; (('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 = 22276699 group by h (('13', 52),) 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=22276699 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 (22276699) 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 (22276699) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22276699 Nombre de photos uploadées : 52 / 23040 (0%) 11042025 22276699 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 11042025 22276699 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1351661317, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/991a6dc55f7062a708c4a98f8fff0670.jpg', 'username': None, 'uploaded_at': 1744371967, 'text': 'image_11042025_13_45_04_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351661308, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/34e454e9f519b5aed7464816ee167451.jpg', 'username': None, 'uploaded_at': 1744371967, 'text': 'image_11042025_13_45_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351661301, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/41d0c8d13fad3c757fd27684158fc909.jpg', 'username': None, 'uploaded_at': 1744371967, 'text': 'image_11042025_13_45_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351662973, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/094d744c98161b1e29f7a124ea53e381.jpg', 'username': None, 'uploaded_at': 1744372032, 'text': 'image_11042025_13_45_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015575885772705078 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22276699, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02548694610595703 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743480, 'mtr_portfolio_id': 22276503, 'dashboard_result_id': 10024469, '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_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743480, 'mtr_portfolio_id': 22276699, 'dashboard_result_id': 10024470, '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_P22276699_11-04-2025_13_59_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, '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 = 22276503 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': 2744482, 'mtr_portfolio_id': 22276503, 'created_at': datetime.datetime(2025, 4, 11, 13, 47, 2), 'result': '0.03733633829439681', 'result_long': None, 'result_double': None}] Qualite : 0.03733633829439681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22276503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276503_11-04-2025_13_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22276503 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_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, 'pht': 3726}}" where mtr_portfolio_id = 22276503 and dashboard_run_id = 1743480 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`=22276503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10024469, 0.03733633829439681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22276699 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': 2744494, 'mtr_portfolio_id': 22276699, 'created_at': datetime.datetime(2025, 4, 11, 14, 1), 'result': '0.053980849682906056', 'result_long': None, 'result_double': None}] Qualite : 0.053980849682906056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22276699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_11-04-2025_14_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22276699 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_P22276699_11-04-2025_14_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, 'pht': 3726}}" where mtr_portfolio_id = 22276699 and dashboard_run_id = 1743480 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`=22276699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10024470, 0.053980849682906056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_11-04-2025_14_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, '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 (22276503,22276699) result : ((1351659083,), (1351659292,), (1351659508,), (1351659547,), (1351659554,), (1351659622,), (1351659624,), (1351659627,), (1351659675,), (1351659699,), (1351659703,), (1351660249,), (1351660251,), (1351660268,), (1351660288,), (1351660359,), (1351660534,), (1351660558,), (1351660599,), (1351660634,), (1351660727,), (1351660731,), (1351660734,), (1351660746,), (1351660953,), (1351660983,), (1351661013,), (1351661047,), (1351661073,), (1351661409,), (1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22276699]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] map_info['map_portfolio_photo'] : {22276699: [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246, 1351667924, 1351667874, 1351667810, 1351667164, 1351667097, 1351666538, 1351666476, 1351666409, 1351665943, 1351665901, 1351665857, 1351665806, 1351665426, 1351665361, 1351665305, 1351665282, 1351665220, 1351664867, 1351664845, 1351664821, 1351664803, 1351664536, 1351664510, 1351664486, 1351664461, 1351664298, 1351664206, 1351664169, 1351664150, 1351664122, 1351663906, 1351663893, 1351663872, 1351663781, 1351663759, 1351663181, 1351662973, 1351662970, 1351662914, 1351662910, 1351661317, 1351661308, 1351661301]} final : True mtd_id 4302 list_pids : [1351669722, 1351669638, 1351669515, 1351669427, 1351668386, 1351668356, 1351668317, 1351668292, 1351668246] Looping around the photos to save general results len do output : 1 /22276699Didn'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, '2744494') ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494') ('4302', None, None, None, None, None, None, None, '2744494') ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22276699', 'None', None, None, None, None, '2744494'), ('4302', '22276699', '1351669722', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669638', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669515', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351669427', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668386', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668356', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668317', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668292', None, None, None, None, None, '2744494'), ('4302', '22276699', '1351668246', None, None, None, None, None, '2744494')] time used for this insertion : 0.013666152954101562 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8105988502502441 time spend to save output : 0.013907194137573242 total time spend for step 5 : 1.8245060443878174 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 (2744494) 2.30user 2.00system 0:11.66elapsed 36%CPU (0avgtext+0avgdata 160376maxresident)k 103080inputs+12488outputs (398major+76085minor)pagefaults 0swaps