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 : 1080524 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 (2606130) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2606130) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736815 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2606130'] with mtr_portfolio_ids : ['20736815'] and first list_photo_ids : [] new path : /proc/1080524/ Name: python3 Umask: 0002 State: R (running) Tgid: 1080524 Ngid: 0 Pid: 1080524 PPid: 1080523 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1080524 NSpid: 1080524 NSpgid: 1077255 NSsid: 1077255 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98736 kB VmRSS: 98736 kB RssAnon: 59748 kB RssFile: 38988 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 45 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1080524', 'Ngid': '0', 'Pid': '1080524', 'PPid': '1080523', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1080524', 'NSpid': '1080524', 'NSpgid': '1077255', 'NSsid': '1077255', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98736 kB', 'VmRSS': '98736 kB', 'RssAnon': '59748 kB', 'RssFile': '38988 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '45', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '1080524', '1106936', '0', '1106936', '865684', '98736', b'', 'marlene', '2606130') 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 (20736815) 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 (2606130 ) ) 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 (20736815) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338932877, 'portfolio_id': 20736815}, {'photo_id': 1338932872, 'portfolio_id': 20736815}, {'photo_id': 1338932868, 'portfolio_id': 20736815}, {'photo_id': 1338932829, 'portfolio_id': 20736815}, {'photo_id': 1338932827, 'portfolio_id': 20736815}, {'photo_id': 1338932821, 'portfolio_id': 20736815}, {'photo_id': 1338932815, 'portfolio_id': 20736815}, {'photo_id': 1338932809, 'portfolio_id': 20736815}, {'photo_id': 1338932805, 'portfolio_id': 20736815}, {'photo_id': 1338932790, 'portfolio_id': 20736815}, {'photo_id': 1338932789, 'portfolio_id': 20736815}, {'photo_id': 1338932788, 'portfolio_id': 20736815}, {'photo_id': 1338932785, 'portfolio_id': 20736815}, {'photo_id': 1338932781, 'portfolio_id': 20736815}, {'photo_id': 1338932777, 'portfolio_id': 20736815}, {'photo_id': 1338932640, 'portfolio_id': 20736815}, {'photo_id': 1338932636, 'portfolio_id': 20736815}, {'photo_id': 1338932588, 'portfolio_id': 20736815}, {'photo_id': 1338932584, 'portfolio_id': 20736815}, {'photo_id': 1338932580, 'portfolio_id': 20736815}, {'photo_id': 1338932573, 'portfolio_id': 20736815}, {'photo_id': 1338932539, 'portfolio_id': 20736815}, {'photo_id': 1338932535, 'portfolio_id': 20736815}, {'photo_id': 1338932197, 'portfolio_id': 20736815}, {'photo_id': 1338932194, 'portfolio_id': 20736815}, {'photo_id': 1338932190, 'portfolio_id': 20736815}, {'photo_id': 1338932186, 'portfolio_id': 20736815}, {'photo_id': 1338932158, 'portfolio_id': 20736815}, {'photo_id': 1338932153, 'portfolio_id': 20736815}, {'photo_id': 1338931288, 'portfolio_id': 20736815}, {'photo_id': 1338931278, 'portfolio_id': 20736815}, {'photo_id': 1338931230, 'portfolio_id': 20736815}, {'photo_id': 1338931216, 'portfolio_id': 20736815}, {'photo_id': 1338931211, 'portfolio_id': 20736815}, {'photo_id': 1338931206, 'portfolio_id': 20736815}, {'photo_id': 1338931190, 'portfolio_id': 20736815}, {'photo_id': 1338931154, 'portfolio_id': 20736815}, {'photo_id': 1338931150, 'portfolio_id': 20736815}, {'photo_id': 1338931141, 'portfolio_id': 20736815}, {'photo_id': 1338931128, 'portfolio_id': 20736815}, {'photo_id': 1338931108, 'portfolio_id': 20736815}, {'photo_id': 1338931090, 'portfolio_id': 20736815}, {'photo_id': 1338930930, 'portfolio_id': 20736815}, {'photo_id': 1338930925, 'portfolio_id': 20736815}, {'photo_id': 1338930660, 'portfolio_id': 20736815}, {'photo_id': 1338930655, 'portfolio_id': 20736815}, {'photo_id': 1338930602, 'portfolio_id': 20736815}, {'photo_id': 1338930597, 'portfolio_id': 20736815}, {'photo_id': 1338930596, 'portfolio_id': 20736815}, {'photo_id': 1338930592, 'portfolio_id': 20736815}, {'photo_id': 1338930006, 'portfolio_id': 20736815}, {'photo_id': 1338929804, 'portfolio_id': 20736815}, {'photo_id': 1338929745, 'portfolio_id': 20736815}, {'photo_id': 1338929744, 'portfolio_id': 20736815}, {'photo_id': 1338929736, 'portfolio_id': 20736815}] map_portfolio_id_photo_id: {20736815: [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805, 1338932790, 1338932789, 1338932788, 1338932785, 1338932781, 1338932777, 1338932640, 1338932636, 1338932588, 1338932584, 1338932580, 1338932573, 1338932539, 1338932535, 1338932197, 1338932194, 1338932190, 1338932186, 1338932158, 1338932153, 1338931288, 1338931278, 1338931230, 1338931216, 1338931211, 1338931206, 1338931190, 1338931154, 1338931150, 1338931141, 1338931128, 1338931108, 1338931090, 1338930930, 1338930925, 1338930660, 1338930655, 1338930602, 1338930597, 1338930596, 1338930592, 1338930006, 1338929804, 1338929745, 1338929744, 1338929736]} ##### 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.01649618148803711 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 21 23:28: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 (20736815) 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 : 20736815 get user id for portfolio 20736815 get sub ptf for main ptf 20736815, type 3726 and hashtags ['Teint_Dans_La_Masse', 'plastique', 'flou', 'cartonnette', 'metal', 'autre_refus', 'kraft', 'Carton_brun', 'Carton_gris', 'environnement', 'mal_croppe', 'papier'] 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`=20736815 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','flou','cartonnette','metal','autre_refus','kraft','Carton_brun','Carton_gris','environnement','mal_croppe','papier')) 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`=20736815 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','flou','cartonnette','metal','autre_refus','kraft','Carton_brun','Carton_gris','environnement','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20736815, 'sub_port_id': 20736825, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380896, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'cartonnette': {'main_port_id': 20736815, 'sub_port_id': 20736826, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380897, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'flou': {'main_port_id': 20736815, 'sub_port_id': 20736827, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380898, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'Carton_gris': {'main_port_id': 20736815, 'sub_port_id': 20736828, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380899, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'papier': {'main_port_id': 20736815, 'sub_port_id': 20736829, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380900, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 20736815, 'sub_port_id': 20736830, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380901, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'Carton_brun': {'main_port_id': 20736815, 'sub_port_id': 20736831, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380902, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'environnement': {'main_port_id': 20736815, 'sub_port_id': 20736832, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380903, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'mal_croppe': {'main_port_id': 20736815, 'sub_port_id': 20736833, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380904, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'metal': {'main_port_id': 20736815, 'sub_port_id': 20736834, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380905, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'kraft': {'main_port_id': 20736815, 'sub_port_id': 20736835, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380906, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}, 'autre_refus': {'main_port_id': 20736815, 'sub_port_id': 20736836, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380907, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20736825 , 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=20736815 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 (20736825) result : ((1338931266,), (1338931267,), (1338931268,), (1338932450,), (1338932451,), (1338932659,), (1338932660,), (1338932661,), (1338932662,), (1338932929,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736826 , 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=20736815 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 (20736826) result : ((1338931262,), (1338932446,), (1338932447,), (1338932648,), (1338932649,), (1338932650,), (1338932651,), (1338932652,), (1338932923,), (1338932924,), (1338932925,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736827 , 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=20736815 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 (20736827) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736828 , 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=20736815 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 (20736828) result : ((1338931248,), (1338932200,), (1338932444,), (1338932445,), (1338932645,), (1338932921,), (1338932968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736829 , 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=20736815 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 (20736829) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736830 , 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=20736815 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 (20736830) result : ((1338931237,), (1338931238,), (1338931239,), (1338931240,), (1338931241,), (1338931242,), (1338931243,), (1338932436,), (1338932437,), (1338932642,), (1338932915,), (1338932916,), (1338932917,), (1338932918,), (1338932919,), (1338932920,), (1338932963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736831 , 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=20736815 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 (20736831) result : ((1338931263,), (1338932655,), (1338932656,), (1338932927,), (1338932928,), (1338932970,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736832 , 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=20736815 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 (20736832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736833 , 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=20736815 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 (20736833) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736834 , 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=20736815 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 (20736834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736835 , 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=20736815 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 (20736835) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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 20736836 , 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=20736815 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 (20736836) result : ((1338931245,), (1338931246,), (1338932199,), (1338932439,), (1338932964,), (1338932965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20736815) result : ((1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) 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`=20736815 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','flou','cartonnette','metal','autre_refus','kraft','Carton_brun','Carton_gris','environnement','mal_croppe','papier')) 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`=20736815 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','flou','cartonnette','metal','autre_refus','kraft','Carton_brun','Carton_gris','environnement','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20736815, 'sub_port_id': 20736837, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380908, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'cartonnette': {'main_port_id': 20736815, 'sub_port_id': 20736838, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380909, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'flou': {'main_port_id': 20736815, 'sub_port_id': 20736839, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380910, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'Carton_gris': {'main_port_id': 20736815, 'sub_port_id': 20736840, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380911, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'papier': {'main_port_id': 20736815, 'sub_port_id': 20736841, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380912, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20736815, 'sub_port_id': 20736842, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380913, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'Carton_brun': {'main_port_id': 20736815, 'sub_port_id': 20736843, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380914, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'environnement': {'main_port_id': 20736815, 'sub_port_id': 20736844, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380915, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'mal_croppe': {'main_port_id': 20736815, 'sub_port_id': 20736845, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380916, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'metal': {'main_port_id': 20736815, 'sub_port_id': 20736846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380917, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'kraft': {'main_port_id': 20736815, 'sub_port_id': 20736847, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380918, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}, 'autre_refus': {'main_port_id': 20736815, 'sub_port_id': 20736848, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13380919, 'last_updated_at': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 23, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 23, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20736848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20736836 lien utilise dans velours : https://www.fotonower.com/velours/20736837,20736838,20736839,20736840,20736841,20736842,20736843,20736844,20736845,20736846,20736847,20736848?tags=plastique,cartonnette,flou,Carton_gris,papier,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,metal,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20736815]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] map_info['map_portfolio_photo'] : {20736815: [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805, 1338932790, 1338932789, 1338932788, 1338932785, 1338932781, 1338932777, 1338932640, 1338932636, 1338932588, 1338932584, 1338932580, 1338932573, 1338932539, 1338932535, 1338932197, 1338932194, 1338932190, 1338932186, 1338932158, 1338932153, 1338931288, 1338931278, 1338931230, 1338931216, 1338931211, 1338931206, 1338931190, 1338931154, 1338931150, 1338931141, 1338931128, 1338931108, 1338931090, 1338930930, 1338930925, 1338930660, 1338930655, 1338930602, 1338930597, 1338930596, 1338930592, 1338930006, 1338929804, 1338929745, 1338929744, 1338929736]} final : False mtd_id 4302 list_pids : [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] Looping around the photos to save general results len do output : 1 /20736815. 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, '2606130') ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20736815', "{'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836}", None, None, None, None, '2606130'), ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130')] time used for this insertion : 0.013759851455688477 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.383110761642456 time spend to save output : 0.01404428482055664 total time spend for step 1 : 1.3971550464630127 step2:final Fri Feb 21 23:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20736815) 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 20736815 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338930006,1338929804,1338929745,1338929744,1338929736,1338930660,1338930655,1338930602,1338930597,1338930596,1338930592,1338930930,1338930925,1338931154,1338931150,1338931141,1338931128,1338931108,1338931090,1338931230,1338931216,1338931211,1338931206,1338931190,1338931288,1338931278,1338932197,1338932194,1338932190,1338932186,1338932158,1338932153,1338932588,1338932584,1338932580,1338932573,1338932539,1338932535,1338932640,1338932636,1338932790,1338932789,1338932788,1338932785,1338932781,1338932777,1338932829,1338932827,1338932821,1338932815,1338932809,1338932805,1338932877,1338932872,1338932868); 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([20736815]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} new output for save of step final : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] map_info['map_portfolio_photo'] : {20736815: [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805, 1338932790, 1338932789, 1338932788, 1338932785, 1338932781, 1338932777, 1338932640, 1338932636, 1338932588, 1338932584, 1338932580, 1338932573, 1338932539, 1338932535, 1338932197, 1338932194, 1338932190, 1338932186, 1338932158, 1338932153, 1338931288, 1338931278, 1338931230, 1338931216, 1338931211, 1338931206, 1338931190, 1338931154, 1338931150, 1338931141, 1338931128, 1338931108, 1338931090, 1338930930, 1338930925, 1338930660, 1338930655, 1338930602, 1338930597, 1338930596, 1338930592, 1338930006, 1338929804, 1338929745, 1338929744, 1338929736]} final : False mtd_id 4302 list_pids : [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] Looping around the photos to save general results len do output : 9 /1338932877.Didn't retrieve data . /1338932872.Didn't retrieve data . /1338932868.Didn't retrieve data . /1338932829.Didn't retrieve data . /1338932827.Didn't retrieve data . /1338932821.Didn't retrieve data . /1338932815.Didn't retrieve data . /1338932809.Didn't retrieve data . /1338932805.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, '2606130') ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20736815', '1338932877', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932872', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932868', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932829', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932827', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932821', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932815', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932809', '0.054517816436639915', None, None, None, None, '2606130'), ('4302', '20736815', '1338932805', '0.054517816436639915', None, None, None, None, '2606130')] time used for this insertion : 0.01335597038269043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07082653045654297 time spend to save output : 0.01387333869934082 total time spend for step 2 : 0.08469986915588379 step3:velours_tree Fri Feb 21 23:28: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 complete output_args for input 0 : {20736815: [{'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836}]} input_args_next_step : {20736815: ()} output_args : {20736815: [{'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836}]} args : 20736815 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 : ({'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20736815) 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([20736815]) 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.28961801528930664 time spend to save output : 5.1975250244140625e-05 total time spend for step 3 : 0.2896699905395508 step4:send_mail_cod Fri Feb 21 23:28: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 : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} input_args_next_step : {1338932877: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932877 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932872 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932868 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932829 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932827 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932821 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932815 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932809 depend.output_id : 0 input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ()} output_args : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',)} args : 1338932805 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 : {20736815: [{'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836}]} input_args_next_step : {1338932877: ('0.054517816436639915',), 1338932872: ('0.054517816436639915',), 1338932868: ('0.054517816436639915',), 1338932829: ('0.054517816436639915',), 1338932827: ('0.054517816436639915',), 1338932821: ('0.054517816436639915',), 1338932815: ('0.054517816436639915',), 1338932809: ('0.054517816436639915',), 1338932805: ('0.054517816436639915',), 20736815: ()} output_args : {20736815: [{'plastique': 20736825, 'cartonnette': 20736826, 'flou': 20736827, 'Carton_gris': 20736828, 'papier': 20736829, 'Teint_Dans_La_Masse': 20736830, 'Carton_brun': 20736831, 'environnement': 20736832, 'mal_croppe': 20736833, 'metal': 20736834, 'kraft': 20736835, 'autre_refus': 20736836}]} args : 20736815 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.054517816436639915',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20736815) 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 (1338932877,1338932872,1338932868,1338932829,1338932827,1338932821,1338932815,1338932809,1338932805) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338932805 begin to download photo : 1338932815 begin to download photo : 1338932827 begin to download photo : 1338932868 begin to download photo : 1338932877 download finish for photo 1338932868 begin to download photo : 1338932872 download finish for photo 1338932877 download finish for photo 1338932827 begin to download photo : 1338932829 download finish for photo 1338932805 begin to download photo : 1338932809 download finish for photo 1338932815 begin to download photo : 1338932821 download finish for photo 1338932872 download finish for photo 1338932829 download finish for photo 1338932821 download finish for photo 1338932809 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20736815_21-02-2025_23_28_59.pdf 20736825 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=20736825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338931266: '1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742077_0.png', 1338931267: '1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742309_0.png', 1338931268: '1740176372_1197137_1338929736_89f079c85a2270b977a53d794fc65e2c_rle_crop_3682742333_0.png', 1338932450: '1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748645_0.png', 1338932451: '1740176492_1199488_1338931141_257db0037b2fd8d4767785f08df23005_rle_crop_3682748682_0.png', 1338932659: '1740176595_1202299_1338930655_91b26dd9e18b46c437e0919e72dd3aef_rle_crop_3682742318_0.png', 1338932660: '1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745605_0.png', 1338932661: '1740176595_1202299_1338930596_27d57f131732da18315025c333d84eee_rle_crop_3682745653_0.png', 1338932662: '1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745843_0.png', 1338932929: '1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755190_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/374b3c1882160d10602b6e8f01ab8adc_47046061.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b54426135d4de02c85db35862a159744_13120648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2b463ca61474a9472a8f666f024e8b02_539088.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ed99b896eca169c77e62dc13bb2e3e14_43541161.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/242458111de9ff962521537665abf449_39378596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/21252c2be2d73ec2b557531aff5885c7_28670779.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/233ec4f619f535caa25bcfc05c573a73_82725163.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/db92602213d192b910bc90dfdb023af7_42898495.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e26f8286e5835915f8523a1e4aebdd5e_19906800.png change filename to text .imagette207368251740176939/ imagette207368251740176939/1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755190_0.png.png imagette207368251740176939/1740176595_1202299_1338930655_91b26dd9e18b46c437e0919e72dd3aef_rle_crop_3682742318_0.png.png imagette207368251740176939/1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745605_0.png.png imagette207368251740176939/1740176492_1199488_1338931141_257db0037b2fd8d4767785f08df23005_rle_crop_3682748682_0.png.png imagette207368251740176939/1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745843_0.png.png imagette207368251740176939/1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748645_0.png.png imagette207368251740176939/1740176372_1197137_1338929736_89f079c85a2270b977a53d794fc65e2c_rle_crop_3682742333_0.png.png imagette207368251740176939/1740176595_1202299_1338930596_27d57f131732da18315025c333d84eee_rle_crop_3682745653_0.png.png imagette207368251740176939/1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742309_0.png.png imagette207368251740176939/1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742077_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d809615fad2c19c4ba4c8c26c04dbbab_91171182.png imagette207368251740176939 20736826 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=20736826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338931262: '1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742240_0.png', 1338932446: '1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748638_0.png', 1338932447: '1740176492_1199488_1338931108_711fa9c0b03b958296255e018a085726_rle_crop_3682750729_0.png', 1338932648: '1740176595_1202299_1338930930_730dd5b76b3529c4109738efd363f4e1_rle_crop_3682751449_0.png', 1338932649: '1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742355_0.png', 1338932650: '1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742353_0.png', 1338932651: '1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745611_0.png', 1338932652: '1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745606_0.png', 1338932923: '1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755149_0.png', 1338932924: '1740176834_1205763_1338932785_3e94763234d9ef4966d7f94b0baa02ec_rle_crop_3682755160_0.png', 1338932925: '1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755171_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2a98c4a288ed836e40614341c902b503_18007428.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/27935a22680a7d0e1739b136b69500cd_78219859.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/19684f0558690324815d7f3b980ff4e1_785723.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/aec10645583cfc9973431c181da15684_41127906.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d2d4e23760ca1495d4ec8e2d177e7e19_49155361.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/daf1ca787d2f50cf2b127de5da71e65c_27244513.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/03437ce7b7a2d85fa29c9860cd4cd1e3_22798.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1ddd1139987818d443f2fb1d6bd3062f_93431368.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b5cb270d6f7682fe9c5a3d704be8ab48_39259076.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f88af21354e459229638df7a816fa361_89907774.png change filename to text .imagette207368261740176940/ imagette207368261740176940/1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755149_0.png.png imagette207368261740176940/1740176595_1202299_1338930930_730dd5b76b3529c4109738efd363f4e1_rle_crop_3682751449_0.png.png imagette207368261740176940/1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748638_0.png.png imagette207368261740176940/1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742240_0.png.png imagette207368261740176940/1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745611_0.png.png imagette207368261740176940/1740176595_1202299_1338930597_0cf2f5d90923063715967ec1ee853e95_rle_crop_3682745606_0.png.png imagette207368261740176940/1740176492_1199488_1338931108_711fa9c0b03b958296255e018a085726_rle_crop_3682750729_0.png.png imagette207368261740176940/1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742353_0.png.png imagette207368261740176940/1740176834_1205763_1338932785_3e94763234d9ef4966d7f94b0baa02ec_rle_crop_3682755160_0.png.png imagette207368261740176940/1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742355_0.png.png imagette207368261740176940/1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755171_0.png.png imagette207368271740176940/ imagette207368331740176940/ imagette207368341740176940/ imagette207368351740176940/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4e51808cd80c9f934bd4fefac54190f7_34860422.png imagette207368261740176940 20736827 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=20736827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207368271740176940 20736833 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=20736833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207368331740176940 20736834 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=20736834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207368341740176940 20736835 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=20736835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207368351740176940 20736836 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=20736836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338931245: '1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742246_0.png', 1338931246: '1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742301_0.png', 1338932199: '1740176513_1199786_1338931154_74fcb51a30720b8f5eaf0b9987613b62_rle_crop_3682748595_0.png', 1338932439: '1740176492_1199488_1338931141_257db0037b2fd8d4767785f08df23005_rle_crop_3682748685_0.png', 1338932964: '1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755250_0.png', 1338932965: '1740176853_1205985_1338932580_adb9cddb1eabcffd10259e6f9d55d6f1_rle_crop_3682755265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7480a4b42f71a20d297d9c5be407f537_60556852.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/953e84594a5d28e488a736c7dfa9cb3d_86448838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/990b725491b2185db4011845fbf00b92_35365896.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fdbb9b098123850e94419eac6032cc3a_8886680.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/071106664aa234295e07e1546cb0c2b1_65986273.png change filename to text .imagette207368361740176940/ imagette207368361740176940/1740176513_1199786_1338931154_74fcb51a30720b8f5eaf0b9987613b62_rle_crop_3682748595_0.png.png imagette207368361740176940/1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742246_0.png.png imagette207368361740176940/1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742301_0.png.png imagette207368361740176940/1740176492_1199488_1338931141_257db0037b2fd8d4767785f08df23005_rle_crop_3682748685_0.png.png imagette207368361740176940/1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755250_0.png.png imagette207368361740176940/1740176853_1205985_1338932580_adb9cddb1eabcffd10259e6f9d55d6f1_rle_crop_3682755265_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/dc83ab6ba1d3011744f358432fad33f3_73391684.png imagette207368361740176940 20736828 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=20736828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338931248: '1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742241_0.png', 1338932200: '1740176513_1199786_1338931154_74fcb51a30720b8f5eaf0b9987613b62_rle_crop_3682748588_0.png', 1338932444: '1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748644_0.png', 1338932445: '1740176492_1199488_1338931128_6706abd3be9eda6d1a06b1ca38bb4993_rle_crop_3682748699_0.png', 1338932645: '1740176595_1202299_1338930655_91b26dd9e18b46c437e0919e72dd3aef_rle_crop_3682742317_0.png', 1338932921: '1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755173_0.png', 1338932968: '1740176853_1205985_1338932535_47d1257a50a8ac69e138333677f180c1_rle_crop_3682755322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1d80ae0a761b0c0383843b53677e4ed4_73939756.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/72076eac96ab9b9b6548930dbadeb627_97048997.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9a5e0999d48a5c5ed642bbb42c880c32_89562006.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/88459467021ee3e4ceb64aa6c6830bbe_13566336.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ef586189952c88c1cfccc5dd5d48497a_45699261.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d6817a4781950a990636fa2d29a0c0af_82680637.png change filename to text .imagette207368281740176941/ imagette207368281740176941/1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742241_0.png.png imagette207368281740176941/1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755173_0.png.png imagette207368281740176941/1740176513_1199786_1338931154_74fcb51a30720b8f5eaf0b9987613b62_rle_crop_3682748588_0.png.png imagette207368281740176941/1740176492_1199488_1338931128_6706abd3be9eda6d1a06b1ca38bb4993_rle_crop_3682748699_0.png.png imagette207368281740176941/1740176853_1205985_1338932535_47d1257a50a8ac69e138333677f180c1_rle_crop_3682755322_0.png.png imagette207368281740176941/1740176492_1199488_1338931150_1a74c95c8f19479c23066c984ba044d9_rle_crop_3682748644_0.png.png imagette207368281740176941/1740176595_1202299_1338930655_91b26dd9e18b46c437e0919e72dd3aef_rle_crop_3682742317_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4fe4bbdfa03913920c6a8d1f8313440f_12942135.png imagette207368281740176941 20736830 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=20736830 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338932437: '1740176492_1199488_1338931108_711fa9c0b03b958296255e018a085726_rle_crop_3682750736_0.png', 1338932963: '1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755245_0.png', 1338932920: '1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755191_0.png', 1338932919: '1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755177_0.png', 1338932918: '1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755178_0.png', 1338932917: '1740176834_1205763_1338932785_3e94763234d9ef4966d7f94b0baa02ec_rle_crop_3682755164_0.png', 1338932916: '1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755143_0.png', 1338932915: '1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755138_0.png', 1338932642: '1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745839_0.png', 1338931237: '1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742076_0.png', 1338932436: '1740176492_1199488_1338931128_6706abd3be9eda6d1a06b1ca38bb4993_rle_crop_3682748698_0.png', 1338931243: '1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742305_0.png', 1338931242: '1740176372_1197137_1338929745_5c90a5e3b9f2c9d56deba14fb9ec3f7e_rle_crop_3682742273_0.png', 1338931241: '1740176372_1197137_1338929745_5c90a5e3b9f2c9d56deba14fb9ec3f7e_rle_crop_3682742274_0.png', 1338931240: '1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742251_0.png', 1338931239: '1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742256_0.png', 1338931238: '1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742074_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5bbea6d1c45878c11769d38d9941f5ae_49232153.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9e18f1d162f0466ba83b8c5902dd99d3_78673964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/63282188f01ed0049f94ef3292e1bb04_85472823.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4e64fe72d87bd5b86bd8975c2224e832_75621731.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b54b9fc91adb5920fa72b312369bf216_19870953.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c0992bcc7d1a46ea539331490eb4f905_67966017.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8bcbbe9f4dceb95b36f99a926cfb886e_85034756.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/370a935dbce97f3e5b292247f83d1b40_1771016.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ca7533fbc2539c6459d827cb86adaaef_53309403.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6f018117b98861eda3db11ab6ce39eb7_98134432.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c5541443258827c3d087c16eed0fc517_55253382.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/30b70af150332138a17a5c4eeb38c41d_15751054.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/40715da3dfc57e3a91c1a73e1e6d3d37_89500198.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/11897bc5d5e183c35216d0fbab5609d3_13183907.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5e0fdcb2c83042a840b46f3150107142_30268369.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a1aafc1064a8abd8f675b6c1b4857001_21577099.png change filename to text .imagette207368301740176941/ imagette207368301740176941/1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755245_0.png.png imagette207368301740176941/1740176492_1199488_1338931108_711fa9c0b03b958296255e018a085726_rle_crop_3682750736_0.png.png imagette207368301740176941/1740176372_1197137_1338929745_5c90a5e3b9f2c9d56deba14fb9ec3f7e_rle_crop_3682742274_0.png.png imagette207368301740176941/1740176372_1197137_1338929745_5c90a5e3b9f2c9d56deba14fb9ec3f7e_rle_crop_3682742273_0.png.png imagette207368301740176941/1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755177_0.png.png imagette207368301740176941/1740176372_1197137_1338929744_222ae51a8689b0863060a1c3792d6751_rle_crop_3682742305_0.png.png imagette207368301740176941/1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755178_0.png.png imagette207368301740176941/1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742074_0.png.png imagette207368301740176941/1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755138_0.png.png imagette207368301740176941/1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742256_0.png.png imagette207368301740176941/1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755191_0.png.png imagette207368301740176941/1740176372_1197137_1338929804_e900c2e1becd09b13df1c3047bfab98d_rle_crop_3682742251_0.png.png imagette207368301740176941/1740176834_1205763_1338932788_62c4cdc4309829f5fbe10b88a25e5098_rle_crop_3682755143_0.png.png imagette207368301740176941/1740176834_1205763_1338932785_3e94763234d9ef4966d7f94b0baa02ec_rle_crop_3682755164_0.png.png imagette207368301740176941/1740176372_1197137_1338930006_b4a28a056aebb58505c9dbbc8fce03cd_rle_crop_3682742076_0.png.png imagette207368301740176941/1740176492_1199488_1338931128_6706abd3be9eda6d1a06b1ca38bb4993_rle_crop_3682748698_0.png.png imagette207368301740176941/1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745839_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/490e3afcd90396090d4ad8f9329d48db_19389319.png imagette207368301740176941 20736831 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=20736831 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338931263: '1740176372_1197137_1338929736_89f079c85a2270b977a53d794fc65e2c_rle_crop_3682742334_0.png', 1338932655: '1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742354_0.png', 1338932656: '1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745840_0.png', 1338932927: '1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755172_0.png', 1338932928: '1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755186_0.png', 1338932970: '1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755247_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b3ffe172fa51e94c9a2da65c0e7633ac_13108530.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/399aae302ffb183edc9e28200ed017ef_62398943.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a8baf6e30e61bd5d8669f7323e591bb1_54503555.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/111281f79f8b37eac2b969bc31386a15_5367730.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7beff82eba26c4eca58cab9038d917cf_54938279.png change filename to text .imagette207368311740176942/ imagette207368311740176942/1740176595_1202299_1338930602_7efc1b99ac74f8453b2c1c0205de3ff3_rle_crop_3682742354_0.png.png imagette207368311740176942/1740176372_1197137_1338929736_89f079c85a2270b977a53d794fc65e2c_rle_crop_3682742334_0.png.png imagette207368311740176942/1740176834_1205763_1338932777_29d561b78547c9b29747eef4c9eb8943_rle_crop_3682755186_0.png.png imagette207368311740176942/1740176834_1205763_1338932781_c9495fbf7bb8f43e59c225f656ef8dc4_rle_crop_3682755172_0.png.png imagette207368311740176942/1740176595_1202299_1338930592_2e6dadd84599c9481f69bafdbcef354f_rle_crop_3682745840_0.png.png imagette207368311740176942/1740176853_1205985_1338932584_6f270ab6802915c2441f2623681146f1_rle_crop_3682755247_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2340b7975281d36258fbba2de424c403_87491726.png imagette207368311740176942 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20736815 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20736837,20736838,20736839,20736840,20736841,20736842,20736843,20736844,20736845,20736846,20736847,20736848?tags=plastique,cartonnette,flou,Carton_gris,papier,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,metal,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1338932877] : ('0.054517816436639915',) no score found for photo 1338932877 We are sending mail with results at report@fotonower.com args[1338932872] : ('0.054517816436639915',) no score found for photo 1338932872 We are sending mail with results at report@fotonower.com args[1338932868] : ('0.054517816436639915',) no score found for photo 1338932868 We are sending mail with results at report@fotonower.com args[1338932829] : ('0.054517816436639915',) no score found for photo 1338932829 We are sending mail with results at report@fotonower.com args[1338932827] : ('0.054517816436639915',) no score found for photo 1338932827 We are sending mail with results at report@fotonower.com args[1338932821] : ('0.054517816436639915',) no score found for photo 1338932821 We are sending mail with results at report@fotonower.com args[1338932815] : ('0.054517816436639915',) no score found for photo 1338932815 We are sending mail with results at report@fotonower.com args[1338932809] : ('0.054517816436639915',) no score found for photo 1338932809 We are sending mail with results at report@fotonower.com args[1338932805] : ('0.054517816436639915',) no score found for photo 1338932805 We are sending mail with results at report@fotonower.com refus_total : 0.054517816436639915 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=20736815 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_P20736815_21-02-2025_23_28_59.pdf results_Auto_P20736815_21-02-2025_23_28_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736815_21-02-2025_23_28_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','20736815','results_Auto_P20736815_21-02-2025_23_28_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736815_21-02-2025_23_28_59.pdf','pdf','','0.29','0.054517816436639915') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20736815]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] map_info['map_portfolio_photo'] : {20736815: [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805, 1338932790, 1338932789, 1338932788, 1338932785, 1338932781, 1338932777, 1338932640, 1338932636, 1338932588, 1338932584, 1338932580, 1338932573, 1338932539, 1338932535, 1338932197, 1338932194, 1338932190, 1338932186, 1338932158, 1338932153, 1338931288, 1338931278, 1338931230, 1338931216, 1338931211, 1338931206, 1338931190, 1338931154, 1338931150, 1338931141, 1338931128, 1338931108, 1338931090, 1338930930, 1338930925, 1338930660, 1338930655, 1338930602, 1338930597, 1338930596, 1338930592, 1338930006, 1338929804, 1338929745, 1338929744, 1338929736]} final : False mtd_id 4302 list_pids : [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] 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, '2606130') ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20736815', '1338932877', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130')] time used for this insertion : 0.013452529907226562 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.594522953033447 time spend to save output : 0.013656139373779297 total time spend for step 4 : 4.608179092407227 step5:split_time_score Fri Feb 21 23:29:04 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 : ['20736815'] 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 : [('20736815',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20736815) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338932877: {'path': 'temp/1740176939_1080524_1338932877_29b59a198747f8cf3b884f8f1ff43d12.jpg', 'extension': 'jpg'}, 1338932868: {'path': 'temp/1740176939_1080524_1338932868_78639e35102ac40e184118823cf6ad1e.jpg', 'extension': 'jpg'}, 1338932872: {'path': 'temp/1740176939_1080524_1338932872_4947b22a9736ba1115d5dfb2e5fafd4a.jpg', 'extension': 'jpg'}, 1338932827: {'path': 'temp/1740176939_1080524_1338932827_85e7713bce4b7e87d248293702a2c0ac.jpg', 'extension': 'jpg'}, 1338932829: {'path': 'temp/1740176939_1080524_1338932829_9de22c6cf1c71169d56bfbbf3712702d.jpg', 'extension': 'jpg'}, 1338932815: {'path': 'temp/1740176939_1080524_1338932815_97842eeb5e91a3d403f0741235d1c45f.jpg', 'extension': 'jpg'}, 1338932821: {'path': 'temp/1740176939_1080524_1338932821_0a590b195cac1a48671afd06a422be10.jpg', 'extension': 'jpg'}, 1338932805: {'path': 'temp/1740176939_1080524_1338932805_6ca56d22f466fb88f759786cb3b37dc3.jpg', 'extension': 'jpg'}, 1338932809: {'path': 'temp/1740176939_1080524_1338932809_1757594a4afbba2a83d774ef61a1e6c4.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 = 20736815; (('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 = 20736815 group by h (('23', 55),) 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=20736815 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 (20736815) 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 (20736815) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20736815 Nombre de photos uploadées : 55 / 23040 (0%) 21022025 20736815 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 21022025 20736815 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1338930006, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b4a28a056aebb58505c9dbbc8fce03cd.jpg', 'username': None, 'uploaded_at': 1740176185, 'text': 'image_21022025_23_15_03_10154.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338929804, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e900c2e1becd09b13df1c3047bfab98d.jpg', 'username': None, 'uploaded_at': 1740176185, 'text': 'image_21022025_23_15_13_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338929745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5c90a5e3b9f2c9d56deba14fb9ec3f7e.jpg', 'username': None, 'uploaded_at': 1740176185, 'text': 'image_21022025_23_15_24_10142.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338929744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/222ae51a8689b0863060a1c3792d6751.jpg', 'username': None, 'uploaded_at': 1740176185, 'text': 'image_21022025_23_15_34_10136.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024895668029785156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20736815, '2025-02-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1615145,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022257566452026367 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= 1615145 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1615145, 'dashboard_run_id': 1625805, 'mtr_portfolio_id': 20734877, 'dashboard_result_id': 9015358, '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_P20734877_21-02-2025_22_53_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20734886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20734887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20734888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20734889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20734890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20734891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20734892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20734893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20734894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20734895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20734896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20734897, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1625805, 'mtr_portfolio_id': 20735742, 'dashboard_result_id': 9015359, '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_P20735742_21-02-2025_23_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20735779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20735780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20735781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20735782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20735783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20735784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20735785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20735786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20735787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20735788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20735789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20735790, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1625805, 'mtr_portfolio_id': 20736246, 'dashboard_result_id': 9015360, '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_P20736246_21-02-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736265, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1625805, 'mtr_portfolio_id': 20736815, 'dashboard_result_id': 9015361, '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_P20736815_21-02-2025_23_27_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736836, '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 = 20734877 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': 2605952, 'mtr_portfolio_id': 20734877, 'created_at': datetime.datetime(2025, 2, 21, 22, 53), 'result': '0.03908951369506188', 'result_long': None, 'result_double': None}] Qualite : 0.03908951369506188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20734877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20734877_21-02-2025_22_53_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20734877 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_P20734877_21-02-2025_22_53_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20734886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20734887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20734888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20734889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20734890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20734891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20734892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20734893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20734894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20734895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20734896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20734897, 'pht': 3726}}" where mtr_portfolio_id = 20734877 and dashboard_run_id = 1625805 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`=20734877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9015358, 0.03908951369506188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20734877_21-02-2025_22_53_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20734886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20734887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20734888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20734889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20734890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20734891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20734892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20734893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20734894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20734895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20734896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20734897, '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 = 20735742 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': 2606021, 'mtr_portfolio_id': 20735742, 'created_at': datetime.datetime(2025, 2, 21, 23, 2, 58), 'result': '0.04101488503792574', 'result_long': None, 'result_double': None}] Qualite : 0.04101488503792574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20735742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20735742_21-02-2025_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20735742 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_P20735742_21-02-2025_23_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20735779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20735780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20735781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20735782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20735783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20735784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20735785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20735786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20735787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20735788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20735789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20735790, 'pht': 3726}}" where mtr_portfolio_id = 20735742 and dashboard_run_id = 1625805 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`=20735742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9015359, 0.04101488503792574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20735742_21-02-2025_23_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20735779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20735780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20735781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20735782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20735783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20735784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20735785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20735786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20735787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20735788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20735789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20735790, '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 = 20736246 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': 2606070, 'mtr_portfolio_id': 20736246, 'created_at': datetime.datetime(2025, 2, 21, 23, 18, 58), 'result': '0.057905551416885734', 'result_long': None, 'result_double': None}] Qualite : 0.057905551416885734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20736246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736246_21-02-2025_23_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20736246 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_P20736246_21-02-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736265, 'pht': 3726}}" where mtr_portfolio_id = 20736246 and dashboard_run_id = 1625805 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`=20736246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9015360, 0.057905551416885734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736246_21-02-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736265, '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 = 20736815 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': 2606130, 'mtr_portfolio_id': 20736815, 'created_at': datetime.datetime(2025, 2, 21, 23, 28, 59), 'result': '0.054517816436639915', 'result_long': None, 'result_double': None}] Qualite : 0.054517816436639915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20736815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736815_21-02-2025_23_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20736815 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_P20736815_21-02-2025_23_28_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736836, 'pht': 3726}}" where mtr_portfolio_id = 20736815 and dashboard_run_id = 1625805 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`=20736815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9015361, 0.054517816436639915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20736815_21-02-2025_23_28_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20736825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20736826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20736827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20736828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20736829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20736830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20736831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20736832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20736833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20736834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20736835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20736836, '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 (20734877,20735742,20736246,20736815) result : ((1338922828,), (1338922830,), (1338922842,), (1338922846,), (1338922852,), (1338922888,), (1338922895,), (1338922906,), (1338922911,), (1338922988,), (1338922991,), (1338923018,), (1338923025,), (1338923028,), (1338923030,), (1338923051,), (1338923055,), (1338923059,), (1338923095,), (1338923365,), (1338923657,), (1338923912,), (1338924210,), (1338924335,), (1338924361,), (1338924369,), (1338924373,), (1338925309,), (1338925424,), (1338925486,), (1338925495,), (1338925497,), (1338925610,), (1338925616,), (1338925770,), (1338925860,), (1338926119,), (1338926123,), (1338926233,), (1338926236,), (1338926243,), (1338926299,), (1338926313,), (1338926317,), (1338926320,), (1338926328,), (1338926346,), (1338926368,), (1338926377,), (1338926381,), (1338926382,), (1338926383,), (1338926413,), (1338926416,), (1338926452,), (1338926458,), (1338926731,), (1338926718,), (1338926723,), (1338926727,), (1338926748,), (1338926752,), (1338926758,), (1338926761,), (1338926765,), (1338926769,), (1338926782,), (1338926787,), (1338926827,), (1338926830,), (1338926834,), (1338926865,), (1338926869,), (1338926873,), (1338926874,), (1338926875,), (1338926878,), (1338926892,), (1338926897,), (1338926901,), (1338926912,), (1338926919,), (1338926940,), (1338926945,), (1338926951,), (1338926952,), (1338927006,), (1338927012,), (1338927023,), (1338927030,), (1338927034,), (1338927038,), (1338927156,), (1338927157,), (1338927185,), (1338927193,), (1338927197,), (1338927349,), (1338927354,), (1338927357,), (1338927358,), (1338927360,), (1338927368,), (1338927370,), (1338927373,), (1338927376,), (1338927532,), (1338927389,), (1338927392,), (1338927397,), (1338927401,), (1338927403,), (1338928508,), (1338928512,), (1338928523,), (1338928829,), (1338928835,), (1338928839,), (1338928843,), (1338928846,), (1338928985,), (1338928992,), (1338929157,), (1338929161,), (1338929259,), (1338929264,), (1338929270,), (1338929272,), (1338929274,), (1338929311,), (1338929315,), (1338929319,), (1338929322,), (1338929325,), (1338929411,), (1338929413,), (1338929416,), (1338929418,), (1338929419,), (1338929421,), (1338929447,), (1338929448,), (1338929491,), (1338929495,), (1338929498,), (1338929500,), (1338929508,), (1338929538,), (1338929540,), (1338929548,), (1338929551,), (1338929585,), (1338929588,), (1338929591,), (1338929640,), (1338929641,), (1338929643,), (1338929646,), (1338929648,), (1338929651,), (1338929673,), (1338929675,), (1338929677,), (1338929679,), (1338929682,), (1338929698,), (1338929699,), (1338929701,), (1338929705,), (1338930193,), (1338929736,), (1338929744,), (1338929745,), (1338929804,), (1338930006,), (1338930592,), (1338930596,), (1338930597,), (1338930602,), (1338930655,), (1338930660,), (1338930925,), (1338930930,), (1338931090,), (1338931108,), (1338931128,), (1338931141,), (1338931150,), (1338931154,), (1338931190,), (1338931206,), (1338931211,), (1338931216,), (1338931230,), (1338931278,), (1338931288,), (1338932153,), (1338932158,), (1338932186,), (1338932190,), (1338932194,), (1338932197,), (1338932535,), (1338932539,), (1338932573,), (1338932580,), (1338932584,), (1338932588,), (1338932636,), (1338932640,), (1338932777,), (1338932781,), (1338932785,), (1338932788,), (1338932789,), (1338932790,), (1338932805,), (1338932809,), (1338932815,), (1338932821,), (1338932827,), (1338932829,), (1338932868,), (1338932872,), (1338932877,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20736815]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] map_info['map_portfolio_photo'] : {20736815: [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805, 1338932790, 1338932789, 1338932788, 1338932785, 1338932781, 1338932777, 1338932640, 1338932636, 1338932588, 1338932584, 1338932580, 1338932573, 1338932539, 1338932535, 1338932197, 1338932194, 1338932190, 1338932186, 1338932158, 1338932153, 1338931288, 1338931278, 1338931230, 1338931216, 1338931211, 1338931206, 1338931190, 1338931154, 1338931150, 1338931141, 1338931128, 1338931108, 1338931090, 1338930930, 1338930925, 1338930660, 1338930655, 1338930602, 1338930597, 1338930596, 1338930592, 1338930006, 1338929804, 1338929745, 1338929744, 1338929736]} final : True mtd_id 4302 list_pids : [1338932877, 1338932872, 1338932868, 1338932829, 1338932827, 1338932821, 1338932815, 1338932809, 1338932805] Looping around the photos to save general results len do output : 1 /20736815Didn'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, '2606130') ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130') ('4302', None, None, None, None, None, None, None, '2606130') ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20736815', 'None', None, None, None, None, '2606130'), ('4302', '20736815', '1338932877', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932872', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932868', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932829', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932827', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932821', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932815', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932809', None, None, None, None, None, '2606130'), ('4302', '20736815', '1338932805', None, None, None, None, None, '2606130')] time used for this insertion : 0.013110637664794922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.319563627243042 time spend to save output : 0.013302326202392578 total time spend for step 5 : 0.33286595344543457 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 (2606130) 2.15user 2.34system 0:08.22elapsed 54%CPU (0avgtext+0avgdata 161336maxresident)k 528inputs+15768outputs (8major+64228minor)pagefaults 0swaps