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 : 4123539 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 (2657459) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2657459) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270987 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2657459'] with mtr_portfolio_ids : ['21270987'] and first list_photo_ids : [] new path : /proc/4123539/ Name: python3 Umask: 0002 State: R (running) Tgid: 4123539 Ngid: 0 Pid: 4123539 PPid: 4123538 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4123539 NSpid: 4123539 NSpgid: 4119208 NSsid: 4119208 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97884 kB VmRSS: 97884 kB RssAnon: 59760 kB RssFile: 38124 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 62 nonvoluntary_ctxt_switches: 245 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4123539', 'Ngid': '0', 'Pid': '4123539', 'PPid': '4123538', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4123539', 'NSpid': '4123539', 'NSpgid': '4119208', 'NSsid': '4119208', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97884 kB', 'VmRSS': '97884 kB', 'RssAnon': '59760 kB', 'RssFile': '38124 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '62', 'nonvoluntary_ctxt_switches': '245'} ('datou_batch_current', '4123539', '1106844', '0', '1106844', '865592', '97884', b'', 'marlene', '2657459') 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 (21270987) 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 (2657459 ) ) 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 (21270987) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342904815, 'portfolio_id': 21270987}, {'photo_id': 1342904766, 'portfolio_id': 21270987}, {'photo_id': 1342904718, 'portfolio_id': 21270987}, {'photo_id': 1342904631, 'portfolio_id': 21270987}, {'photo_id': 1342903935, 'portfolio_id': 21270987}, {'photo_id': 1342903918, 'portfolio_id': 21270987}, {'photo_id': 1342903768, 'portfolio_id': 21270987}, {'photo_id': 1342903385, 'portfolio_id': 21270987}, {'photo_id': 1342903361, 'portfolio_id': 21270987}, {'photo_id': 1342903354, 'portfolio_id': 21270987}, {'photo_id': 1342903333, 'portfolio_id': 21270987}, {'photo_id': 1342903273, 'portfolio_id': 21270987}, {'photo_id': 1342903192, 'portfolio_id': 21270987}, {'photo_id': 1342902884, 'portfolio_id': 21270987}, {'photo_id': 1342902834, 'portfolio_id': 21270987}, {'photo_id': 1342902781, 'portfolio_id': 21270987}, {'photo_id': 1342902723, 'portfolio_id': 21270987}, {'photo_id': 1342902689, 'portfolio_id': 21270987}, {'photo_id': 1342902664, 'portfolio_id': 21270987}, {'photo_id': 1342902293, 'portfolio_id': 21270987}, {'photo_id': 1342902241, 'portfolio_id': 21270987}, {'photo_id': 1342902192, 'portfolio_id': 21270987}, {'photo_id': 1342902139, 'portfolio_id': 21270987}, {'photo_id': 1342902086, 'portfolio_id': 21270987}, {'photo_id': 1342901598, 'portfolio_id': 21270987}, {'photo_id': 1342901593, 'portfolio_id': 21270987}, {'photo_id': 1342901578, 'portfolio_id': 21270987}, {'photo_id': 1342901524, 'portfolio_id': 21270987}, {'photo_id': 1342901521, 'portfolio_id': 21270987}, {'photo_id': 1342901505, 'portfolio_id': 21270987}, {'photo_id': 1342901502, 'portfolio_id': 21270987}, {'photo_id': 1342901496, 'portfolio_id': 21270987}, {'photo_id': 1342901491, 'portfolio_id': 21270987}, {'photo_id': 1342901407, 'portfolio_id': 21270987}, {'photo_id': 1342901328, 'portfolio_id': 21270987}, {'photo_id': 1342901324, 'portfolio_id': 21270987}, {'photo_id': 1342901320, 'portfolio_id': 21270987}, {'photo_id': 1342901316, 'portfolio_id': 21270987}, {'photo_id': 1342901312, 'portfolio_id': 21270987}, {'photo_id': 1342901279, 'portfolio_id': 21270987}, {'photo_id': 1342901274, 'portfolio_id': 21270987}, {'photo_id': 1342901270, 'portfolio_id': 21270987}, {'photo_id': 1342901264, 'portfolio_id': 21270987}, {'photo_id': 1342900958, 'portfolio_id': 21270987}, {'photo_id': 1342900860, 'portfolio_id': 21270987}] map_portfolio_id_photo_id: {21270987: [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768, 1342903385, 1342903361, 1342903354, 1342903333, 1342903273, 1342903192, 1342902884, 1342902834, 1342902781, 1342902723, 1342902689, 1342902664, 1342902293, 1342902241, 1342902192, 1342902139, 1342902086, 1342901598, 1342901593, 1342901578, 1342901524, 1342901521, 1342901505, 1342901502, 1342901496, 1342901491, 1342901407, 1342901328, 1342901324, 1342901320, 1342901316, 1342901312, 1342901279, 1342901274, 1342901270, 1342901264, 1342900958, 1342900860]} ##### 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.016399621963500977 #### 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 Tue Mar 11 09:46: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 (21270987) 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 : 21270987 get user id for portfolio 21270987 get sub ptf for main ptf 21270987, type 3726 and hashtags ['papier', 'Carton_gris', 'plastique', 'environnement', 'Carton_brun', 'mal_croppe', 'autre_refus', 'flou', 'metal', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft'] 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`=21270987 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','environnement','Carton_brun','mal_croppe','autre_refus','flou','metal','cartonnette','Teint_Dans_La_Masse','kraft')) 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`=21270987 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','environnement','Carton_brun','mal_croppe','autre_refus','flou','metal','cartonnette','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21270987, 'sub_port_id': 21270988, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857854, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'Carton_gris': {'main_port_id': 21270987, 'sub_port_id': 21270989, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857855, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'mal_croppe': {'main_port_id': 21270987, 'sub_port_id': 21270990, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857856, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'environnement': {'main_port_id': 21270987, 'sub_port_id': 21270991, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857857, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'flou': {'main_port_id': 21270987, 'sub_port_id': 21270992, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857858, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'autre_refus': {'main_port_id': 21270987, 'sub_port_id': 21270993, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857859, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'metal': {'main_port_id': 21270987, 'sub_port_id': 21270994, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857860, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'papier': {'main_port_id': 21270987, 'sub_port_id': 21270995, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857861, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'cartonnette': {'main_port_id': 21270987, 'sub_port_id': 21270996, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857862, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'plastique': {'main_port_id': 21270987, 'sub_port_id': 21270997, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857863, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'kraft': {'main_port_id': 21270987, 'sub_port_id': 21270998, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857864, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}, 'Carton_brun': {'main_port_id': 21270987, 'sub_port_id': 21270999, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857865, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 40, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21270988 , 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=21270987 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 (21270988) result : ((1342901477,), (1342901478,), (1342901479,), (1342902016,), (1342902363,), (1342902365,), (1342902706,), (1342902708,), (1342904636,), (1342904641,), (1342904645,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270989 , 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=21270987 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 (21270989) result : ((1342902062,), (1342902063,), (1342902065,), (1342902393,), (1342902768,), (1342904744,), (1342904747,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270990 , 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=21270987 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 (21270990) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270991 , 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=21270987 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 (21270991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270992 , 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=21270987 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 (21270992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270993 , 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=21270987 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 (21270993) result : ((1342901465,), (1342901480,), (1342901481,), (1342901483,), (1342902040,), (1342902041,), (1342902042,), (1342902043,), (1342902045,), (1342902046,), (1342902382,), (1342902383,), (1342902384,), (1342902735,), (1342902738,), (1342902742,), (1342902746,), (1342902749,), (1342902752,), (1342902755,), (1342904702,), (1342904707,), (1342904712,), (1342904719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270994 , 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=21270987 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 (21270994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270995 , 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=21270987 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 (21270995) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270996 , 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=21270987 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 (21270996) result : ((1342902078,), (1342902079,), (1342902787,), (1342902790,), (1342902793,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270997 , 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=21270987 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 (21270997) result : ((1342902842,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270998 , 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=21270987 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 (21270998) result : ((1342902856,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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 21270999 , 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=21270987 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 (21270999) result : ((1342901466,), (1342901467,), (1342902100,), (1342902101,), (1342902816,), (1342902819,), (1342902822,), (1342902825,), (1342904771,), (1342904782,), (1342904789,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) 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`=21270987 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','environnement','Carton_brun','mal_croppe','autre_refus','flou','metal','cartonnette','Teint_Dans_La_Masse','kraft')) 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`=21270987 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','plastique','environnement','Carton_brun','mal_croppe','autre_refus','flou','metal','cartonnette','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21270987, 'sub_port_id': 21271000, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857866, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'Carton_gris': {'main_port_id': 21270987, 'sub_port_id': 21271001, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857867, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'mal_croppe': {'main_port_id': 21270987, 'sub_port_id': 21271002, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857868, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'environnement': {'main_port_id': 21270987, 'sub_port_id': 21271003, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857869, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'flou': {'main_port_id': 21270987, 'sub_port_id': 21271004, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857870, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'autre_refus': {'main_port_id': 21270987, 'sub_port_id': 21271005, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857871, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'metal': {'main_port_id': 21270987, 'sub_port_id': 21271006, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857872, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'papier': {'main_port_id': 21270987, 'sub_port_id': 21271007, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857873, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'cartonnette': {'main_port_id': 21270987, 'sub_port_id': 21271008, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857874, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'plastique': {'main_port_id': 21270987, 'sub_port_id': 21271009, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857875, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'kraft': {'main_port_id': 21270987, 'sub_port_id': 21271010, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857876, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}, 'Carton_brun': {'main_port_id': 21270987, 'sub_port_id': 21271011, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13857877, 'last_updated_at': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 9, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 9, 41, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21271011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21270999 lien utilise dans velours : https://www.fotonower.com/velours/21271000,21271001,21271002,21271003,21271004,21271005,21271006,21271007,21271008,21271009,21271010,21271011?tags=Teint_Dans_La_Masse,Carton_gris,mal_croppe,environnement,flou,autre_refus,metal,papier,cartonnette,plastique,kraft,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21270987]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] map_info['map_portfolio_photo'] : {21270987: [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768, 1342903385, 1342903361, 1342903354, 1342903333, 1342903273, 1342903192, 1342902884, 1342902834, 1342902781, 1342902723, 1342902689, 1342902664, 1342902293, 1342902241, 1342902192, 1342902139, 1342902086, 1342901598, 1342901593, 1342901578, 1342901524, 1342901521, 1342901505, 1342901502, 1342901496, 1342901491, 1342901407, 1342901328, 1342901324, 1342901320, 1342901316, 1342901312, 1342901279, 1342901274, 1342901270, 1342901264, 1342900958, 1342900860]} final : False mtd_id 4302 list_pids : [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] Looping around the photos to save general results len do output : 1 /21270987. 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, '2657459') ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21270987', "{'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999}", None, None, None, None, '2657459'), ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459')] time used for this insertion : 0.016690969467163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7013309001922607 time spend to save output : 0.016998291015625 total time spend for step 1 : 2.7183291912078857 step2:final Tue Mar 11 09:47: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 ! 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 (21270987) 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 21270987 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342900958,1342900860,1342901279,1342901274,1342901270,1342901264,1342901328,1342901324,1342901320,1342901316,1342901312,1342901407,1342901524,1342901521,1342901505,1342901502,1342901496,1342901491,1342901598,1342901593,1342901578,1342902293,1342902241,1342902192,1342902139,1342902086,1342902884,1342902834,1342902781,1342902723,1342902689,1342902664,1342903385,1342903361,1342903354,1342903333,1342903273,1342903192,1342903935,1342903918,1342904815,1342903768,1342904766,1342904718,1342904631); 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([21270987]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} new output for save of step final : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] map_info['map_portfolio_photo'] : {21270987: [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768, 1342903385, 1342903361, 1342903354, 1342903333, 1342903273, 1342903192, 1342902884, 1342902834, 1342902781, 1342902723, 1342902689, 1342902664, 1342902293, 1342902241, 1342902192, 1342902139, 1342902086, 1342901598, 1342901593, 1342901578, 1342901524, 1342901521, 1342901505, 1342901502, 1342901496, 1342901491, 1342901407, 1342901328, 1342901324, 1342901320, 1342901316, 1342901312, 1342901279, 1342901274, 1342901270, 1342901264, 1342900958, 1342900860]} final : False mtd_id 4302 list_pids : [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] Looping around the photos to save general results len do output : 7 /1342904815.Didn't retrieve data . /1342904766.Didn't retrieve data . /1342904718.Didn't retrieve data . /1342904631.Didn't retrieve data . /1342903935.Didn't retrieve data . /1342903918.Didn't retrieve data . /1342903768.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, '2657459') ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '21270987', '1342904815', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342904766', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342904718', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342904631', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342903935', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342903918', '0.07091150218092035', None, None, None, None, '2657459'), ('4302', '21270987', '1342903768', '0.07091150218092035', None, None, None, None, '2657459')] time used for this insertion : 0.013691902160644531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06812739372253418 time spend to save output : 0.014287710189819336 total time spend for step 2 : 0.08241510391235352 step3:velours_tree Tue Mar 11 09:47: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 complete output_args for input 0 : {21270987: [{'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999}]} input_args_next_step : {21270987: ()} output_args : {21270987: [{'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999}]} args : 21270987 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21270987) 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([21270987]) 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.688988447189331 time spend to save output : 0.00011706352233886719 total time spend for step 3 : 0.6891055107116699 step4:send_mail_cod Tue Mar 11 09:47: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 : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} input_args_next_step : {1342904815: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342904815 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342904766 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342904718 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342904631 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342903935 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342903918 depend.output_id : 0 input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ()} output_args : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',)} args : 1342903768 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 : {21270987: [{'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999}]} input_args_next_step : {1342904815: ('0.07091150218092035',), 1342904766: ('0.07091150218092035',), 1342904718: ('0.07091150218092035',), 1342904631: ('0.07091150218092035',), 1342903935: ('0.07091150218092035',), 1342903918: ('0.07091150218092035',), 1342903768: ('0.07091150218092035',), 21270987: ()} output_args : {21270987: [{'Teint_Dans_La_Masse': 21270988, 'Carton_gris': 21270989, 'mal_croppe': 21270990, 'environnement': 21270991, 'flou': 21270992, 'autre_refus': 21270993, 'metal': 21270994, 'papier': 21270995, 'cartonnette': 21270996, 'plastique': 21270997, 'kraft': 21270998, 'Carton_brun': 21270999}]} args : 21270987 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 :8, first value : ('0.07091150218092035',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21270987) 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 (1342904815,1342904766,1342904718,1342904631,1342903935,1342903918,1342903768) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342903768 begin to download photo : 1342903935 begin to download photo : 1342904718 begin to download photo : 1342904815 download finish for photo 1342903935 begin to download photo : 1342904631 download finish for photo 1342903768 begin to download photo : 1342903918 download finish for photo 1342904718 begin to download photo : 1342904766 download finish for photo 1342904815 download finish for photo 1342904766 download finish for photo 1342903918 download finish for photo 1342904631 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212709901741682822/ imagette212709921741682822/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21270987_11-03-2025_09_47_02.pdf 21270990 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=21270990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212709901741682822 21270992 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=21270992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212709921741682822 21270993 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=21270993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342902384: '1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711704_0.png', 1342904719: '1741682667_1347437_1342902086_ce552e3d02416ebd1d5df54dd502d7cd_rle_crop_3704719127_0.png', 1342904712: '1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719067_0.png', 1342904707: '1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719026_0.png', 1342904702: '1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718921_0.png', 1342902755: '1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713012_0.png', 1342902752: '1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713007_0.png', 1342902749: '1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712901_0.png', 1342902746: '1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712586_0.png', 1342902742: '1741682484_1343214_1342901505_0daaa26924ec1e295c38d604e79cfedd_rle_crop_3704712462_0.png', 1342902738: '1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712230_0.png', 1342902735: '1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712049_0.png', 1342901465: '1741682294_815971_1342900958_fd0e6eb50f83e798445142716e9c6f19_rle_crop_3704701465_0.png', 1342902383: '1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711593_0.png', 1342902382: '1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711595_0.png', 1342902046: '1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708465_0.png', 1342902045: '1741682391_816731_1342901316_59664419910d110d6845c9388d44bba7_rle_crop_3704708447_0.png', 1342902043: '1741682391_816731_1342901320_f9bc93af9573d9a7917f2180b9e11756_rle_crop_3704708173_0.png', 1342902042: '1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708138_0.png', 1342902041: '1741682391_816731_1342901407_b2c3c397e0ca60fe368c50d71a0aec45_rle_crop_3704708113_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/03c61eb06eb687e55e5d9d25e6f067a9_50683427.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/017443c00022002a8426273165cb53ce_15608770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bcb8155e56e305385f0cb56fc86197a9_90254981.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e66f4ff3ff1b51417cf8c29310160a2b_5298627.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5309a42b2cc729aaa86ae0d69b493302_25938171.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1ec84345a86b5851c7fbdb1077d7a93d_66330369.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ff41d3b6570343b1f3a24394e858b84d_90583641.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4eb08bc0076166c20de35af3f08f7353_91084486.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5bce7bb541f49b8072b7b39d334c89a3_38760836.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a026f17ae20d7e8b1232d2c3592b6058_86061979.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d748d55b532628411eae50f11409da02_66230959.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1cb168bdf5862a6a572e3003f868cdcf_60573485.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/592fc824cc6d650cdb6cf626ebba4e6b_31008180.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c3f5b5b92f1473e4e9c937554ff23f8a_84403945.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fadd2ecb2a61669d8f9c8d85ddb0474d_91518222.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c898eb006ae8ffdac5042cffef6eff26_43455972.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5004c00bd0165e9e2313c2c0380dc572_57886105.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/643c25be845587d415ebdae8ed01147e_58256212.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f849eba148dd448c874b980d65f5f0ca_75140116.png change filename to text .imagette212709931741682822/ imagette212709931741682822/1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719067_0.png.png imagette212709931741682822/1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713007_0.png.png imagette212709931741682822/1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712049_0.png.png imagette212709931741682822/1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712901_0.png.png imagette212709931741682822/1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718921_0.png.png imagette212709931741682822/1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712586_0.png.png imagette212709931741682822/1741682484_1343214_1342901505_0daaa26924ec1e295c38d604e79cfedd_rle_crop_3704712462_0.png.png imagette212709931741682822/1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711704_0.png.png imagette212709931741682822/1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712230_0.png.png imagette212709931741682822/1741682391_816731_1342901316_59664419910d110d6845c9388d44bba7_rle_crop_3704708447_0.png.png imagette212709931741682822/1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713012_0.png.png imagette212709931741682822/1741682294_815971_1342900958_fd0e6eb50f83e798445142716e9c6f19_rle_crop_3704701465_0.png.png imagette212709931741682822/1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711593_0.png.png imagette212709931741682822/1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708465_0.png.png imagette212709931741682822/1741682391_816731_1342901320_f9bc93af9573d9a7917f2180b9e11756_rle_crop_3704708173_0.png.png imagette212709931741682822/1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711595_0.png.png imagette212709931741682822/1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708138_0.png.png imagette212709931741682822/1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719026_0.png.png imagette212709931741682822/1741682391_816731_1342901407_b2c3c397e0ca60fe368c50d71a0aec45_rle_crop_3704708113_0.png.png imagette212709931741682822/1741682667_1347437_1342902086_ce552e3d02416ebd1d5df54dd502d7cd_rle_crop_3704719127_0.png.png imagette212709941741682823/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/276b3cd8a9db69881fdc45931d49613b_87194726.png imagette212709931741682822 21270994 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=21270994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212709941741682823 21270996 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=21270996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342902078: '1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708131_0.png', 1342902079: '1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708460_0.png', 1342902787: '1741682484_1343214_1342901505_0daaa26924ec1e295c38d604e79cfedd_rle_crop_3704712454_0.png', 1342902790: '1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712899_0.png', 1342902793: '1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713006_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bd8b2649a987323ccf67565ead4ef133_65139079.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5f32c3246579139adfb95a33124e9921_26846942.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b3bc3d4361d9de2d89f8984afea26171_64973279.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f3a0ae68be958cc14e2f6db78569cdab_51971621.png change filename to text .imagette212709961741682823/ imagette212709961741682823/1741682484_1343214_1342901505_0daaa26924ec1e295c38d604e79cfedd_rle_crop_3704712454_0.png.png imagette212709961741682823/1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708131_0.png.png imagette212709961741682823/1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713006_0.png.png imagette212709961741682823/1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712899_0.png.png imagette212709961741682823/1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708460_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/13b8eab4cea80f1307d816364104111c_59414297.png imagette212709961741682823 21270997 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=21270997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342902842: '1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712234_0.png'} change filename to text .imagette212709971741682823/ imagette212709971741682823/1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712234_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8e123e50ada26929acbbdc7daeef9b9d_496074.png imagette212709971741682823 21270998 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=21270998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342902856: '1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712902_0.png'} change filename to text .imagette212709981741682823/ imagette212709981741682823/1741682484_1343214_1342901496_db2f7eb160b55f4690ff63867fde3481_rle_crop_3704712902_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/282c2a54a4639b8117909bd1e149e34f_4759497.png imagette212709981741682823 21270988 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=21270988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342901477: '1741682306_1340913_1342901274_18b7ff771b9082d6f27f56c1569213a6_rle_crop_3704701444_0.png', 1342901478: '1741682306_1340913_1342901270_5ec3bd631a5186422c3a44c60006058b_rle_crop_3704701484_0.png', 1342901479: '1741682306_1340913_1342901264_1d351bc42ce7e5ec1bb359cf59de820b_rle_crop_3704701626_0.png', 1342902016: '1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708462_0.png', 1342902363: '1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711701_0.png', 1342902365: '1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711707_0.png', 1342902706: '1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712226_0.png', 1342902708: '1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712584_0.png', 1342904636: '1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718915_0.png', 1342904641: '1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719027_0.png', 1342904645: '1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719069_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c1b543fd550be0655441081a59841db6_32078646.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9595654faf276fc373a652819ec502e1_46769806.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/442c02bc3d3e099fe8232238663d8b0c_9772629.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73095402f3a4f961c1327c7483e7651b_68531015.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2377dc3d20ab5ec8f9bf52a615232dc0_19400529.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7fdea5ff9709f9faa1a50469a7f0bb40_87495401.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ee03e1d9e50565540eaaa1f73a4eddb1_95449075.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3f03ab3be701dd776b32e0de81ec88d4_60250638.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/39be90b949949e7700acfdb0361de0d6_96567978.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/984522da6192a1dfdca66424c2c930c7_57763232.png change filename to text .imagette212709881741682823/ imagette212709881741682823/1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718915_0.png.png imagette212709881741682823/1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719069_0.png.png imagette212709881741682823/1741682484_1343214_1342901521_47e577d148006252cc25bc27f975fb0c_rle_crop_3704712226_0.png.png imagette212709881741682823/1741682306_1340913_1342901274_18b7ff771b9082d6f27f56c1569213a6_rle_crop_3704701444_0.png.png imagette212709881741682823/1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711701_0.png.png imagette212709881741682823/1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708462_0.png.png imagette212709881741682823/1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712584_0.png.png imagette212709881741682823/1741682491_817701_1342901578_7ef429a9336cae607821224d7e8d00f8_rle_crop_3704711707_0.png.png imagette212709881741682823/1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719027_0.png.png imagette212709881741682823/1741682306_1340913_1342901270_5ec3bd631a5186422c3a44c60006058b_rle_crop_3704701484_0.png.png imagette212709881741682823/1741682306_1340913_1342901264_1d351bc42ce7e5ec1bb359cf59de820b_rle_crop_3704701626_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6c60af6e7d402c96c2b83c09177a4227_69242476.png imagette212709881741682823 21270989 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=21270989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342902062: '1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708136_0.png', 1342902063: '1741682391_816731_1342901316_59664419910d110d6845c9388d44bba7_rle_crop_3704708444_0.png', 1342902065: '1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708463_0.png', 1342902393: '1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711594_0.png', 1342902768: '1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712047_0.png', 1342904744: '1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718918_0.png', 1342904747: '1741682667_1347437_1342902086_ce552e3d02416ebd1d5df54dd502d7cd_rle_crop_3704719121_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a66dbde75fcbad8ae6d18f88fc70b1bf_16239151.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c0b68325859b2171df4252966b27ddb9_60939899.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/37192f1f9ed89428f8d2f2674f97d9cf_38761240.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/50c78700e2ba7d627a377c2471f159a6_95610257.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5d517dba3e937f3244592d24a5cfdd50_9911597.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bfcf98d5db729e89b55bfa3b1c47f4a2_46074448.png change filename to text .imagette212709891741682824/ imagette212709891741682824/1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712047_0.png.png imagette212709891741682824/1741682491_817701_1342901593_08811cb7bfd29d26ef5e395060cef628_rle_crop_3704711594_0.png.png imagette212709891741682824/1741682391_816731_1342901316_59664419910d110d6845c9388d44bba7_rle_crop_3704708444_0.png.png imagette212709891741682824/1741682667_1347437_1342902086_ce552e3d02416ebd1d5df54dd502d7cd_rle_crop_3704719121_0.png.png imagette212709891741682824/1741682667_1347437_1342902884_7e599c329597b74a53b776ffa1ad13cd_rle_crop_3704718918_0.png.png imagette212709891741682824/1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708136_0.png.png imagette212709891741682824/1741682391_816731_1342901312_02e42d24ea7a855ca5d12fa8fee89918_rle_crop_3704708463_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ace007d816259d1f02d5b31515cf5b0_15394818.png imagette212709891741682824 21270999 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=21270999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342901466: '1741682294_815971_1342900958_fd0e6eb50f83e798445142716e9c6f19_rle_crop_3704701463_0.png', 1342901467: '1741682294_815971_1342900860_8ae3a58c70a312e2780f658a7f0b31d5_rle_crop_3704701585_0.png', 1342902100: '1741682391_816731_1342901407_b2c3c397e0ca60fe368c50d71a0aec45_rle_crop_3704708116_0.png', 1342902101: '1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708139_0.png', 1342902816: '1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712048_0.png', 1342902819: '1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712585_0.png', 1342902822: '1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713010_0.png', 1342902825: '1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713013_0.png', 1342904771: '1741682667_1347437_1342902241_a3b4b0dfd4ed71e18d27a726943fdf13_rle_crop_3704718992_0.png', 1342904782: '1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719022_0.png', 1342904789: '1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719065_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7d344f8016359da7a32d433cbcee7477_88747475.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0b4cf303d4db797dafb8d4b6b8e4f8ca_25401808.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e638d4a55ca9f6d396fde8c55d8f83cc_82702359.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7973718d051d2caaff1c914cf18f877e_11721967.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1d102a5c30eaf0e052c21512dc1228c6_67775092.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9748c5aa9aba82510eda25162104bba7_89918817.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/777443fff1a4add1b6bb5b83232a4710_45675141.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/da0f2c627c740ef9c30a50dab1165ee1_99783754.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ee5eef9aab990a405215711350ad15a0_83424613.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1bfcfc2715333e9bde23de5647d2fdd7_5911661.png change filename to text .imagette212709991741682824/ imagette212709991741682824/1741682484_1343214_1342901598_580c554fb6db766f99c98b67d6fbf250_rle_crop_3704712048_0.png.png imagette212709991741682824/1741682667_1347437_1342902192_2617d2f877abf65307165dce31cce1b0_rle_crop_3704719022_0.png.png imagette212709991741682824/1741682391_816731_1342901324_2361d440b02952af77691162244bea6b_rle_crop_3704708139_0.png.png imagette212709991741682824/1741682391_816731_1342901407_b2c3c397e0ca60fe368c50d71a0aec45_rle_crop_3704708116_0.png.png imagette212709991741682824/1741682667_1347437_1342902139_e9c91f34a84113ef8af83a3af7673f7b_rle_crop_3704719065_0.png.png imagette212709991741682824/1741682294_815971_1342900860_8ae3a58c70a312e2780f658a7f0b31d5_rle_crop_3704701585_0.png.png imagette212709991741682824/1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713010_0.png.png imagette212709991741682824/1741682484_1343214_1342901491_fe161cd8c4f06c34bb249369b18649da_rle_crop_3704713013_0.png.png imagette212709991741682824/1741682667_1347437_1342902241_a3b4b0dfd4ed71e18d27a726943fdf13_rle_crop_3704718992_0.png.png imagette212709991741682824/1741682294_815971_1342900958_fd0e6eb50f83e798445142716e9c6f19_rle_crop_3704701463_0.png.png imagette212709991741682824/1741682484_1343214_1342901502_988abcc878fefbe9d0d7ad92ff81a2fb_rle_crop_3704712585_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8cf0043ab8839865456709dfa5cadc6e_58203769.png imagette212709991741682824 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21270987 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21271000,21271001,21271002,21271003,21271004,21271005,21271006,21271007,21271008,21271009,21271010,21271011?tags=Teint_Dans_La_Masse,Carton_gris,mal_croppe,environnement,flou,autre_refus,metal,papier,cartonnette,plastique,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1342904815] : ('0.07091150218092035',) no score found for photo 1342904815 We are sending mail with results at report@fotonower.com args[1342904766] : ('0.07091150218092035',) no score found for photo 1342904766 We are sending mail with results at report@fotonower.com args[1342904718] : ('0.07091150218092035',) no score found for photo 1342904718 We are sending mail with results at report@fotonower.com args[1342904631] : ('0.07091150218092035',) no score found for photo 1342904631 We are sending mail with results at report@fotonower.com args[1342903935] : ('0.07091150218092035',) no score found for photo 1342903935 We are sending mail with results at report@fotonower.com args[1342903918] : ('0.07091150218092035',) no score found for photo 1342903918 We are sending mail with results at report@fotonower.com args[1342903768] : ('0.07091150218092035',) no score found for photo 1342903768 We are sending mail with results at report@fotonower.com refus_total : 0.07091150218092035 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=21270987 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_P21270987_11-03-2025_09_47_02.pdf results_Auto_P21270987_11-03-2025_09_47_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21270987_11-03-2025_09_47_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21270987','results_Auto_P21270987_11-03-2025_09_47_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21270987_11-03-2025_09_47_02.pdf','pdf','','0.24','0.07091150218092035') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21270987]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] map_info['map_portfolio_photo'] : {21270987: [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768, 1342903385, 1342903361, 1342903354, 1342903333, 1342903273, 1342903192, 1342902884, 1342902834, 1342902781, 1342902723, 1342902689, 1342902664, 1342902293, 1342902241, 1342902192, 1342902139, 1342902086, 1342901598, 1342901593, 1342901578, 1342901524, 1342901521, 1342901505, 1342901502, 1342901496, 1342901491, 1342901407, 1342901328, 1342901324, 1342901320, 1342901316, 1342901312, 1342901279, 1342901274, 1342901270, 1342901264, 1342900958, 1342900860]} final : False mtd_id 4302 list_pids : [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] 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, '2657459') ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '21270987', '1342904815', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459')] time used for this insertion : 0.012344121932983398 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.511505842208862 time spend to save output : 0.012622356414794922 total time spend for step 4 : 4.524128198623657 step5:split_time_score Tue Mar 11 09:47:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21270987'] 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 : [('21270987',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21270987) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342904815: {'path': 'temp/1741682821_4123539_1342904815_2434eab5e2fc34bc37ffdb48d16c1f34.jpg', 'extension': 'jpg'}, 1342904718: {'path': 'temp/1741682821_4123539_1342904718_f6833c642e8a0cd273bfb6593c19f44f.jpg', 'extension': 'jpg'}, 1342904766: {'path': 'temp/1741682821_4123539_1342904766_ef445f08fa90345c5097d84750a5ed0d.jpg', 'extension': 'jpg'}, 1342903768: {'path': 'temp/1741682821_4123539_1342903768_1b6c702786eec512b4cf36c82072e02b.jpg', 'extension': 'jpg'}, 1342903918: {'path': 'temp/1741682821_4123539_1342903918_8b46789f8b58b1bd294696bce2a4fc00.jpg', 'extension': 'jpg'}, 1342903935: {'path': 'temp/1741682821_4123539_1342903935_f38b17648f1f7ad745ddcb16cf87f880.jpg', 'extension': 'jpg'}, 1342904631: {'path': 'temp/1741682821_4123539_1342904631_6e3f551b08a2b07093a66ca3e84a1459.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 = 21270987; (('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 = 21270987 group by h (('09', 45),) 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=21270987 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 (21270987) 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 (21270987) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21270987 Nombre de photos uploadées : 45 / 23040 (0%) 11032025 21270987 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 11032025 21270987 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1342900958, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fd0e6eb50f83e798445142716e9c6f19.jpg', 'username': None, 'uploaded_at': 1741682148, 'text': 'image_11032025_09_34_34_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342900860, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8ae3a58c70a312e2780f658a7f0b31d5.jpg', 'username': None, 'uploaded_at': 1741682134, 'text': 'image_11032025_09_34_44_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342901279, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1518911ba899f45766acca6e7c6d27bf.jpg', 'username': None, 'uploaded_at': 1741682203, 'text': 'image_11032025_09_34_54_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342901274, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/18b7ff771b9082d6f27f56c1569213a6.jpg', 'username': None, 'uploaded_at': 1741682203, 'text': 'image_11032025_09_35_25_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020699501037597656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21270987, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0218353271484375 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665671, 'mtr_portfolio_id': 21270987, 'dashboard_result_id': 9340523, '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_P21270987_11-03-2025_09_44_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21270989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21270990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21270991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21270992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21270993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21270994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21270995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21270996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21270997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21270998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21270999, '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 = 21270987 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': 2657459, 'mtr_portfolio_id': 21270987, 'created_at': datetime.datetime(2025, 3, 11, 9, 47, 1), 'result': '0.07091150218092035', 'result_long': None, 'result_double': None}] Qualite : 0.07091150218092035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21270987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21270987_11-03-2025_09_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21270987 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_P21270987_11-03-2025_09_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21270989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21270990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21270991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21270992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21270993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21270994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21270995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21270996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21270997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21270998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21270999, 'pht': 3726}}" where mtr_portfolio_id = 21270987 and dashboard_run_id = 1665671 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`=21270987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9340523, 0.07091150218092035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21270987_11-03-2025_09_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21270989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21270990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21270991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21270992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21270993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21270994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21270995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21270996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21270997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21270998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21270999, '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 (21270987) result : ((1342900860,), (1342900958,), (1342901264,), (1342901270,), (1342901274,), (1342901279,), (1342901312,), (1342901316,), (1342901320,), (1342901324,), (1342901328,), (1342901407,), (1342901491,), (1342901496,), (1342901502,), (1342901505,), (1342901521,), (1342901524,), (1342901578,), (1342901593,), (1342901598,), (1342902086,), (1342902139,), (1342902192,), (1342902241,), (1342902293,), (1342902664,), (1342902689,), (1342902723,), (1342902781,), (1342902834,), (1342902884,), (1342903192,), (1342903273,), (1342903333,), (1342903354,), (1342903361,), (1342903385,), (1342903768,), (1342903918,), (1342903935,), (1342904631,), (1342904718,), (1342904766,), (1342904815,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21270987]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] map_info['map_portfolio_photo'] : {21270987: [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768, 1342903385, 1342903361, 1342903354, 1342903333, 1342903273, 1342903192, 1342902884, 1342902834, 1342902781, 1342902723, 1342902689, 1342902664, 1342902293, 1342902241, 1342902192, 1342902139, 1342902086, 1342901598, 1342901593, 1342901578, 1342901524, 1342901521, 1342901505, 1342901502, 1342901496, 1342901491, 1342901407, 1342901328, 1342901324, 1342901320, 1342901316, 1342901312, 1342901279, 1342901274, 1342901270, 1342901264, 1342900958, 1342900860]} final : True mtd_id 4302 list_pids : [1342904815, 1342904766, 1342904718, 1342904631, 1342903935, 1342903918, 1342903768] Looping around the photos to save general results len do output : 1 /21270987Didn'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, '2657459') ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459') ('4302', None, None, None, None, None, None, None, '2657459') ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21270987', 'None', None, None, None, None, '2657459'), ('4302', '21270987', '1342904815', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904766', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904718', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342904631', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903935', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903918', None, None, None, None, None, '2657459'), ('4302', '21270987', '1342903768', None, None, None, None, None, '2657459')] time used for this insertion : 0.014515876770019531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19356822967529297 time spend to save output : 0.014800786972045898 total time spend for step 5 : 0.20836901664733887 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 (2657459) 2.38user 2.39system 0:10.68elapsed 44%CPU (0avgtext+0avgdata 159268maxresident)k 85104inputs+11496outputs (426major+73065minor)pagefaults 0swaps