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 : 1627245 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 (2638603) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2638603) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070024 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2638603'] with mtr_portfolio_ids : ['21070024'] and first list_photo_ids : [] new path : /proc/1627245/ Name: python3 Umask: 0002 State: R (running) Tgid: 1627245 Ngid: 0 Pid: 1627245 PPid: 1627244 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1627245 NSpid: 1627245 NSpgid: 1624261 NSsid: 1624261 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98764 kB VmRSS: 98764 kB RssAnon: 59760 kB RssFile: 39004 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 46 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1627245', 'Ngid': '0', 'Pid': '1627245', 'PPid': '1627244', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1627245', 'NSpid': '1627245', 'NSpgid': '1624261', 'NSsid': '1624261', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98764 kB', 'VmRSS': '98764 kB', 'RssAnon': '59760 kB', 'RssFile': '39004 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '46', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '1627245', '1106844', '0', '1106844', '865592', '98764', b'', 'marlene', '2638603') 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 (21070024) 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 (2638603 ) ) 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 (21070024) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341038546, 'portfolio_id': 21070024}, {'photo_id': 1341038542, 'portfolio_id': 21070024}, {'photo_id': 1341038537, 'portfolio_id': 21070024}, {'photo_id': 1341038506, 'portfolio_id': 21070024}, {'photo_id': 1341038501, 'portfolio_id': 21070024}, {'photo_id': 1341038496, 'portfolio_id': 21070024}, {'photo_id': 1341038390, 'portfolio_id': 21070024}, {'photo_id': 1341038278, 'portfolio_id': 21070024}, {'photo_id': 1341038268, 'portfolio_id': 21070024}, {'photo_id': 1341038264, 'portfolio_id': 21070024}, {'photo_id': 1341038243, 'portfolio_id': 21070024}, {'photo_id': 1341038158, 'portfolio_id': 21070024}, {'photo_id': 1341038132, 'portfolio_id': 21070024}, {'photo_id': 1341038079, 'portfolio_id': 21070024}, {'photo_id': 1341038071, 'portfolio_id': 21070024}, {'photo_id': 1341038064, 'portfolio_id': 21070024}, {'photo_id': 1341038045, 'portfolio_id': 21070024}, {'photo_id': 1341038039, 'portfolio_id': 21070024}, {'photo_id': 1341038036, 'portfolio_id': 21070024}, {'photo_id': 1341038026, 'portfolio_id': 21070024}, {'photo_id': 1341038018, 'portfolio_id': 21070024}, {'photo_id': 1341037934, 'portfolio_id': 21070024}, {'photo_id': 1341037923, 'portfolio_id': 21070024}, {'photo_id': 1341037917, 'portfolio_id': 21070024}, {'photo_id': 1341037913, 'portfolio_id': 21070024}, {'photo_id': 1341037869, 'portfolio_id': 21070024}, {'photo_id': 1341037846, 'portfolio_id': 21070024}, {'photo_id': 1341037834, 'portfolio_id': 21070024}, {'photo_id': 1341037805, 'portfolio_id': 21070024}, {'photo_id': 1341037801, 'portfolio_id': 21070024}, {'photo_id': 1341037794, 'portfolio_id': 21070024}, {'photo_id': 1341037755, 'portfolio_id': 21070024}, {'photo_id': 1341037752, 'portfolio_id': 21070024}, {'photo_id': 1341037741, 'portfolio_id': 21070024}, {'photo_id': 1341037736, 'portfolio_id': 21070024}, {'photo_id': 1341037717, 'portfolio_id': 21070024}, {'photo_id': 1341037712, 'portfolio_id': 21070024}, {'photo_id': 1341037644, 'portfolio_id': 21070024}, {'photo_id': 1341037640, 'portfolio_id': 21070024}, {'photo_id': 1341037637, 'portfolio_id': 21070024}, {'photo_id': 1341037597, 'portfolio_id': 21070024}, {'photo_id': 1341037594, 'portfolio_id': 21070024}, {'photo_id': 1341037565, 'portfolio_id': 21070024}, {'photo_id': 1341037550, 'portfolio_id': 21070024}, {'photo_id': 1341037541, 'portfolio_id': 21070024}, {'photo_id': 1341037515, 'portfolio_id': 21070024}, {'photo_id': 1341037404, 'portfolio_id': 21070024}, {'photo_id': 1341037394, 'portfolio_id': 21070024}, {'photo_id': 1341037389, 'portfolio_id': 21070024}, {'photo_id': 1341037385, 'portfolio_id': 21070024}, {'photo_id': 1341037383, 'portfolio_id': 21070024}, {'photo_id': 1341037378, 'portfolio_id': 21070024}, {'photo_id': 1341037261, 'portfolio_id': 21070024}, {'photo_id': 1341037254, 'portfolio_id': 21070024}, {'photo_id': 1341037250, 'portfolio_id': 21070024}, {'photo_id': 1341037245, 'portfolio_id': 21070024}, {'photo_id': 1341037193, 'portfolio_id': 21070024}, {'photo_id': 1341037188, 'portfolio_id': 21070024}, {'photo_id': 1341037184, 'portfolio_id': 21070024}, {'photo_id': 1341037180, 'portfolio_id': 21070024}, {'photo_id': 1341037177, 'portfolio_id': 21070024}, {'photo_id': 1341037174, 'portfolio_id': 21070024}, {'photo_id': 1341036928, 'portfolio_id': 21070024}, {'photo_id': 1341036887, 'portfolio_id': 21070024}, {'photo_id': 1341036883, 'portfolio_id': 21070024}] map_portfolio_id_photo_id: {21070024: [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243, 1341038158, 1341038132, 1341038079, 1341038071, 1341038064, 1341038045, 1341038039, 1341038036, 1341038026, 1341038018, 1341037934, 1341037923, 1341037917, 1341037913, 1341037869, 1341037846, 1341037834, 1341037805, 1341037801, 1341037794, 1341037755, 1341037752, 1341037741, 1341037736, 1341037717, 1341037712, 1341037644, 1341037640, 1341037637, 1341037597, 1341037594, 1341037565, 1341037550, 1341037541, 1341037515, 1341037404, 1341037394, 1341037389, 1341037385, 1341037383, 1341037378, 1341037261, 1341037254, 1341037250, 1341037245, 1341037193, 1341037188, 1341037184, 1341037180, 1341037177, 1341037174, 1341036928, 1341036887, 1341036883]} ##### 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.01574230194091797 #### 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 Wed Mar 5 15:44:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21070024) 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 : 21070024 get user id for portfolio 21070024 get sub ptf for main ptf 21070024, type 3726 and hashtags ['papier', 'cartonnette', 'mal_croppe', 'Teint_Dans_La_Masse', 'plastique', 'kraft', 'environnement', 'Carton_brun', 'flou', 'metal', 'Carton_gris', '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`=21070024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','kraft','environnement','Carton_brun','flou','metal','Carton_gris','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`=21070024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','kraft','environnement','Carton_brun','flou','metal','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21070024, 'sub_port_id': 21070029, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680338, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'environnement': {'main_port_id': 21070024, 'sub_port_id': 21070030, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680339, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'papier': {'main_port_id': 21070024, 'sub_port_id': 21070031, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680340, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'mal_croppe': {'main_port_id': 21070024, 'sub_port_id': 21070032, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680341, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'autre_refus': {'main_port_id': 21070024, 'sub_port_id': 21070033, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680342, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'metal': {'main_port_id': 21070024, 'sub_port_id': 21070034, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680343, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'cartonnette': {'main_port_id': 21070024, 'sub_port_id': 21070035, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680344, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'plastique': {'main_port_id': 21070024, 'sub_port_id': 21070036, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680345, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'kraft': {'main_port_id': 21070024, 'sub_port_id': 21070037, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680346, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'flou': {'main_port_id': 21070024, 'sub_port_id': 21070038, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680347, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'Carton_brun': {'main_port_id': 21070024, 'sub_port_id': 21070039, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680348, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21070024, 'sub_port_id': 21070040, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680349, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21070029 , 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=21070024 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 (21070029) result : ((1341037333,), (1341037706,), (1341037707,), (1341037708,), (1341037709,), (1341037710,), (1341037789,), (1341037891,), (1341037892,), (1341037893,), (1341037894,), (1341037895,), (1341037962,), (1341038019,), (1341038020,), (1341038021,), (1341038022,), (1341038209,), (1341038561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070030 , 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=21070024 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 (21070030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070031 , 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=21070024 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 (21070031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070032 , 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=21070024 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 (21070032) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070033 , 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=21070024 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 (21070033) result : ((1341037696,), (1341037697,), (1341037698,), (1341037699,), (1341037700,), (1341037701,), (1341037702,), (1341037703,), (1341037704,), (1341037787,), (1341037788,), (1341037848,), (1341037849,), (1341037850,), (1341037851,), (1341037881,), (1341037882,), (1341037883,), (1341037884,), (1341037885,), (1341037886,), (1341037887,), (1341037888,), (1341037889,), (1341037890,), (1341037958,), (1341037959,), (1341038014,), (1341038015,), (1341038016,), (1341038017,), (1341038160,), (1341038200,), (1341038201,), (1341038202,), (1341038203,), (1341038555,), (1341038556,), (1341038557,), (1341038558,), (1341038559,), (1341038560,), (1341038574,), (1341038575,), (1341038576,), (1341038577,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070034 , 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=21070024 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 (21070034) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070035 , 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=21070024 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 (21070035) result : ((1341037364,), (1341037713,), (1341037854,), (1341037897,), (1341038023,), (1341038210,), (1341038562,), (1341038563,), (1341038579,), (1341038580,), (1341038581,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070036 , 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=21070024 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 (21070036) result : ((1341037714,), (1341037796,), (1341037797,), (1341037798,), (1341037863,), (1341037864,), (1341037865,), (1341037898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070037 , 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=21070024 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 (21070037) result : ((1341037965,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070038 , 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=21070024 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 (21070038) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070039 , 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=21070024 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 (21070039) result : ((1341037857,), (1341038211,), (1341038565,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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 21070040 , 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=21070024 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 (21070040) result : ((1341037688,), (1341037689,), (1341037690,), (1341037691,), (1341037692,), (1341037783,), (1341037784,), (1341037785,), (1341037786,), (1341037837,), (1341037838,), (1341037839,), (1341037840,), (1341037841,), (1341037875,), (1341037876,), (1341037877,), (1341037878,), (1341037879,), (1341037954,), (1341037955,), (1341038005,), (1341038006,), (1341038007,), (1341038008,), (1341038009,), (1341038010,), (1341038194,), (1341038195,), (1341038196,), (1341038197,), (1341038198,), (1341038199,), (1341038551,), (1341038552,), (1341038553,), (1341038573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21070024) result : ((1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) 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`=21070024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','kraft','environnement','Carton_brun','flou','metal','Carton_gris','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`=21070024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','kraft','environnement','Carton_brun','flou','metal','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21070024, 'sub_port_id': 21070041, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680350, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'environnement': {'main_port_id': 21070024, 'sub_port_id': 21070042, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680351, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'papier': {'main_port_id': 21070024, 'sub_port_id': 21070043, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680352, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'mal_croppe': {'main_port_id': 21070024, 'sub_port_id': 21070044, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680353, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'autre_refus': {'main_port_id': 21070024, 'sub_port_id': 21070045, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680354, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'metal': {'main_port_id': 21070024, 'sub_port_id': 21070046, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680355, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'cartonnette': {'main_port_id': 21070024, 'sub_port_id': 21070047, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680356, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'plastique': {'main_port_id': 21070024, 'sub_port_id': 21070048, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680357, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'kraft': {'main_port_id': 21070024, 'sub_port_id': 21070049, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680358, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'flou': {'main_port_id': 21070024, 'sub_port_id': 21070050, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680359, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'Carton_brun': {'main_port_id': 21070024, 'sub_port_id': 21070051, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680360, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21070024, 'sub_port_id': 21070052, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13680361, 'last_updated_at': datetime.datetime(2025, 3, 5, 15, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 15, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 15, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21070052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21070040 lien utilise dans velours : https://www.fotonower.com/velours/21070041,21070042,21070043,21070044,21070045,21070046,21070047,21070048,21070049,21070050,21070051,21070052?tags=Carton_gris,environnement,papier,mal_croppe,autre_refus,metal,cartonnette,plastique,kraft,flou,Carton_brun,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21070024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] map_info['map_portfolio_photo'] : {21070024: [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243, 1341038158, 1341038132, 1341038079, 1341038071, 1341038064, 1341038045, 1341038039, 1341038036, 1341038026, 1341038018, 1341037934, 1341037923, 1341037917, 1341037913, 1341037869, 1341037846, 1341037834, 1341037805, 1341037801, 1341037794, 1341037755, 1341037752, 1341037741, 1341037736, 1341037717, 1341037712, 1341037644, 1341037640, 1341037637, 1341037597, 1341037594, 1341037565, 1341037550, 1341037541, 1341037515, 1341037404, 1341037394, 1341037389, 1341037385, 1341037383, 1341037378, 1341037261, 1341037254, 1341037250, 1341037245, 1341037193, 1341037188, 1341037184, 1341037180, 1341037177, 1341037174, 1341036928, 1341036887, 1341036883]} final : False mtd_id 4302 list_pids : [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] Looping around the photos to save general results len do output : 1 /21070024. 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, '2638603') ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21070024', "{'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040}", None, None, None, None, '2638603'), ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603')] time used for this insertion : 0.013739347457885742 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4568302631378174 time spend to save output : 0.014098405838012695 total time spend for step 1 : 1.47092866897583 step2:final Wed Mar 5 15:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21070024) 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 21070024 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341036928,1341036887,1341036883,1341037193,1341037188,1341037184,1341037180,1341037177,1341037174,1341037261,1341037254,1341037250,1341037245,1341037404,1341037394,1341037389,1341037385,1341037383,1341037378,1341037597,1341037594,1341037565,1341037550,1341037541,1341037515,1341037644,1341037640,1341037637,1341037755,1341037752,1341037741,1341037736,1341037717,1341037712,1341037869,1341037846,1341037834,1341037805,1341037801,1341037794,1341037934,1341037923,1341037917,1341037913,1341038045,1341038039,1341038036,1341038026,1341038018,1341038158,1341038132,1341038079,1341038071,1341038064,1341038390,1341038278,1341038268,1341038264,1341038243,1341038546,1341038542,1341038537,1341038506,1341038501,1341038496); 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([21070024]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} new output for save of step final : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] map_info['map_portfolio_photo'] : {21070024: [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243, 1341038158, 1341038132, 1341038079, 1341038071, 1341038064, 1341038045, 1341038039, 1341038036, 1341038026, 1341038018, 1341037934, 1341037923, 1341037917, 1341037913, 1341037869, 1341037846, 1341037834, 1341037805, 1341037801, 1341037794, 1341037755, 1341037752, 1341037741, 1341037736, 1341037717, 1341037712, 1341037644, 1341037640, 1341037637, 1341037597, 1341037594, 1341037565, 1341037550, 1341037541, 1341037515, 1341037404, 1341037394, 1341037389, 1341037385, 1341037383, 1341037378, 1341037261, 1341037254, 1341037250, 1341037245, 1341037193, 1341037188, 1341037184, 1341037180, 1341037177, 1341037174, 1341036928, 1341036887, 1341036883]} final : False mtd_id 4302 list_pids : [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] Looping around the photos to save general results len do output : 11 /1341038546.Didn't retrieve data . /1341038542.Didn't retrieve data . /1341038537.Didn't retrieve data . /1341038506.Didn't retrieve data . /1341038501.Didn't retrieve data . /1341038496.Didn't retrieve data . /1341038390.Didn't retrieve data . /1341038278.Didn't retrieve data . /1341038268.Didn't retrieve data . /1341038264.Didn't retrieve data . /1341038243.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, '2638603') ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21070024', '1341038546', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038542', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038537', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038506', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038501', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038496', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038390', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038278', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038268', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038264', '0.07250925400871933', None, None, None, None, '2638603'), ('4302', '21070024', '1341038243', '0.07250925400871933', None, None, None, None, '2638603')] time used for this insertion : 0.014107704162597656 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07140707969665527 time spend to save output : 0.014748334884643555 total time spend for step 2 : 0.08615541458129883 step3:velours_tree Wed Mar 5 15:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21070024: [{'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040}]} input_args_next_step : {21070024: ()} output_args : {21070024: [{'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040}]} args : 21070024 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 : ({'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21070024) 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([21070024]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.33706021308898926 time spend to save output : 9.560585021972656e-05 total time spend for step 3 : 0.337155818939209 step4:send_mail_cod Wed Mar 5 15:44: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 ! complete output_args for input 2 : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} input_args_next_step : {1341038546: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038546 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038542 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038537 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038506 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038501 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038496 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038390 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038278 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038268 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038264 depend.output_id : 0 input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ()} output_args : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',)} args : 1341038243 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 : {21070024: [{'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040}]} input_args_next_step : {1341038546: ('0.07250925400871933',), 1341038542: ('0.07250925400871933',), 1341038537: ('0.07250925400871933',), 1341038506: ('0.07250925400871933',), 1341038501: ('0.07250925400871933',), 1341038496: ('0.07250925400871933',), 1341038390: ('0.07250925400871933',), 1341038278: ('0.07250925400871933',), 1341038268: ('0.07250925400871933',), 1341038264: ('0.07250925400871933',), 1341038243: ('0.07250925400871933',), 21070024: ()} output_args : {21070024: [{'Carton_gris': 21070029, 'environnement': 21070030, 'papier': 21070031, 'mal_croppe': 21070032, 'autre_refus': 21070033, 'metal': 21070034, 'cartonnette': 21070035, 'plastique': 21070036, 'kraft': 21070037, 'flou': 21070038, 'Carton_brun': 21070039, 'Teint_Dans_La_Masse': 21070040}]} args : 21070024 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.07250925400871933',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21070024) 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 (1341038546,1341038542,1341038537,1341038506,1341038501,1341038496,1341038390,1341038278,1341038268,1341038264,1341038243) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341038243 begin to download photo : 1341038278 begin to download photo : 1341038501 begin to download photo : 1341038542 download finish for photo 1341038501 begin to download photo : 1341038506 download finish for photo 1341038542 begin to download photo : 1341038546 download finish for photo 1341038278 begin to download photo : 1341038390 download finish for photo 1341038243 begin to download photo : 1341038264 download finish for photo 1341038546 download finish for photo 1341038264 begin to download photo : 1341038268 download finish for photo 1341038506 begin to download photo : 1341038537 download finish for photo 1341038268 download finish for photo 1341038390 begin to download photo : 1341038496 download finish for photo 1341038537 download finish for photo 1341038496 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210700321741185899/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21070024_05-03-2025_15_44_59.pdf 21070032 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=21070032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210700321741185899 21070033 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=21070033 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341038203: '1741185663_2725325_1341037794_64d3f4897bdddeea2a5016c1144299b5_rle_crop_3694609109_0.png', 1341037890: '1741185474_2722625_1341037174_45803eb39499fde3471677aa1b1988f1_rle_crop_3694605079_0.png', 1341037958: '1741185554_2723610_1341037755_4652b4ea9829ec75aa4f12704ace0117_rle_crop_3694607393_0.png', 1341037959: '1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607423_0.png', 1341038014: '1741185571_2723877_1341037741_9db4a5024e71a3fc8dbdfc31f4404816_rle_crop_3694607662_0.png', 1341038015: '1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607680_0.png', 1341038016: '1741185571_2723877_1341037717_6e0c8a11f4339f6b81b1849b3532213e_rle_crop_3694607691_0.png', 1341038017: '1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607714_0.png', 1341038160: '1741185673_2725529_1341037913_b81e6437807252e1a807f8c2c0dc71cd_rle_crop_3694608987_0.png', 1341038200: '1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609003_0.png', 1341038201: '1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609032_0.png', 1341038202: '1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609087_0.png', 1341037889: '1741185474_2722625_1341037174_45803eb39499fde3471677aa1b1988f1_rle_crop_3694605074_0.png', 1341038555: '1741185791_2727234_1341038158_9b41654a3af679430102ba56d2665ecd_rle_crop_3694610944_0.png', 1341038556: '1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610956_0.png', 1341038557: '1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610977_0.png', 1341038558: '1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610978_0.png', 1341038559: '1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610983_0.png', 1341038560: '1741185791_2727234_1341038026_c481f1b5e99958cb67e355126461caba_rle_crop_3694610999_0.png', 1341038574: '1741185813_2727539_1341038132_eff6a46f3766343dbb9972f25a93cf5c_rle_crop_3694611042_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5e7ed5e0e35dd01fdaf08b4e6576b8c8_27377331.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/119d0baebc0ebb9f4dafaccbc9cab780_13257196.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e79a0776ec04cff31b5078f5b83fa44c_86533039.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5f2a45d75f305b6324b3df3084c09e6b_63798312.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/badb399fcb5a61914a6de047c73975ce_64008514.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f0c9f1c69fb3eeb73ea5f0eae2f36915_81692037.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/522e5a93d7dd8f5e291434664db24ab4_48008528.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7125364ea585fe158a239a0f08f9940c_18312790.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/40892dc0aeb257ea5b49c3853882d2ff_3814997.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/66fe42d5506b2ff0e27eef84f43172a5_85242566.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e441ba5d08f48e156394a6e7a0635b09_16017895.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2d3af8a86cb87620ee6221e189d712d3_99381875.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e373e96f60d1c102d91a4fcf083ee04b_5674911.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f0cc17925d2f723b16c90a535024d900_6643367.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/60c63d46d9dff94c6fe72912f31a676d_39325895.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/054db524d09aedbab02e29271240d710_84936094.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b64528398dae26a1ddab9364bfa27f95_49974108.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fe8615ff0215f0931b0ae18b609da2b7_12884068.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6c03bccae519ceed960eb9664c35352b_15263895.png change filename to text .imagette210700331741185899/ imagette210700331741185899/1741185571_2723877_1341037741_9db4a5024e71a3fc8dbdfc31f4404816_rle_crop_3694607662_0.png.png imagette210700331741185899/1741185554_2723610_1341037755_4652b4ea9829ec75aa4f12704ace0117_rle_crop_3694607393_0.png.png imagette210700331741185899/1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609032_0.png.png imagette210700331741185899/1741185813_2727539_1341038132_eff6a46f3766343dbb9972f25a93cf5c_rle_crop_3694611042_0.png.png imagette210700331741185899/1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607680_0.png.png imagette210700331741185899/1741185474_2722625_1341037174_45803eb39499fde3471677aa1b1988f1_rle_crop_3694605074_0.png.png imagette210700331741185899/1741185791_2727234_1341038158_9b41654a3af679430102ba56d2665ecd_rle_crop_3694610944_0.png.png imagette210700331741185899/1741185571_2723877_1341037717_6e0c8a11f4339f6b81b1849b3532213e_rle_crop_3694607691_0.png.png imagette210700331741185899/1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607423_0.png.png imagette210700331741185899/1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609087_0.png.png imagette210700331741185899/1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609003_0.png.png imagette210700331741185899/1741185673_2725529_1341037913_b81e6437807252e1a807f8c2c0dc71cd_rle_crop_3694608987_0.png.png imagette210700331741185899/1741185791_2727234_1341038026_c481f1b5e99958cb67e355126461caba_rle_crop_3694610999_0.png.png imagette210700331741185899/1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610983_0.png.png imagette210700331741185899/1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607714_0.png.png imagette210700331741185899/1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610977_0.png.png imagette210700331741185899/1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610956_0.png.png imagette210700331741185899/1741185791_2727234_1341038036_d8817f242c3e15825d7cf832a65fa958_rle_crop_3694610978_0.png.png imagette210700331741185899/1741185474_2722625_1341037174_45803eb39499fde3471677aa1b1988f1_rle_crop_3694605079_0.png.png imagette210700331741185899/1741185663_2725325_1341037794_64d3f4897bdddeea2a5016c1144299b5_rle_crop_3694609109_0.png.png imagette210700341741185900/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5936b873d732a8e65f75952cae08be92_2229146.png imagette210700331741185899 21070034 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=21070034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210700341741185900 21070035 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=21070035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341037364: '1741185195_2715418_1341036883_fb64e97fc2a229137cc50ac20e41bd42_rle_crop_3694602755_0.png', 1341037713: '1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605030_0.png', 1341037854: '1741185453_2722272_1341037378_07d853718c65f1e8126dd29819ba733a_rle_crop_3694606095_0.png', 1341037897: '1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605030_0.png', 1341038023: '1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607673_0.png', 1341038210: '1741185663_2725325_1341037834_1aeb99794894a8639cbcc706f50d8cbc_rle_crop_3694609014_0.png', 1341038562: '1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610954_0.png', 1341038563: '1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610953_0.png', 1341038579: '1741185813_2727539_1341038132_eff6a46f3766343dbb9972f25a93cf5c_rle_crop_3694611043_0.png', 1341038580: '1741185813_2727539_1341038079_e80391384818e2be6cf2295f49c58987_rle_crop_3694611066_0.png', 1341038581: '1741185813_2727539_1341038079_e80391384818e2be6cf2295f49c58987_rle_crop_3694611063_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e36c611bfc6b5b21c00402f7d8eda35b_20969119.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d0320e966c63e143262a38c66b916aa3_22738239.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3e7b01d53f98bf33cd2e7577fe899b16_11406355.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d0320e966c63e143262a38c66b916aa3_54222196.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3ab616f91a0a60d0190ff0ac024484d8_31687400.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bc09dd564661b2293b282be8924e3378_9274101.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/58534e69889a7e608a4e2c0dc165f6af_63688197.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/24925d53dd546700af27263517639e82_5928493.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/cef000e18b8b29b5dfd621e7d47844b5_11353657.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0e09750ec4b8208599619b453e784df7_41380547.png change filename to text .imagette210700351741185900/ imagette210700351741185900/1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605030_0.png.png imagette210700351741185900/1741185813_2727539_1341038079_e80391384818e2be6cf2295f49c58987_rle_crop_3694611066_0.png.png imagette210700351741185900/1741185813_2727539_1341038132_eff6a46f3766343dbb9972f25a93cf5c_rle_crop_3694611043_0.png.png imagette210700351741185900/1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607673_0.png.png imagette210700351741185900/1741185453_2722272_1341037378_07d853718c65f1e8126dd29819ba733a_rle_crop_3694606095_0.png.png imagette210700351741185900/1741185663_2725325_1341037834_1aeb99794894a8639cbcc706f50d8cbc_rle_crop_3694609014_0.png.png imagette210700351741185900/1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610953_0.png.png imagette210700351741185900/1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605030_0.png.png imagette210700351741185900/1741185791_2727234_1341038039_bc5ea947163f5bbc97671ebb0a140465_rle_crop_3694610954_0.png.png imagette210700351741185900/1741185813_2727539_1341038079_e80391384818e2be6cf2295f49c58987_rle_crop_3694611063_0.png.png imagette210700351741185900/1741185195_2715418_1341036883_fb64e97fc2a229137cc50ac20e41bd42_rle_crop_3694602755_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1f7cc42a1f01f1b2bf8c6f9e9d1343bd_68472059.png imagette210700351741185900 21070036 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=21070036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341037714: '1741185314_2717177_1341037261_c186fdcd9ab18c9a779f4ff71f4dacb7_rle_crop_3694604970_0.png', 1341037796: '1741185432_2722059_1341037594_ad700da2ecfd66d47119bc736d7ece1f_rle_crop_3694605735_0.png', 1341037797: '1741185432_2722059_1341037565_6f0d58f46aa61c0a933bf4f3f3e93c4c_rle_crop_3694605741_0.png', 1341037798: '1741185432_2722059_1341037541_a6efce558479ea0097cd5d88f39d3652_rle_crop_3694605773_0.png', 1341037863: '1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606024_0.png', 1341037864: '1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606025_0.png', 1341037865: '1741185453_2722272_1341037389_352e5515f3d594d5a6bb5a845bf6b830_rle_crop_3694606061_0.png', 1341037898: '1741185474_2722625_1341037261_c186fdcd9ab18c9a779f4ff71f4dacb7_rle_crop_3694604970_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/77af74a6c510127fe84aba32743db67a_79396867.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1e8bc7ff94e10582c6530d7535534566_15448775.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/da2eeb34cd318d155a12cbea7452c645_548086.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7e7b1e87730e6c3001e55ce8a29c88ec_43903955.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8908b00500df2a0f84306d1515b4417d_15780352.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/52abfa09727a65bd5f24ce0ed9ceae7e_69615840.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4bef8b04882aee2803fdf734d743f323_26855504.png change filename to text .imagette210700361741185901/ imagette210700361741185901/1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606025_0.png.png imagette210700361741185901/1741185474_2722625_1341037261_c186fdcd9ab18c9a779f4ff71f4dacb7_rle_crop_3694604970_0.png.png imagette210700361741185901/1741185432_2722059_1341037541_a6efce558479ea0097cd5d88f39d3652_rle_crop_3694605773_0.png.png imagette210700361741185901/1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606024_0.png.png imagette210700361741185901/1741185453_2722272_1341037389_352e5515f3d594d5a6bb5a845bf6b830_rle_crop_3694606061_0.png.png imagette210700361741185901/1741185314_2717177_1341037261_c186fdcd9ab18c9a779f4ff71f4dacb7_rle_crop_3694604970_0.png.png imagette210700361741185901/1741185432_2722059_1341037594_ad700da2ecfd66d47119bc736d7ece1f_rle_crop_3694605735_0.png.png imagette210700361741185901/1741185432_2722059_1341037565_6f0d58f46aa61c0a933bf4f3f3e93c4c_rle_crop_3694605741_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/77af74a6c510127fe84aba32743db67a_77121717.png imagette210700361741185901 21070037 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=21070037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341037965: '1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607415_0.png'} change filename to text .imagette210700371741185902/ imagette210700371741185902/1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607415_0.png.png imagette210700381741185902/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/de615978cb3dd854b589452bdcfe4d6c_35312338.png imagette210700371741185902 21070038 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=21070038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210700381741185902 21070029 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=21070029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341037893: '1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605040_0.png', 1341038561: '1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611021_0.png', 1341038209: '1741185663_2725325_1341037794_64d3f4897bdddeea2a5016c1144299b5_rle_crop_3694609101_0.png', 1341038022: '1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607707_0.png', 1341038021: '1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607672_0.png', 1341038020: '1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607677_0.png', 1341038019: '1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607639_0.png', 1341037962: '1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607417_0.png', 1341037895: '1741185474_2722625_1341037177_7983a8ffbf1b56fef45f48e91061a883_rle_crop_3694605054_0.png', 1341037894: '1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605034_0.png', 1341037333: '1741185195_2715418_1341036883_fb64e97fc2a229137cc50ac20e41bd42_rle_crop_3694602754_0.png', 1341037892: '1741185474_2722625_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605004_0.png', 1341037891: '1741185474_2722625_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605012_0.png', 1341037789: '1741185432_2722059_1341037515_a58c69a2e77a7915f393fd781642851c_rle_crop_3694605785_0.png', 1341037710: '1741185314_2717177_1341037177_7983a8ffbf1b56fef45f48e91061a883_rle_crop_3694605054_0.png', 1341037709: '1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605034_0.png', 1341037708: '1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605040_0.png', 1341037707: '1741185314_2717177_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605004_0.png', 1341037706: '1741185314_2717177_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605012_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1966f241674841b891d9d7a9f992000f_70377589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e3d004825d609f012a8882ce06bf6138_91721945.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/402679053192b66717de49688a5a3f2e_86006561.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3b1c631f78b90ff351e9272ed7616830_49126651.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/eb195919ef1500f72905b4ca6c49a81d_78478508.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/547958f5fb04ecb5e1b62ac37cd3c34d_76241813.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bbd4b44ad64646f125dba1f2410e17c9_80540075.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4719b05d1e23e12be44604888c49d0ae_29349791.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8c76dad0ef46ce13daea27b071590dfb_31951624.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/17e35cc8ffa488ace0cdecfdae28705b_54588447.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/836269e1c3ad5f5377592e4dc6000931_28062459.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4bdb0b35c03879118cf8714ed16ee959_81574250.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bd4fae241f03921b6d5efce5aafbb71a_48843254.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9989d399a2f2e44ce841601dee022e3c_55272879.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8c76dad0ef46ce13daea27b071590dfb_50528003.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/17e35cc8ffa488ace0cdecfdae28705b_30107378.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1966f241674841b891d9d7a9f992000f_70644965.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4bdb0b35c03879118cf8714ed16ee959_27226650.png change filename to text .imagette210700291741185902/ imagette210700291741185902/1741185474_2722625_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605012_0.png.png imagette210700291741185902/1741185474_2722625_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605004_0.png.png imagette210700291741185902/1741185474_2722625_1341037177_7983a8ffbf1b56fef45f48e91061a883_rle_crop_3694605054_0.png.png imagette210700291741185902/1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607672_0.png.png imagette210700291741185902/1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605034_0.png.png imagette210700291741185902/1741185432_2722059_1341037515_a58c69a2e77a7915f393fd781642851c_rle_crop_3694605785_0.png.png imagette210700291741185902/1741185314_2717177_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605012_0.png.png imagette210700291741185902/1741185663_2725325_1341037794_64d3f4897bdddeea2a5016c1144299b5_rle_crop_3694609101_0.png.png imagette210700291741185902/1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611021_0.png.png imagette210700291741185902/1741185314_2717177_1341037177_7983a8ffbf1b56fef45f48e91061a883_rle_crop_3694605054_0.png.png imagette210700291741185902/1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607707_0.png.png imagette210700291741185902/1741185314_2717177_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605040_0.png.png imagette210700291741185902/1741185314_2717177_1341037184_6df0b9f2361abbf1d8ae08736359b192_rle_crop_3694605004_0.png.png imagette210700291741185902/1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605040_0.png.png imagette210700291741185902/1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605034_0.png.png imagette210700291741185902/1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607417_0.png.png imagette210700291741185902/1741185571_2723877_1341037736_8e5a871aae854bcab10e511a8c08ba58_rle_crop_3694607677_0.png.png imagette210700291741185902/1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607639_0.png.png imagette210700291741185902/1741185195_2715418_1341036883_fb64e97fc2a229137cc50ac20e41bd42_rle_crop_3694602754_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bd4fae241f03921b6d5efce5aafbb71a_79534003.png imagette210700291741185902 21070039 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=21070039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341037857: '1741185453_2722272_1341037378_07d853718c65f1e8126dd29819ba733a_rle_crop_3694606098_0.png', 1341038211: '1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609004_0.png', 1341038565: '1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611020_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aee8d2a2e257d4f615ae8664139b1472_41302670.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2db3a80c8b55d566ed45f0f9d24c8d13_78032254.png change filename to text .imagette210700391741185903/ imagette210700391741185903/1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611020_0.png.png imagette210700391741185903/1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609004_0.png.png imagette210700391741185903/1741185453_2722272_1341037378_07d853718c65f1e8126dd29819ba733a_rle_crop_3694606098_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/70a504126e343290175555a2fc5589fb_90238119.png imagette210700391741185903 21070040 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=21070040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341038195: '1741185663_2725325_1341037834_1aeb99794894a8639cbcc706f50d8cbc_rle_crop_3694609024_0.png', 1341037954: '1741185554_2723610_1341037755_4652b4ea9829ec75aa4f12704ace0117_rle_crop_3694607392_0.png', 1341037955: '1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607424_0.png', 1341038005: '1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607643_0.png', 1341038006: '1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607646_0.png', 1341038007: '1741185571_2723877_1341037741_9db4a5024e71a3fc8dbdfc31f4404816_rle_crop_3694607655_0.png', 1341038008: '1741185571_2723877_1341037717_6e0c8a11f4339f6b81b1849b3532213e_rle_crop_3694607692_0.png', 1341038009: '1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607712_0.png', 1341038010: '1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607711_0.png', 1341038194: '1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609002_0.png', 1341037879: '1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605044_0.png', 1341038196: '1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609029_0.png', 1341038197: '1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609034_0.png', 1341038198: '1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609086_0.png', 1341038199: '1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609089_0.png', 1341038551: '1741185791_2727234_1341038158_9b41654a3af679430102ba56d2665ecd_rle_crop_3694610940_0.png', 1341038552: '1741185791_2727234_1341038026_c481f1b5e99958cb67e355126461caba_rle_crop_3694610996_0.png', 1341038553: '1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611019_0.png', 1341038573: '1741185813_2727539_1341038064_f015c44e795aa9fd8ea3b91abe658fa5_rle_crop_3694611103_0.png', 1341037837: '1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/423b35eaea26d2585c60a140cad01eb4_74469381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6f7e4edbccaf5cbd441c816c9fe663ca_12759231.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ac0e5832f3688899ca3ea7021afb7904_71345088.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b25a9688e5998cb96fffe849b6b11c88_12124906.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0fb94d031f9009f74ef80fbaeb1574a7_96009640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/586c204eab3ec7c4578792058c538b93_19990154.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4402fbace5d1b16838f4e05ff95dd7c2_72719388.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7a39ef7c1527f732c2064feab875e4c7_38433030.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5833bcb8f0b6df52bf208bf5b7682168_71692111.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/75bc3f7075d888722157388d88a5b3c4_97867154.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1aea8d38705ed387c582afdc807f97b9_64342556.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/52b45f20a5174f6a2c4a5bd99a065b6a_38261039.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b0b9309cee4473f21bf4ed94b877b97b_36979325.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8e15c2b2c1fa374b7871a378d576c85f_14482047.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/417acad0a653efde89c3580917001094_94236712.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2053f3d4648b6902807cb556d4698f5c_60834915.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/696440b3d107afe79581068ee351eddf_63724221.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d567ae6abf36bfe02a6f45bbc04388eb_17143700.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9dd0f3ea1ba7daaee990efd5338b4a60_15015814.png change filename to text .imagette210700401741185903/ imagette210700401741185903/1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609089_0.png.png imagette210700401741185903/1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609034_0.png.png imagette210700401741185903/1741185663_2725325_1341037805_f09a9ceb871f99fba28e7dbe52e48733_rle_crop_3694609029_0.png.png imagette210700401741185903/1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607711_0.png.png imagette210700401741185903/1741185474_2722625_1341037180_c992104797ef4a0a53c28c339ce3352d_rle_crop_3694605044_0.png.png imagette210700401741185903/1741185554_2723610_1341037755_4652b4ea9829ec75aa4f12704ace0117_rle_crop_3694607392_0.png.png imagette210700401741185903/1741185663_2725325_1341037834_1aeb99794894a8639cbcc706f50d8cbc_rle_crop_3694609024_0.png.png imagette210700401741185903/1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607643_0.png.png imagette210700401741185903/1741185554_2723610_1341037640_e5503506448792541faed9d04c10b7b4_rle_crop_3694607424_0.png.png imagette210700401741185903/1741185453_2722272_1341037597_c0c672ea298b84601a56288fd2e7564f_rle_crop_3694606030_0.png.png imagette210700401741185903/1741185663_2725325_1341037846_34ed5b9e648e7bff8132fe70f901836e_rle_crop_3694609002_0.png.png imagette210700401741185903/1741185791_2727234_1341038026_c481f1b5e99958cb67e355126461caba_rle_crop_3694610996_0.png.png imagette210700401741185903/1741185791_2727234_1341038018_02c4b267177bef1711e512eb7039a6f7_rle_crop_3694611019_0.png.png imagette210700401741185903/1741185663_2725325_1341037801_ab207e16441277c8768995ef9b9a0e84_rle_crop_3694609086_0.png.png imagette210700401741185903/1741185571_2723877_1341037717_6e0c8a11f4339f6b81b1849b3532213e_rle_crop_3694607692_0.png.png imagette210700401741185903/1741185813_2727539_1341038064_f015c44e795aa9fd8ea3b91abe658fa5_rle_crop_3694611103_0.png.png imagette210700401741185903/1741185791_2727234_1341038158_9b41654a3af679430102ba56d2665ecd_rle_crop_3694610940_0.png.png imagette210700401741185903/1741185571_2723877_1341037741_9db4a5024e71a3fc8dbdfc31f4404816_rle_crop_3694607655_0.png.png imagette210700401741185903/1741185571_2723877_1341037752_84ffce1e499c459976492c6ed3558411_rle_crop_3694607646_0.png.png imagette210700401741185903/1741185571_2723877_1341037712_da334096f71cf5724587d5a854bf8c49_rle_crop_3694607712_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a2e42bc62e8691f81707b12c0be96735_95222285.png imagette210700401741185903 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21070024 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21070041,21070042,21070043,21070044,21070045,21070046,21070047,21070048,21070049,21070050,21070051,21070052?tags=Carton_gris,environnement,papier,mal_croppe,autre_refus,metal,cartonnette,plastique,kraft,flou,Carton_brun,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1341038546] : ('0.07250925400871933',) no score found for photo 1341038546 We are sending mail with results at report@fotonower.com args[1341038542] : ('0.07250925400871933',) no score found for photo 1341038542 We are sending mail with results at report@fotonower.com args[1341038537] : ('0.07250925400871933',) no score found for photo 1341038537 We are sending mail with results at report@fotonower.com args[1341038506] : ('0.07250925400871933',) no score found for photo 1341038506 We are sending mail with results at report@fotonower.com args[1341038501] : ('0.07250925400871933',) no score found for photo 1341038501 We are sending mail with results at report@fotonower.com args[1341038496] : ('0.07250925400871933',) no score found for photo 1341038496 We are sending mail with results at report@fotonower.com args[1341038390] : ('0.07250925400871933',) no score found for photo 1341038390 We are sending mail with results at report@fotonower.com args[1341038278] : ('0.07250925400871933',) no score found for photo 1341038278 We are sending mail with results at report@fotonower.com args[1341038268] : ('0.07250925400871933',) no score found for photo 1341038268 We are sending mail with results at report@fotonower.com args[1341038264] : ('0.07250925400871933',) no score found for photo 1341038264 We are sending mail with results at report@fotonower.com args[1341038243] : ('0.07250925400871933',) no score found for photo 1341038243 We are sending mail with results at report@fotonower.com refus_total : 0.07250925400871933 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=21070024 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_P21070024_05-03-2025_15_44_59.pdf results_Auto_P21070024_05-03-2025_15_44_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21070024_05-03-2025_15_44_59.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','21070024','results_Auto_P21070024_05-03-2025_15_44_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21070024_05-03-2025_15_44_59.pdf','pdf','','0.35','0.07250925400871933') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21070024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] map_info['map_portfolio_photo'] : {21070024: [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243, 1341038158, 1341038132, 1341038079, 1341038071, 1341038064, 1341038045, 1341038039, 1341038036, 1341038026, 1341038018, 1341037934, 1341037923, 1341037917, 1341037913, 1341037869, 1341037846, 1341037834, 1341037805, 1341037801, 1341037794, 1341037755, 1341037752, 1341037741, 1341037736, 1341037717, 1341037712, 1341037644, 1341037640, 1341037637, 1341037597, 1341037594, 1341037565, 1341037550, 1341037541, 1341037515, 1341037404, 1341037394, 1341037389, 1341037385, 1341037383, 1341037378, 1341037261, 1341037254, 1341037250, 1341037245, 1341037193, 1341037188, 1341037184, 1341037180, 1341037177, 1341037174, 1341036928, 1341036887, 1341036883]} final : False mtd_id 4302 list_pids : [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] 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, '2638603') ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21070024', '1341038546', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603')] time used for this insertion : 0.013962030410766602 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.428520679473877 time spend to save output : 0.014258623123168945 total time spend for step 4 : 6.442779302597046 step5:split_time_score Wed Mar 5 15:45:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21070024'] 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 : [('21070024',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21070024) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341038542: {'path': 'temp/1741185899_1627245_1341038542_12876a9e902bba11cc4cb7efe77f76b4.jpg', 'extension': 'jpg'}, 1341038546: {'path': 'temp/1741185899_1627245_1341038546_78697d6127af88f42bd22624feb77431.jpg', 'extension': 'jpg'}, 1341038243: {'path': 'temp/1741185899_1627245_1341038243_074329164bee2d2de037e4dc8eca2b04.jpg', 'extension': 'jpg'}, 1341038264: {'path': 'temp/1741185899_1627245_1341038264_70aac15ed82e8e84fa3422d7785b900d.jpg', 'extension': 'jpg'}, 1341038268: {'path': 'temp/1741185899_1627245_1341038268_d90ecc28f68d2bfd0374811fb92df5d7.jpg', 'extension': 'jpg'}, 1341038501: {'path': 'temp/1741185899_1627245_1341038501_b2b7b7f851d34b293324e093b5f2a392.jpg', 'extension': 'jpg'}, 1341038506: {'path': 'temp/1741185899_1627245_1341038506_28d6d5ee386ee260d08363f5f8095f72.jpg', 'extension': 'jpg'}, 1341038537: {'path': 'temp/1741185899_1627245_1341038537_59e535740e3d9f7b4892141a1416953a.jpg', 'extension': 'jpg'}, 1341038278: {'path': 'temp/1741185899_1627245_1341038278_cd7d7ab261581509b388be8c293bfdd6.jpg', 'extension': 'jpg'}, 1341038390: {'path': 'temp/1741185899_1627245_1341038390_3310062ede352329594d96baba7340e3.jpg', 'extension': 'jpg'}, 1341038496: {'path': 'temp/1741185899_1627245_1341038496_98fc5f43c1aa09030163d7d45d296669.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 = 21070024; (('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 = 21070024 group by h (('15', 65),) 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=21070024 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 (21070024) 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 (21070024) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21070024 Nombre de photos uploadées : 65 / 23040 (0%) 05032025 21070024 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 05032025 21070024 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1341036928, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b5c7cf1aa748eb1179752a529b08b0e1.jpg', 'username': None, 'uploaded_at': 1741185084, 'text': 'image_05032025_15_30_04_10147.jpg'}, {'photo_id': 1341036887, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4954ab0ea7468adf2f75f39c610fa51b.jpg', 'username': None, 'uploaded_at': 1741185084, 'text': 'image_05032025_15_30_34_10133.jpg'}, {'photo_id': 1341036883, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fb64e97fc2a229137cc50ac20e41bd42.jpg', 'username': None, 'uploaded_at': 1741185084, 'text': 'image_05032025_15_30_43_9124.jpg'}, {'photo_id': 1341037193, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ca4faea0d846d8ace925a59b3a5ad6a2.jpg', 'username': None, 'uploaded_at': 1741185144, 'text': 'image_05032025_15_30_53_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024802684783935547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21070024, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022453784942626953 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649319, 'mtr_portfolio_id': 21068092, 'dashboard_result_id': 9236300, '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_P21068092_05-03-2025_15_04_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21068221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068232, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649319, 'mtr_portfolio_id': 21068851, 'dashboard_result_id': 9236301, '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_P21068851_05-03-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21068856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068862, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068866, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649319, 'mtr_portfolio_id': 21069448, 'dashboard_result_id': 9236302, '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_P21069448_05-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21069474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21069475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21069476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21069477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21069478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21069479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21069480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21069481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21069482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21069483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21069484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21069485, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649319, 'mtr_portfolio_id': 21070024, 'dashboard_result_id': 9236303, '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_P21070024_05-03-2025_15_42_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21070029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21070030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21070031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21070032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21070033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21070034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21070035, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21070036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21070037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21070038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21070039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21070040, '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 = 21068092 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': 2638454, 'mtr_portfolio_id': 21068092, 'created_at': datetime.datetime(2025, 3, 5, 15, 4, 32), 'result': '0.06531586035560082', 'result_long': None, 'result_double': None}] Qualite : 0.06531586035560082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21068092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21068092_05-03-2025_15_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21068092 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_P21068092_05-03-2025_15_04_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21068221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068232, 'pht': 3726}}" where mtr_portfolio_id = 21068092 and dashboard_run_id = 1649319 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`=21068092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9236300, 0.06531586035560082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21068092_05-03-2025_15_04_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21068221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068232, '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 = 21068851 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': 2638518, 'mtr_portfolio_id': 21068851, 'created_at': datetime.datetime(2025, 3, 5, 15, 19, 1), 'result': '0.0714170125128325', 'result_long': None, 'result_double': None}] Qualite : 0.0714170125128325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21068851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21068851_05-03-2025_15_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21068851 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_P21068851_05-03-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21068856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068862, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068866, 'pht': 3726}}" where mtr_portfolio_id = 21068851 and dashboard_run_id = 1649319 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`=21068851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9236301, 0.0714170125128325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21068851_05-03-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21068855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21068856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21068857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21068858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21068859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21068860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21068861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21068862, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21068863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21068864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21068865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21068866, '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 = 21069448 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': 2638550, 'mtr_portfolio_id': 21069448, 'created_at': datetime.datetime(2025, 3, 5, 15, 32, 59), 'result': '0.05965248373820704', 'result_long': None, 'result_double': None}] Qualite : 0.05965248373820704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21069448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21069448_05-03-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21069448 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_P21069448_05-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21069474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21069475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21069476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21069477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21069478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21069479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21069480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21069481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21069482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21069483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21069484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21069485, 'pht': 3726}}" where mtr_portfolio_id = 21069448 and dashboard_run_id = 1649319 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`=21069448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9236302, 0.05965248373820704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21069448_05-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21069474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21069475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21069476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21069477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21069478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21069479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21069480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21069481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21069482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21069483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21069484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21069485, '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 = 21070024 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': 2638603, 'mtr_portfolio_id': 21070024, 'created_at': datetime.datetime(2025, 3, 5, 15, 44, 58), 'result': '0.07250925400871933', 'result_long': None, 'result_double': None}] Qualite : 0.07250925400871933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21070024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21070024_05-03-2025_15_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21070024 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_P21070024_05-03-2025_15_44_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21070029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21070030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21070031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21070032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21070033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21070034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21070035, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21070036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21070037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21070038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21070039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21070040, 'pht': 3726}}" where mtr_portfolio_id = 21070024 and dashboard_run_id = 1649319 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`=21070024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9236303, 0.07250925400871933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21070024_05-03-2025_15_44_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21070029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21070030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21070031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21070032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21070033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21070034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21070035, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21070036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21070037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21070038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21070039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21070040, '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 (21068092,21068851,21069448,21070024) result : ((1341030038,), (1341030044,), (1341030050,), (1341030063,), (1341030269,), (1341030274,), (1341030281,), (1341030308,), (1341030320,), (1341030327,), (1341030528,), (1341030533,), (1341030544,), (1341030558,), (1341030633,), (1341030788,), (1341030832,), (1341030843,), (1341030849,), (1341030880,), (1341030913,), (1341031353,), (1341031482,), (1341031488,), (1341031492,), (1341031511,), (1341031519,), (1341031648,), (1341031651,), (1341032184,), (1341032166,), (1341032170,), (1341032177,), (1341032246,), (1341032272,), (1341032579,), (1341032583,), (1341032590,), (1341032594,), (1341032714,), (1341032721,), (1341032740,), (1341032857,), (1341032862,), (1341032873,), (1341032876,), (1341032912,), (1341032918,), (1341032921,), (1341032923,), (1341033180,), (1341033639,), (1341033646,), (1341033864,), (1341034020,), (1341034275,), (1341034668,), (1341034672,), (1341034675,), (1341034680,), (1341034684,), (1341034913,), (1341034916,), (1341034961,), (1341035181,), (1341035191,), (1341035230,), (1341035237,), (1341035248,), (1341035505,), (1341035446,), (1341035452,), (1341035486,), (1341035500,), (1341035763,), (1341035767,), (1341035777,), (1341035782,), (1341035790,), (1341035833,), (1341036028,), (1341036032,), (1341036253,), (1341036265,), (1341036269,), (1341036271,), (1341036286,), (1341036338,), (1341036341,), (1341036345,), (1341036351,), (1341036354,), (1341036381,), (1341036384,), (1341036390,), (1341036394,), (1341036430,), (1341036434,), (1341036438,), (1341036444,), (1341036487,), (1341036490,), (1341036493,), (1341036503,), (1341036508,), (1341036512,), (1341036676,), (1341036680,), (1341036689,), (1341036692,), (1341036699,), (1341036706,), (1341036725,), (1341036735,), (1341036741,), (1341036778,), (1341036784,), (1341036790,), (1341036795,), (1341036798,), (1341036834,), (1341036837,), (1341036842,), (1341036847,), (1341036854,), (1341036951,), (1341036883,), (1341036887,), (1341036928,), (1341037174,), (1341037177,), (1341037180,), (1341037184,), (1341037188,), (1341037193,), (1341037245,), (1341037250,), (1341037254,), (1341037261,), (1341037378,), (1341037383,), (1341037385,), (1341037389,), (1341037394,), (1341037404,), (1341037515,), (1341037541,), (1341037550,), (1341037565,), (1341037594,), (1341037597,), (1341037637,), (1341037640,), (1341037644,), (1341037712,), (1341037717,), (1341037736,), (1341037741,), (1341037752,), (1341037755,), (1341037794,), (1341037801,), (1341037805,), (1341037834,), (1341037846,), (1341037869,), (1341037913,), (1341037917,), (1341037923,), (1341037934,), (1341038018,), (1341038026,), (1341038036,), (1341038039,), (1341038045,), (1341038064,), (1341038071,), (1341038079,), (1341038132,), (1341038158,), (1341038243,), (1341038264,), (1341038268,), (1341038278,), (1341038390,), (1341038496,), (1341038501,), (1341038506,), (1341038537,), (1341038542,), (1341038546,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21070024]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] map_info['map_portfolio_photo'] : {21070024: [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243, 1341038158, 1341038132, 1341038079, 1341038071, 1341038064, 1341038045, 1341038039, 1341038036, 1341038026, 1341038018, 1341037934, 1341037923, 1341037917, 1341037913, 1341037869, 1341037846, 1341037834, 1341037805, 1341037801, 1341037794, 1341037755, 1341037752, 1341037741, 1341037736, 1341037717, 1341037712, 1341037644, 1341037640, 1341037637, 1341037597, 1341037594, 1341037565, 1341037550, 1341037541, 1341037515, 1341037404, 1341037394, 1341037389, 1341037385, 1341037383, 1341037378, 1341037261, 1341037254, 1341037250, 1341037245, 1341037193, 1341037188, 1341037184, 1341037180, 1341037177, 1341037174, 1341036928, 1341036887, 1341036883]} final : True mtd_id 4302 list_pids : [1341038546, 1341038542, 1341038537, 1341038506, 1341038501, 1341038496, 1341038390, 1341038278, 1341038268, 1341038264, 1341038243] Looping around the photos to save general results len do output : 1 /21070024Didn'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, '2638603') ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603') ('4302', None, None, None, None, None, None, None, '2638603') ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21070024', 'None', None, None, None, None, '2638603'), ('4302', '21070024', '1341038546', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038542', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038537', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038506', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038501', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038496', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038390', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038278', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038268', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038264', None, None, None, None, None, '2638603'), ('4302', '21070024', '1341038243', None, None, None, None, None, '2638603')] time used for this insertion : 0.15242433547973633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46867871284484863 time spend to save output : 0.1527559757232666 total time spend for step 5 : 0.6214346885681152 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 (2638603) 2.27user 1.92system 0:11.22elapsed 37%CPU (0avgtext+0avgdata 160288maxresident)k 208inputs+19448outputs (17major+91039minor)pagefaults 0swaps