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 : 3020528 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 (2629742) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2629742) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981321 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2629742'] with mtr_portfolio_ids : ['20981321'] and first list_photo_ids : [] new path : /proc/3020528/ Name: python3 Umask: 0002 State: R (running) Tgid: 3020528 Ngid: 0 Pid: 3020528 PPid: 3020527 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3020528 NSpid: 3020528 NSpgid: 3016600 NSsid: 3016600 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97892 kB VmRSS: 97892 kB RssAnon: 59752 kB RssFile: 38140 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 75 nonvoluntary_ctxt_switches: 252 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3020528', 'Ngid': '0', 'Pid': '3020528', 'PPid': '3020527', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3020528', 'NSpid': '3020528', 'NSpgid': '3016600', 'NSsid': '3016600', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97892 kB', 'VmRSS': '97892 kB', 'RssAnon': '59752 kB', 'RssFile': '38140 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '75', 'nonvoluntary_ctxt_switches': '252'} ('datou_batch_current', '3020528', '1106844', '0', '1106844', '865592', '97892', b'', 'marlene', '2629742') 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 (20981321) 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 (2629742 ) ) 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 (20981321) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340640182, 'portfolio_id': 20981321}, {'photo_id': 1340640175, 'portfolio_id': 20981321}, {'photo_id': 1340640172, 'portfolio_id': 20981321}, {'photo_id': 1340640150, 'portfolio_id': 20981321}, {'photo_id': 1340640146, 'portfolio_id': 20981321}, {'photo_id': 1340640141, 'portfolio_id': 20981321}, {'photo_id': 1340640136, 'portfolio_id': 20981321}, {'photo_id': 1340640128, 'portfolio_id': 20981321}, {'photo_id': 1340640111, 'portfolio_id': 20981321}, {'photo_id': 1340640051, 'portfolio_id': 20981321}, {'photo_id': 1340640046, 'portfolio_id': 20981321}, {'photo_id': 1340640041, 'portfolio_id': 20981321}, {'photo_id': 1340640013, 'portfolio_id': 20981321}, {'photo_id': 1340640008, 'portfolio_id': 20981321}, {'photo_id': 1340640002, 'portfolio_id': 20981321}, {'photo_id': 1340639998, 'portfolio_id': 20981321}, {'photo_id': 1340639991, 'portfolio_id': 20981321}, {'photo_id': 1340639981, 'portfolio_id': 20981321}, {'photo_id': 1340639950, 'portfolio_id': 20981321}, {'photo_id': 1340639945, 'portfolio_id': 20981321}, {'photo_id': 1340639939, 'portfolio_id': 20981321}, {'photo_id': 1340639935, 'portfolio_id': 20981321}, {'photo_id': 1340639930, 'portfolio_id': 20981321}, {'photo_id': 1340639926, 'portfolio_id': 20981321}, {'photo_id': 1340639899, 'portfolio_id': 20981321}, {'photo_id': 1340639892, 'portfolio_id': 20981321}, {'photo_id': 1340639888, 'portfolio_id': 20981321}, {'photo_id': 1340639887, 'portfolio_id': 20981321}, {'photo_id': 1340639883, 'portfolio_id': 20981321}, {'photo_id': 1340639835, 'portfolio_id': 20981321}, {'photo_id': 1340639830, 'portfolio_id': 20981321}, {'photo_id': 1340639825, 'portfolio_id': 20981321}, {'photo_id': 1340639822, 'portfolio_id': 20981321}, {'photo_id': 1340639818, 'portfolio_id': 20981321}, {'photo_id': 1340639802, 'portfolio_id': 20981321}, {'photo_id': 1340639767, 'portfolio_id': 20981321}, {'photo_id': 1340639762, 'portfolio_id': 20981321}, {'photo_id': 1340639754, 'portfolio_id': 20981321}, {'photo_id': 1340639741, 'portfolio_id': 20981321}, {'photo_id': 1340639675, 'portfolio_id': 20981321}, {'photo_id': 1340639670, 'portfolio_id': 20981321}, {'photo_id': 1340639664, 'portfolio_id': 20981321}, {'photo_id': 1340639660, 'portfolio_id': 20981321}, {'photo_id': 1340639658, 'portfolio_id': 20981321}, {'photo_id': 1340639654, 'portfolio_id': 20981321}, {'photo_id': 1340639616, 'portfolio_id': 20981321}, {'photo_id': 1340639611, 'portfolio_id': 20981321}, {'photo_id': 1340639609, 'portfolio_id': 20981321}, {'photo_id': 1340639581, 'portfolio_id': 20981321}, {'photo_id': 1340639573, 'portfolio_id': 20981321}, {'photo_id': 1340639568, 'portfolio_id': 20981321}, {'photo_id': 1340639559, 'portfolio_id': 20981321}, {'photo_id': 1340639544, 'portfolio_id': 20981321}, {'photo_id': 1340639532, 'portfolio_id': 20981321}, {'photo_id': 1340639113, 'portfolio_id': 20981321}, {'photo_id': 1340639065, 'portfolio_id': 20981321}, {'photo_id': 1340639062, 'portfolio_id': 20981321}, {'photo_id': 1340639045, 'portfolio_id': 20981321}] map_portfolio_id_photo_id: {20981321: [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111, 1340640051, 1340640046, 1340640041, 1340640013, 1340640008, 1340640002, 1340639998, 1340639991, 1340639981, 1340639950, 1340639945, 1340639939, 1340639935, 1340639930, 1340639926, 1340639899, 1340639892, 1340639888, 1340639887, 1340639883, 1340639835, 1340639830, 1340639825, 1340639822, 1340639818, 1340639802, 1340639767, 1340639762, 1340639754, 1340639741, 1340639675, 1340639670, 1340639664, 1340639660, 1340639658, 1340639654, 1340639616, 1340639611, 1340639609, 1340639581, 1340639573, 1340639568, 1340639559, 1340639544, 1340639532, 1340639113, 1340639065, 1340639062, 1340639045]} ##### 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.016409635543823242 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 3 15:58: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 (20981321) 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 : 20981321 get user id for portfolio 20981321 get sub ptf for main ptf 20981321, type 3726 and hashtags ['kraft', 'mal_croppe', 'Carton_brun', 'papier', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'environnement', 'metal', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20981321 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','papier','plastique','cartonnette','Teint_Dans_La_Masse','Carton_gris','flou','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20981321 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','papier','plastique','cartonnette','Teint_Dans_La_Masse','Carton_gris','flou','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20981321, 'sub_port_id': 20981351, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601534, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'cartonnette': {'main_port_id': 20981321, 'sub_port_id': 20981352, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601535, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'Carton_brun': {'main_port_id': 20981321, 'sub_port_id': 20981353, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601536, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'autre_refus': {'main_port_id': 20981321, 'sub_port_id': 20981354, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601537, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'mal_croppe': {'main_port_id': 20981321, 'sub_port_id': 20981355, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601538, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'environnement': {'main_port_id': 20981321, 'sub_port_id': 20981356, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601539, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'papier': {'main_port_id': 20981321, 'sub_port_id': 20981357, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601540, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'flou': {'main_port_id': 20981321, 'sub_port_id': 20981358, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601541, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'plastique': {'main_port_id': 20981321, 'sub_port_id': 20981359, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601542, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'metal': {'main_port_id': 20981321, 'sub_port_id': 20981360, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601543, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'Carton_gris': {'main_port_id': 20981321, 'sub_port_id': 20981361, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601544, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20981321, 'sub_port_id': 20981362, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601545, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20981351 , 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=20981321 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 (20981351) result : ((1340639867,), (1340639868,), (1340640098,), (1340640234,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981352 , 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=20981321 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 (20981352) result : ((1340639759,), (1340639992,), (1340640093,), (1340640124,), (1340640125,), (1340640126,), (1340640127,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981353 , 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=20981321 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 (20981353) result : ((1340639866,), (1340639968,), (1340639969,), (1340639970,), (1340639971,), (1340640094,), (1340640130,), (1340640180,), (1340640231,), (1340640232,), (1340640233,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981354 , 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=20981321 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 (20981354) result : ((1340639749,), (1340639750,), (1340639751,), (1340639752,), (1340639753,), (1340639853,), (1340639854,), (1340639855,), (1340639965,), (1340639966,), (1340639985,), (1340639987,), (1340639988,), (1340639989,), (1340639990,), (1340640089,), (1340640090,), (1340640091,), (1340640113,), (1340640114,), (1340640115,), (1340640116,), (1340640117,), (1340640118,), (1340640119,), (1340640120,), (1340640121,), (1340640178,), (1340640179,), (1340640216,), (1340640217,), (1340640218,), (1340640219,), (1340640220,), (1340640221,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981355 , 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=20981321 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 (20981355) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981356 , 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=20981321 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 (20981356) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981357 , 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=20981321 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 (20981357) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981358 , 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=20981321 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 (20981358) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981359 , 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=20981321 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 (20981359) result : ((1340639760,), (1340639973,), (1340639995,), (1340639996,), (1340640096,), (1340640097,), (1340640133,), (1340640134,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981360 , 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=20981321 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 (20981360) result : ((1340640135,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981361 , 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=20981321 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 (20981361) result : ((1340639756,), (1340639856,), (1340639857,), (1340639967,), (1340640122,), (1340640223,), (1340640224,), (1340640225,), (1340640226,), (1340640227,), (1340640228,), (1340640229,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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 20981362 , 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=20981321 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 (20981362) result : ((1340639743,), (1340639745,), (1340639746,), (1340639747,), (1340639847,), (1340639848,), (1340639964,), (1340639982,), (1340639983,), (1340640207,), (1340640208,), (1340640209,), (1340640210,), (1340640211,), (1340640212,), (1340640213,), (1340640214,), (1340640215,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20981321) result : ((1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) 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`=20981321 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','papier','plastique','cartonnette','Teint_Dans_La_Masse','Carton_gris','flou','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20981321 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_brun','papier','plastique','cartonnette','Teint_Dans_La_Masse','Carton_gris','flou','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20981321, 'sub_port_id': 20981363, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601546, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'cartonnette': {'main_port_id': 20981321, 'sub_port_id': 20981364, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601547, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'Carton_brun': {'main_port_id': 20981321, 'sub_port_id': 20981365, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601548, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'autre_refus': {'main_port_id': 20981321, 'sub_port_id': 20981366, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601549, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'mal_croppe': {'main_port_id': 20981321, 'sub_port_id': 20981367, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601550, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'environnement': {'main_port_id': 20981321, 'sub_port_id': 20981368, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601551, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'papier': {'main_port_id': 20981321, 'sub_port_id': 20981369, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601552, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'flou': {'main_port_id': 20981321, 'sub_port_id': 20981370, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601553, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'plastique': {'main_port_id': 20981321, 'sub_port_id': 20981371, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601554, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'metal': {'main_port_id': 20981321, 'sub_port_id': 20981372, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601555, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'Carton_gris': {'main_port_id': 20981321, 'sub_port_id': 20981373, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601556, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20981321, 'sub_port_id': 20981374, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13601557, 'last_updated_at': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 15, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 15, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981353 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981354 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981355 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20981374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20981362 lien utilise dans velours : https://www.fotonower.com/velours/20981363,20981364,20981365,20981366,20981367,20981368,20981369,20981370,20981371,20981372,20981373,20981374?tags=kraft,cartonnette,Carton_brun,autre_refus,mal_croppe,environnement,papier,flou,plastique,metal,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20981321]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] map_info['map_portfolio_photo'] : {20981321: [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111, 1340640051, 1340640046, 1340640041, 1340640013, 1340640008, 1340640002, 1340639998, 1340639991, 1340639981, 1340639950, 1340639945, 1340639939, 1340639935, 1340639930, 1340639926, 1340639899, 1340639892, 1340639888, 1340639887, 1340639883, 1340639835, 1340639830, 1340639825, 1340639822, 1340639818, 1340639802, 1340639767, 1340639762, 1340639754, 1340639741, 1340639675, 1340639670, 1340639664, 1340639660, 1340639658, 1340639654, 1340639616, 1340639611, 1340639609, 1340639581, 1340639573, 1340639568, 1340639559, 1340639544, 1340639532, 1340639113, 1340639065, 1340639062, 1340639045]} final : False mtd_id 4302 list_pids : [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] Looping around the photos to save general results len do output : 1 /20981321. 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, '2629742') ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20981321', "{'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362}", None, None, None, None, '2629742'), ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742')] time used for this insertion : 0.01469278335571289 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4329428672790527 time spend to save output : 0.015004396438598633 total time spend for step 1 : 1.4479472637176514 step2:final Mon Mar 3 15:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20981321) 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 20981321 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340639113,1340639065,1340639062,1340639045,1340639581,1340639573,1340639568,1340639559,1340639544,1340639532,1340639616,1340639611,1340639609,1340639675,1340639670,1340639664,1340639660,1340639658,1340639654,1340639767,1340639762,1340639754,1340639741,1340639835,1340639830,1340639825,1340639822,1340639818,1340639802,1340639899,1340639892,1340639888,1340639887,1340639883,1340639950,1340639945,1340639939,1340639935,1340639930,1340639926,1340640013,1340640008,1340640002,1340639998,1340639991,1340639981,1340640051,1340640046,1340640041,1340640150,1340640146,1340640141,1340640136,1340640128,1340640111,1340640182,1340640175,1340640172); 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([20981321]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} new output for save of step final : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] map_info['map_portfolio_photo'] : {20981321: [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111, 1340640051, 1340640046, 1340640041, 1340640013, 1340640008, 1340640002, 1340639998, 1340639991, 1340639981, 1340639950, 1340639945, 1340639939, 1340639935, 1340639930, 1340639926, 1340639899, 1340639892, 1340639888, 1340639887, 1340639883, 1340639835, 1340639830, 1340639825, 1340639822, 1340639818, 1340639802, 1340639767, 1340639762, 1340639754, 1340639741, 1340639675, 1340639670, 1340639664, 1340639660, 1340639658, 1340639654, 1340639616, 1340639611, 1340639609, 1340639581, 1340639573, 1340639568, 1340639559, 1340639544, 1340639532, 1340639113, 1340639065, 1340639062, 1340639045]} final : False mtd_id 4302 list_pids : [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] Looping around the photos to save general results len do output : 9 /1340640182.Didn't retrieve data . /1340640175.Didn't retrieve data . /1340640172.Didn't retrieve data . /1340640150.Didn't retrieve data . /1340640146.Didn't retrieve data . /1340640141.Didn't retrieve data . /1340640136.Didn't retrieve data . /1340640128.Didn't retrieve data . /1340640111.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, '2629742') ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20981321', '1340640182', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640175', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640172', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640150', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640146', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640141', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640136', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640128', '0.08770472574578336', None, None, None, None, '2629742'), ('4302', '20981321', '1340640111', '0.08770472574578336', None, None, None, None, '2629742')] time used for this insertion : 0.013197898864746094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07178878784179688 time spend to save output : 0.016356945037841797 total time spend for step 2 : 0.08814573287963867 step3:velours_tree Mon Mar 3 15:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20981321: [{'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362}]} input_args_next_step : {20981321: ()} output_args : {20981321: [{'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362}]} args : 20981321 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 : ({'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20981321) 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([20981321]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 1.0284571647644043 time spend to save output : 5.91278076171875e-05 total time spend for step 3 : 1.0285162925720215 step4:send_mail_cod Mon Mar 3 15:59: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 : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} input_args_next_step : {1340640182: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640182 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640175 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640172 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640150 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640146 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640141 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640136 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640128 depend.output_id : 0 input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ()} output_args : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',)} args : 1340640111 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 : {20981321: [{'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362}]} input_args_next_step : {1340640182: ('0.08770472574578336',), 1340640175: ('0.08770472574578336',), 1340640172: ('0.08770472574578336',), 1340640150: ('0.08770472574578336',), 1340640146: ('0.08770472574578336',), 1340640141: ('0.08770472574578336',), 1340640136: ('0.08770472574578336',), 1340640128: ('0.08770472574578336',), 1340640111: ('0.08770472574578336',), 20981321: ()} output_args : {20981321: [{'kraft': 20981351, 'cartonnette': 20981352, 'Carton_brun': 20981353, 'autre_refus': 20981354, 'mal_croppe': 20981355, 'environnement': 20981356, 'papier': 20981357, 'flou': 20981358, 'plastique': 20981359, 'metal': 20981360, 'Carton_gris': 20981361, 'Teint_Dans_La_Masse': 20981362}]} args : 20981321 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.08770472574578336',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20981321) 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 (1340640182,1340640175,1340640172,1340640150,1340640146,1340640141,1340640136,1340640128,1340640111) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340640111 begin to download photo : 1340640136 begin to download photo : 1340640146 begin to download photo : 1340640172 begin to download photo : 1340640182 download finish for photo 1340640111 begin to download photo : 1340640128 download finish for photo 1340640136 begin to download photo : 1340640141 download finish for photo 1340640182 download finish for photo 1340640146 begin to download photo : 1340640150 download finish for photo 1340640172 begin to download photo : 1340640175 download finish for photo 1340640128 download finish for photo 1340640141 download finish for photo 1340640150 download finish for photo 1340640175 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20981321_03-03-2025_15_59_01.pdf 20981351 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=20981351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340639867: '1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448698_0.png', 1340639868: '1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448750_0.png', 1340640098: '1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449902_0.png', 1340640234: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450534_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9d65125fc3bcf5d79cf4173e30ab9a48_67859786.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9d23351b0e4b6511ab4c2927d38a865e_95576405.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6ec743217527d4b60059278e9fd0fba7_12656838.png change filename to text .imagette209813511741013941/ imagette209813511741013941/1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448750_0.png.png imagette209813511741013941/1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449902_0.png.png imagette209813511741013941/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450534_0.png.png imagette209813511741013941/1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448698_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/24633f0013ab82451a55de834ac4f962_54093823.png imagette209813511741013941 20981352 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=20981352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340639759: '1741013353_2776647_1340639065_e9116729cb82a1fb85a9d29c2195fcae_rle_crop_3692447752_0.png', 1340639992: '1741013611_2780706_1340639818_87cb3460cdd327903ac44523fe4054e0_rle_crop_3692449742_0.png', 1340640093: '1741013711_2781753_1340639887_9dd9f7e97dd6791fbfb4f3156469dcf5_rle_crop_3692449925_0.png', 1340640124: '1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450221_0.png', 1340640125: '1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450213_0.png', 1340640126: '1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450238_0.png', 1340640127: '1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450229_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0b868ea5f769b3fde4683d5f5964bd62_78173728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/55dc069f8bd79640e87950723ed2e958_29192202.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7220f479d545139f1b4f083686f03fa6_15379825.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d0c9becfe68ba1eb08e7096b90706643_92340634.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c16089d68a87b24bf0533cdf65e55079_48086152.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/594472c4d0f51b307980a9caf60012e9_2246267.png change filename to text .imagette209813521741013941/ imagette209813521741013941/1741013711_2781753_1340639887_9dd9f7e97dd6791fbfb4f3156469dcf5_rle_crop_3692449925_0.png.png imagette209813521741013941/1741013353_2776647_1340639065_e9116729cb82a1fb85a9d29c2195fcae_rle_crop_3692447752_0.png.png imagette209813521741013941/1741013611_2780706_1340639818_87cb3460cdd327903ac44523fe4054e0_rle_crop_3692449742_0.png.png imagette209813521741013941/1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450221_0.png.png imagette209813521741013941/1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450213_0.png.png imagette209813521741013941/1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450229_0.png.png imagette209813521741013941/1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450238_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/746a0aa19708e8b8746269d002dc0c2e_94297238.png imagette209813521741013941 20981354 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=20981354 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340640121: '1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450240_0.png', 1340640113: '1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450146_0.png', 1340640114: '1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450153_0.png', 1340640115: '1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450156_0.png', 1340640116: '1741013731_2781998_1340639939_e0d788bde17d4a1dba76a62d6542c5d1_rle_crop_3692450171_0.png', 1340640117: '1741013731_2781998_1340639939_e0d788bde17d4a1dba76a62d6542c5d1_rle_crop_3692450177_0.png', 1340640118: '1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450197_0.png', 1340640119: '1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450209_0.png', 1340640120: '1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450222_0.png', 1340640091: '1741013711_2781753_1340639883_08611146bd54f142cadbdb6ea5983699_rle_crop_3692449941_0.png', 1340640178: '1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450282_0.png', 1340640179: '1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450283_0.png', 1340640216: '1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450500_0.png', 1340640217: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450524_0.png', 1340640218: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450544_0.png', 1340640219: '1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450560_0.png', 1340640220: '1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450573_0.png', 1340640221: '1741013833_2782933_1340639981_30cbbd34b0fcbcc5bc1b25d21712e9b4_rle_crop_3692450583_0.png', 1340639966: '1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449659_0.png', 1340639750: '1741013353_2776647_1340639113_9ff51aedd2f0504434132cf338011278_rle_crop_3692447736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bdd0a14ba9e9dcc37d04dc082432d7d3_41835897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cd30840d49d8ab235ac52d9670403dbd_5435736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8ada52a0e26342283a3468020990c9e3_63321087.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f9e0649db162cf9e6be82f5e5af927cc_76780060.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5474e29d666fd4017d7ed243dba715da_96987894.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/86129294705efba0675cee1b063e6c27_55184423.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/979d51288e9961fa07d36df1002606c5_98941940.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6dd5ba985cc3a1fbdaa0f27f2ac7062e_3292106.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ecd90d6e37c56fa566561af133e6aa9b_74391894.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/487bf5c2f43e2a4ecf24991828b1127b_66665092.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2edebbbde06c306ee2e7e6945a8534f9_35269297.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bf7c3497ce260eb67e933eb86e033457_19299841.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4889af53ded7002887e0f12da813ba83_37686051.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d68f10fd2d308c5d7b0723410c63216b_33031623.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2bb3afdcf6adfb46bd7c3b39f63b76b5_50858474.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d76d5f2752a808e2936ffd54446a2612_80025752.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/80dd822e55f78943b5e42fb31224286b_48219011.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fa93c6bc6f63170c2acdf7b6df65b0da_4355621.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/39f0bb8fd28659b91866944c2b671059_14944573.png change filename to text .imagette209813541741013941/ imagette209813541741013941/1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450282_0.png.png imagette209813541741013941/1741013833_2782933_1340639981_30cbbd34b0fcbcc5bc1b25d21712e9b4_rle_crop_3692450583_0.png.png imagette209813541741013941/1741013731_2781998_1340639926_15c91426947033cf613024e024af57f9_rle_crop_3692450240_0.png.png imagette209813541741013941/1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450500_0.png.png imagette209813541741013941/1741013731_2781998_1340639939_e0d788bde17d4a1dba76a62d6542c5d1_rle_crop_3692450171_0.png.png imagette209813541741013941/1741013731_2781998_1340639939_e0d788bde17d4a1dba76a62d6542c5d1_rle_crop_3692450177_0.png.png imagette209813541741013941/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450544_0.png.png imagette209813541741013941/1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450209_0.png.png imagette209813541741013941/1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450197_0.png.png imagette209813541741013941/1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450146_0.png.png imagette209813541741013941/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450524_0.png.png imagette209813541741013941/1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450573_0.png.png imagette209813541741013941/1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450153_0.png.png imagette209813541741013941/1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450156_0.png.png imagette209813541741013941/1741013353_2776647_1340639113_9ff51aedd2f0504434132cf338011278_rle_crop_3692447736_0.png.png imagette209813541741013941/1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449659_0.png.png imagette209813541741013941/1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450560_0.png.png imagette209813541741013941/1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450283_0.png.png imagette209813541741013941/1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450222_0.png.png imagette209813541741013941/1741013711_2781753_1340639883_08611146bd54f142cadbdb6ea5983699_rle_crop_3692449941_0.png.png imagette209813551741013942/ imagette209813581741013942/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6b1614772f85113bc0e0cbfbac9d6986_41039526.png imagette209813541741013941 20981355 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=20981355 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209813551741013942 20981358 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=20981358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209813581741013942 20981359 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=20981359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340639760: '1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447529_0.png', 1340639973: '1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449662_0.png', 1340639995: '1741013611_2780706_1340639830_19586d38289bb255bcdfc76248d5acb3_rle_crop_3692449699_0.png', 1340639996: '1741013611_2780706_1340639822_d83ece2ec64c801888d4b78f28ff8354_rle_crop_3692449725_0.png', 1340640096: '1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449903_0.png', 1340640097: '1741013711_2781753_1340639883_08611146bd54f142cadbdb6ea5983699_rle_crop_3692449931_0.png', 1340640133: '1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450152_0.png', 1340640134: '1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450185_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/727f65a16c8a491bb2b518ad8ccc1ebf_40674664.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cf0bea151889d827c3421371b5b93589_50784452.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2216332ecc37e30cb3fb3971cd42caa3_55968944.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/14668bf91d593809cc1fab7e9c31c366_45328547.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1330337808aad5bcfe2d953985533c48_30785539.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8905cd98d171f2e190ddffce8abef443_21267637.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4d823e3922625e8a6678dc88f301a483_52047657.png change filename to text .imagette209813591741013942/ imagette209813591741013942/1741013711_2781753_1340639883_08611146bd54f142cadbdb6ea5983699_rle_crop_3692449931_0.png.png imagette209813591741013942/1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449662_0.png.png imagette209813591741013942/1741013611_2780706_1340639822_d83ece2ec64c801888d4b78f28ff8354_rle_crop_3692449725_0.png.png imagette209813591741013942/1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450152_0.png.png imagette209813591741013942/1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450185_0.png.png imagette209813591741013942/1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449903_0.png.png imagette209813591741013942/1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447529_0.png.png imagette209813591741013942/1741013611_2780706_1340639830_19586d38289bb255bcdfc76248d5acb3_rle_crop_3692449699_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f61afc28b37f7f1f7c772b83da8af74f_51672903.png imagette209813591741013942 20981360 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=20981360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340640135: '1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450193_0.png'} change filename to text .imagette209813601741013943/ imagette209813601741013943/1741013731_2781998_1340639935_66f88eb368caf7eb1d0cfc024234c4fd_rle_crop_3692450193_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a7786dae36c825caa86540719c6997bc_70840105.png imagette209813601741013943 20981353 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=20981353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340639866: '1741013473_2779118_1340639611_70ecc98ca2d059b0776106a94ab413e5_rle_crop_3692448709_0.png', 1340639968: '1741013592_2780536_1340639835_f6e5fa78345de3ad7962b7b431039c60_rle_crop_3692449481_0.png', 1340639969: '1741013592_2780536_1340639754_d744e8f891d3c1a2ca8f7c2726ed1efd_rle_crop_3692449493_0.png', 1340639970: '1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449667_0.png', 1340639971: '1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449671_0.png', 1340640094: '1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449904_0.png', 1340640130: '1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450151_0.png', 1340640180: '1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450280_0.png', 1340640231: '1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450499_0.png', 1340640232: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450515_0.png', 1340640233: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450514_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d97c4571882509ec24ea4eebc40e8ca7_34216480.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e11389e827053c799bfb47394b296f74_34451246.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eb28f0f652d3f69c3ca6468c8aec781d_97925545.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f7b2348e8a7463395acadf8005df31a7_8205458.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/df79699fdb0f96a887b1498bf9ca95d0_31839313.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9842c4e02ffb9bc53c4d9c399281c499_79218276.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/69f57b0988078f861a066c1fb8fb4160_79172686.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d72df3b4ca5b12312fea695c46167fc1_91081938.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5ba821d447d4cd6d7483e2a803f2d768_45585509.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fd65938a441080ad8d5719369221c595_61920137.png change filename to text .imagette209813531741013943/ imagette209813531741013943/1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449671_0.png.png imagette209813531741013943/1741013592_2780536_1340639835_f6e5fa78345de3ad7962b7b431039c60_rle_crop_3692449481_0.png.png imagette209813531741013943/1741013592_2780536_1340639754_d744e8f891d3c1a2ca8f7c2726ed1efd_rle_crop_3692449493_0.png.png imagette209813531741013943/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450514_0.png.png imagette209813531741013943/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450515_0.png.png imagette209813531741013943/1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450499_0.png.png imagette209813531741013943/1741013473_2779118_1340639611_70ecc98ca2d059b0776106a94ab413e5_rle_crop_3692448709_0.png.png imagette209813531741013943/1741013731_2781998_1340639945_95887299ec511daf719ebbbd6dbd1662_rle_crop_3692450151_0.png.png imagette209813531741013943/1741013822_2782790_1340640041_34a37f32a9398469b1ffba0dbb604c0e_rle_crop_3692450280_0.png.png imagette209813531741013943/1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449667_0.png.png imagette209813531741013943/1741013711_2781753_1340639950_f9588646f69181f811a786b37ed584bf_rle_crop_3692449904_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9c3468b76b75b693c63db90ecaa01f7e_99214403.png imagette209813531741013943 20981361 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=20981361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340639756: '1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447534_0.png', 1340639856: '1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448691_0.png', 1340639857: '1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448754_0.png', 1340639967: '1741013592_2780536_1340639835_f6e5fa78345de3ad7962b7b431039c60_rle_crop_3692449476_0.png', 1340640122: '1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450212_0.png', 1340640223: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450510_0.png', 1340640224: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450516_0.png', 1340640225: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450520_0.png', 1340640226: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450535_0.png', 1340640227: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450549_0.png', 1340640228: '1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450559_0.png', 1340640229: '1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450571_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e14da17380717f10ff30130f9510c6f4_9874985.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4caca8894da66f7ccd94c3fe24159fa1_45172398.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6831795ac7f65f1a50f86c65340c26ab_21097843.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3949f2a51a5e6a826a07387db8146bf3_26054047.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/090931dd91c9d67b23cac256b12622ce_97107184.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8eee75c9c14afcdf5464b95c0bd1cc2d_64835150.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/54c73663e088a70de9dfb1f9d33a62b0_96257515.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4dee18580a5875e6fef67a6c566d6ff1_3367369.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/da1d27d32de5dd970dfaa1ffac5c9b42_59164715.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/076a8607bddae1830273608b28867e4f_39979712.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b11e9f5101aecf0c34ae62d9d9a7242a_15370788.png change filename to text .imagette209813611741013943/ imagette209813611741013943/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450549_0.png.png imagette209813611741013943/1741013592_2780536_1340639835_f6e5fa78345de3ad7962b7b431039c60_rle_crop_3692449476_0.png.png imagette209813611741013943/1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450559_0.png.png imagette209813611741013943/1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447534_0.png.png imagette209813611741013943/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450535_0.png.png imagette209813611741013943/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450510_0.png.png imagette209813611741013943/1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448754_0.png.png imagette209813611741013943/1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448691_0.png.png imagette209813611741013943/1741013731_2781998_1340639930_609f8c7b8b229f8769f4d1fa7543fe15_rle_crop_3692450212_0.png.png imagette209813611741013943/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450520_0.png.png imagette209813611741013943/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450516_0.png.png imagette209813611741013943/1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450571_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4e840dc9964c8083de136709208e78b7_34724657.png imagette209813611741013943 20981362 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=20981362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340640207: '1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450498_0.png', 1340640215: '1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450574_0.png', 1340640214: '1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450561_0.png', 1340640213: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450545_0.png', 1340640212: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450546_0.png', 1340640211: '1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450542_0.png', 1340640210: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450531_0.png', 1340640209: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450527_0.png', 1340640208: '1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450523_0.png', 1340639743: '1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447530_0.png', 1340639983: '1741013611_2780706_1340639825_6ab286bc61c79ad5d0eaeac5adff6a4e_rle_crop_3692449720_0.png', 1340639982: '1741013611_2780706_1340639830_19586d38289bb255bcdfc76248d5acb3_rle_crop_3692449700_0.png', 1340639964: '1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449675_0.png', 1340639848: '1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448753_0.png', 1340639847: '1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448692_0.png', 1340639747: '1741013353_2776647_1340639065_e9116729cb82a1fb85a9d29c2195fcae_rle_crop_3692447747_0.png', 1340639746: '1741013353_2776647_1340639113_9ff51aedd2f0504434132cf338011278_rle_crop_3692447732_0.png', 1340639745: '1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447532_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6215619cb0a8a29690f7061cd33600f6_37646091.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0b73d6b9c7c48daa89553a263808ef9e_99808448.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/df5e23f61c55b7640a551d7640df3b65_38149868.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/21e1e9cc59cf8fdb19180a6f5470e068_29498243.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fc8e824ec5e2b3cf27e45327cd011f13_30720362.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cde6d58749f2d06239c8b4fa2f66e4b7_56268191.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/74af4796b6d82e8433a5f1c97b2bacf4_30460766.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a06df8ecfa44072e1f220a2509c1948e_84274123.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8e46994636c0db5e9a923de74a91b029_54323060.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5494a88868fd6a2f939e01c6b7374d9c_83042756.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/169834144b983de2ea34ff06602f1cfe_37654206.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ce573641a68eac00a85d1ab6fa4eb95c_75535338.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/abfb1762d1f4e59371a1579b44e250b4_12733288.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dd421a5d3f5c73e6e4ada74223c8c7c6_71041743.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/860edaed8f3224cbe0cddd7f753e9865_77652205.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2bfaba87279190dfe805703c8f0ad8e7_12242357.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2018dcc7434c0d9c2aac2ef34230db08_18016716.png change filename to text .imagette209813621741013944/ imagette209813621741013944/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450527_0.png.png imagette209813621741013944/1741013833_2782933_1340639991_f2242b4e7be85b9e5fbcc300b0dd4742_rle_crop_3692450574_0.png.png imagette209813621741013944/1741013833_2782933_1340640051_1a3a40ab7e8d92db2ad21898df904b38_rle_crop_3692450498_0.png.png imagette209813621741013944/1741013611_2780706_1340639830_19586d38289bb255bcdfc76248d5acb3_rle_crop_3692449700_0.png.png imagette209813621741013944/1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447530_0.png.png imagette209813621741013944/1741013611_2780706_1340639825_6ab286bc61c79ad5d0eaeac5adff6a4e_rle_crop_3692449720_0.png.png imagette209813621741013944/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450531_0.png.png imagette209813621741013944/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450545_0.png.png imagette209813621741013944/1741013833_2782933_1340639998_c8be875361e520826ac83bea93c6363f_rle_crop_3692450561_0.png.png imagette209813621741013944/1741013353_2776647_1340639581_e5fd312447643d91ebeeda45b543ac19_rle_crop_3692447532_0.png.png imagette209813621741013944/1741013353_2776647_1340639065_e9116729cb82a1fb85a9d29c2195fcae_rle_crop_3692447747_0.png.png imagette209813621741013944/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450546_0.png.png imagette209813621741013944/1741013353_2776647_1340639113_9ff51aedd2f0504434132cf338011278_rle_crop_3692447732_0.png.png imagette209813621741013944/1741013473_2779118_1340639609_a91cf9783acc393ec871cc5499330b3b_rle_crop_3692448753_0.png.png imagette209813621741013944/1741013833_2782933_1340640008_25809077fd3684fd74d4e50c18bfd56a_rle_crop_3692450523_0.png.png imagette209813621741013944/1741013833_2782933_1340640002_a623dbc70601addc326076b97bbb4c04_rle_crop_3692450542_0.png.png imagette209813621741013944/1741013592_2780536_1340639741_7d78ad0a4d856bf5e9012e383243efb5_rle_crop_3692449675_0.png.png imagette209813621741013944/1741013473_2779118_1340639675_7129f20c9924380bdc8fc4438a20b7a1_rle_crop_3692448692_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/09e7f55c309ba0670ef61a52b4a46172_40456982.png imagette209813621741013944 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20981321 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20981363,20981364,20981365,20981366,20981367,20981368,20981369,20981370,20981371,20981372,20981373,20981374?tags=kraft,cartonnette,Carton_brun,autre_refus,mal_croppe,environnement,papier,flou,plastique,metal,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1340640182] : ('0.08770472574578336',) no score found for photo 1340640182 We are sending mail with results at report@fotonower.com args[1340640175] : ('0.08770472574578336',) no score found for photo 1340640175 We are sending mail with results at report@fotonower.com args[1340640172] : ('0.08770472574578336',) no score found for photo 1340640172 We are sending mail with results at report@fotonower.com args[1340640150] : ('0.08770472574578336',) no score found for photo 1340640150 We are sending mail with results at report@fotonower.com args[1340640146] : ('0.08770472574578336',) no score found for photo 1340640146 We are sending mail with results at report@fotonower.com args[1340640141] : ('0.08770472574578336',) no score found for photo 1340640141 We are sending mail with results at report@fotonower.com args[1340640136] : ('0.08770472574578336',) no score found for photo 1340640136 We are sending mail with results at report@fotonower.com args[1340640128] : ('0.08770472574578336',) no score found for photo 1340640128 We are sending mail with results at report@fotonower.com args[1340640111] : ('0.08770472574578336',) no score found for photo 1340640111 We are sending mail with results at report@fotonower.com refus_total : 0.08770472574578336 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=20981321 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_P20981321_03-03-2025_15_59_01.pdf results_Auto_P20981321_03-03-2025_15_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_15_59_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20981321','results_Auto_P20981321_03-03-2025_15_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_15_59_01.pdf','pdf','','0.35','0.08770472574578336') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20981321]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] map_info['map_portfolio_photo'] : {20981321: [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111, 1340640051, 1340640046, 1340640041, 1340640013, 1340640008, 1340640002, 1340639998, 1340639991, 1340639981, 1340639950, 1340639945, 1340639939, 1340639935, 1340639930, 1340639926, 1340639899, 1340639892, 1340639888, 1340639887, 1340639883, 1340639835, 1340639830, 1340639825, 1340639822, 1340639818, 1340639802, 1340639767, 1340639762, 1340639754, 1340639741, 1340639675, 1340639670, 1340639664, 1340639660, 1340639658, 1340639654, 1340639616, 1340639611, 1340639609, 1340639581, 1340639573, 1340639568, 1340639559, 1340639544, 1340639532, 1340639113, 1340639065, 1340639062, 1340639045]} final : False mtd_id 4302 list_pids : [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] 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, '2629742') ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20981321', '1340640182', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742')] time used for this insertion : 0.013862848281860352 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.59989333152771 time spend to save output : 0.014188766479492188 total time spend for step 4 : 5.614082098007202 step5:split_time_score Mon Mar 3 15:59: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 : ['20981321'] 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 : [('20981321',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20981321) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340640182: {'path': 'temp/1741013941_3020528_1340640182_2a73150cd7750d8a2673a5baf26dddc5.jpg', 'extension': 'jpg'}, 1340640111: {'path': 'temp/1741013941_3020528_1340640111_b0aa5c74f8971142cafc6b09c10d319f.jpg', 'extension': 'jpg'}, 1340640128: {'path': 'temp/1741013941_3020528_1340640128_cba28da05b752c25a5002fcbff143811.jpg', 'extension': 'jpg'}, 1340640136: {'path': 'temp/1741013941_3020528_1340640136_9c7d74e021bd7d1c5f216d0a08685269.jpg', 'extension': 'jpg'}, 1340640141: {'path': 'temp/1741013941_3020528_1340640141_c1fa19cbba63138a3ea713c1c719f1d1.jpg', 'extension': 'jpg'}, 1340640146: {'path': 'temp/1741013941_3020528_1340640146_f17c1cabe60648d3e2336fc4b4ff00e5.jpg', 'extension': 'jpg'}, 1340640150: {'path': 'temp/1741013941_3020528_1340640150_c9d71b00582b7ddf606251c010bb80bb.jpg', 'extension': 'jpg'}, 1340640172: {'path': 'temp/1741013941_3020528_1340640172_d4c711813433acc92648c0a7b82a5e14.jpg', 'extension': 'jpg'}, 1340640175: {'path': 'temp/1741013941_3020528_1340640175_cdb3ecf30fc5095feccf8324ca8c3658.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 = 20981321; (('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 = 20981321 group by h (('15', 58),) 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=20981321 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 (20981321) 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 (20981321) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20981321 Nombre de photos uploadées : 58 / 23040 (0%) 03032025 20981321 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 03032025 20981321 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1340639113, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9ff51aedd2f0504434132cf338011278.jpg', 'username': None, 'uploaded_at': 1741013179, 'text': 'image_03032025_15_45_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340639065, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e9116729cb82a1fb85a9d29c2195fcae.jpg', 'username': None, 'uploaded_at': 1741013179, 'text': 'image_03032025_15_45_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340639062, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ca11750170d409831aba3dbc109ec87a.jpg', 'username': None, 'uploaded_at': 1741013179, 'text': 'image_03032025_15_45_35_010149m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340639045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/18313ab6ab116838076f853574687973.jpg', 'username': None, 'uploaded_at': 1741013179, 'text': 'image_03032025_15_45_44_009131m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026841163635253906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20981321, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02231001853942871 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642837, 'mtr_portfolio_id': 20979676, 'dashboard_result_id': 9172698, '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_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642837, 'mtr_portfolio_id': 20980311, 'dashboard_result_id': 9172699, '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_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642837, 'mtr_portfolio_id': 20980858, 'dashboard_result_id': 9172700, '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_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1642837, 'mtr_portfolio_id': 20981321, 'dashboard_result_id': 9172701, '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_P20981321_03-03-2025_15_56_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, '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 = 20979676 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': 2629616, 'mtr_portfolio_id': 20979676, 'created_at': datetime.datetime(2025, 3, 3, 15, 18, 58), 'result': '0.08385893980639138', 'result_long': None, 'result_double': None}] Qualite : 0.08385893980639138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20979676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20979676 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_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}" where mtr_portfolio_id = 20979676 and dashboard_run_id = 1642837 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`=20979676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172698, 0.08385893980639138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20980311 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': 2629661, 'mtr_portfolio_id': 20980311, 'created_at': datetime.datetime(2025, 3, 3, 15, 35, 1), 'result': '0.07414809706872667', 'result_long': None, 'result_double': None}] Qualite : 0.07414809706872667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980311 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_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}" where mtr_portfolio_id = 20980311 and dashboard_run_id = 1642837 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`=20980311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172699, 0.07414809706872667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20980858 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': 2629706, 'mtr_portfolio_id': 20980858, 'created_at': datetime.datetime(2025, 3, 3, 15, 48, 58), 'result': '0.0915386185828911', 'result_long': None, 'result_double': None}] Qualite : 0.0915386185828911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980858 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_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}" where mtr_portfolio_id = 20980858 and dashboard_run_id = 1642837 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`=20980858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172700, 0.0915386185828911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20981321 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': 2629742, 'mtr_portfolio_id': 20981321, 'created_at': datetime.datetime(2025, 3, 3, 15, 59), 'result': '0.08770472574578336', 'result_long': None, 'result_double': None}] Qualite : 0.08770472574578336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20981321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_15_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20981321 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_P20981321_03-03-2025_15_59_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, 'pht': 3726}}" where mtr_portfolio_id = 20981321 and dashboard_run_id = 1642837 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`=20981321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9172701, 0.08770472574578336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_15_59_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, '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 (20979676,20980311,20980858,20981321) result : ((1340634285,), (1340634291,), (1340634526,), (1340634532,), (1340634537,), (1340634556,), (1340634608,), (1340634611,), (1340634619,), (1340634635,), (1340634701,), (1340634710,), (1340634718,), (1340634721,), (1340634728,), (1340634768,), (1340634781,), (1340634794,), (1340634812,), (1340634851,), (1340634855,), (1340634858,), (1340634862,), (1340634867,), (1340634906,), (1340634910,), (1340634917,), (1340634920,), (1340634991,), (1340635012,), (1340635016,), (1340635063,), (1340635067,), (1340635076,), (1340635081,), (1340635132,), (1340635138,), (1340635143,), (1340635146,), (1340635151,), (1340635155,), (1340635182,), (1340635186,), (1340635192,), (1340635196,), (1340635200,), (1340635207,), (1340635247,), (1340635255,), (1340635259,), (1340635291,), (1340635296,), (1340635305,), (1340635310,), (1340635361,), (1340635367,), (1340635370,), (1340635373,), (1340635426,), (1340635430,), (1340635436,), (1340635442,), (1340635566,), (1340635551,), (1340635561,), (1340636009,), (1340636016,), (1340636018,), (1340636045,), (1340636201,), (1340636210,), (1340636212,), (1340636220,), (1340636233,), (1340636239,), (1340636296,), (1340636307,), (1340636315,), (1340636318,), (1340636363,), (1340636365,), (1340636368,), (1340636371,), (1340636376,), (1340636382,), (1340636426,), (1340636428,), (1340636434,), (1340636505,), (1340636525,), (1340636629,), (1340636630,), (1340636632,), (1340636637,), (1340636668,), (1340636669,), (1340636672,), (1340636675,), (1340636722,), (1340636730,), (1340636736,), (1340636792,), (1340637316,), (1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,), (1340638446,), (1340638462,), (1340638469,), (1340638508,), (1340638512,), (1340638516,), (1340638519,), (1340638577,), (1340638590,), (1340638598,), (1340638603,), (1340638608,), (1340638613,), (1340638638,), (1340638642,), (1340638648,), (1340638654,), (1340638658,), (1340638695,), (1340638699,), (1340638703,), (1340638705,), (1340638712,), (1340638761,), (1340638768,), (1340638772,), (1340638775,), (1340638828,), (1340638832,), (1340638835,), (1340638839,), (1340638876,), (1340638878,), (1340638883,), (1340639118,), (1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20981321]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] map_info['map_portfolio_photo'] : {20981321: [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111, 1340640051, 1340640046, 1340640041, 1340640013, 1340640008, 1340640002, 1340639998, 1340639991, 1340639981, 1340639950, 1340639945, 1340639939, 1340639935, 1340639930, 1340639926, 1340639899, 1340639892, 1340639888, 1340639887, 1340639883, 1340639835, 1340639830, 1340639825, 1340639822, 1340639818, 1340639802, 1340639767, 1340639762, 1340639754, 1340639741, 1340639675, 1340639670, 1340639664, 1340639660, 1340639658, 1340639654, 1340639616, 1340639611, 1340639609, 1340639581, 1340639573, 1340639568, 1340639559, 1340639544, 1340639532, 1340639113, 1340639065, 1340639062, 1340639045]} final : True mtd_id 4302 list_pids : [1340640182, 1340640175, 1340640172, 1340640150, 1340640146, 1340640141, 1340640136, 1340640128, 1340640111] Looping around the photos to save general results len do output : 1 /20981321Didn'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, '2629742') ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742') ('4302', None, None, None, None, None, None, None, '2629742') ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20981321', 'None', None, None, None, None, '2629742'), ('4302', '20981321', '1340640182', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640175', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640172', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640150', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640146', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640141', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640136', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640128', None, None, None, None, None, '2629742'), ('4302', '20981321', '1340640111', None, None, None, None, None, '2629742')] time used for this insertion : 0.012812614440917969 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3459181785583496 time spend to save output : 0.013053417205810547 total time spend for step 5 : 0.35897159576416016 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 (2629742) 2.75user 2.34system 0:11.02elapsed 46%CPU (0avgtext+0avgdata 160420maxresident)k 26616inputs+17736outputs (133major+76412minor)pagefaults 0swaps