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 : 1745810 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 (2752763) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2752763) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341945 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2752763'] with mtr_portfolio_ids : ['22341945'] and first list_photo_ids : [] new path : /proc/1745810/ Name: python3 Umask: 0002 State: R (running) Tgid: 1745810 Ngid: 0 Pid: 1745810 PPid: 1745809 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1745810 NSpid: 1745810 NSpgid: 1739695 NSsid: 1739695 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97996 kB VmRSS: 97996 kB RssAnon: 59804 kB RssFile: 38192 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 61 nonvoluntary_ctxt_switches: 135 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1745810', 'Ngid': '0', 'Pid': '1745810', 'PPid': '1745809', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1745810', 'NSpid': '1745810', 'NSpgid': '1739695', 'NSsid': '1739695', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97996 kB', 'VmRSS': '97996 kB', 'RssAnon': '59804 kB', 'RssFile': '38192 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '61', 'nonvoluntary_ctxt_switches': '135'} ('datou_batch_current', '1745810', '1106936', '0', '1106936', '865684', '97996', b'', 'marlene', '2752763') 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 (22341945) 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 (2752763 ) ) 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 (22341945) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353004878, 'portfolio_id': 22341945}, {'photo_id': 1353004867, 'portfolio_id': 22341945}, {'photo_id': 1353004855, 'portfolio_id': 22341945}, {'photo_id': 1353004848, 'portfolio_id': 22341945}, {'photo_id': 1353004691, 'portfolio_id': 22341945}, {'photo_id': 1353004685, 'portfolio_id': 22341945}, {'photo_id': 1353004681, 'portfolio_id': 22341945}, {'photo_id': 1353004678, 'portfolio_id': 22341945}, {'photo_id': 1353004675, 'portfolio_id': 22341945}, {'photo_id': 1353004652, 'portfolio_id': 22341945}, {'photo_id': 1353004516, 'portfolio_id': 22341945}, {'photo_id': 1353004506, 'portfolio_id': 22341945}, {'photo_id': 1353004496, 'portfolio_id': 22341945}, {'photo_id': 1353004483, 'portfolio_id': 22341945}, {'photo_id': 1353004478, 'portfolio_id': 22341945}, {'photo_id': 1353004474, 'portfolio_id': 22341945}, {'photo_id': 1353004394, 'portfolio_id': 22341945}, {'photo_id': 1353004392, 'portfolio_id': 22341945}, {'photo_id': 1353004378, 'portfolio_id': 22341945}, {'photo_id': 1353004337, 'portfolio_id': 22341945}, {'photo_id': 1353004320, 'portfolio_id': 22341945}, {'photo_id': 1353004314, 'portfolio_id': 22341945}, {'photo_id': 1353004310, 'portfolio_id': 22341945}, {'photo_id': 1353004306, 'portfolio_id': 22341945}, {'photo_id': 1353004274, 'portfolio_id': 22341945}, {'photo_id': 1353004268, 'portfolio_id': 22341945}, {'photo_id': 1353004262, 'portfolio_id': 22341945}, {'photo_id': 1353004257, 'portfolio_id': 22341945}, {'photo_id': 1353004252, 'portfolio_id': 22341945}, {'photo_id': 1353004038, 'portfolio_id': 22341945}, {'photo_id': 1353004020, 'portfolio_id': 22341945}, {'photo_id': 1353004012, 'portfolio_id': 22341945}, {'photo_id': 1353003921, 'portfolio_id': 22341945}, {'photo_id': 1353003917, 'portfolio_id': 22341945}, {'photo_id': 1353003914, 'portfolio_id': 22341945}, {'photo_id': 1353003911, 'portfolio_id': 22341945}, {'photo_id': 1353003909, 'portfolio_id': 22341945}, {'photo_id': 1353003907, 'portfolio_id': 22341945}, {'photo_id': 1353003863, 'portfolio_id': 22341945}, {'photo_id': 1353003859, 'portfolio_id': 22341945}, {'photo_id': 1353003854, 'portfolio_id': 22341945}, {'photo_id': 1353003847, 'portfolio_id': 22341945}, {'photo_id': 1353003843, 'portfolio_id': 22341945}, {'photo_id': 1353003797, 'portfolio_id': 22341945}, {'photo_id': 1353003794, 'portfolio_id': 22341945}, {'photo_id': 1353003788, 'portfolio_id': 22341945}] map_portfolio_id_photo_id: {22341945: [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474, 1353004394, 1353004392, 1353004378, 1353004337, 1353004320, 1353004314, 1353004310, 1353004306, 1353004274, 1353004268, 1353004262, 1353004257, 1353004252, 1353004038, 1353004020, 1353004012, 1353003921, 1353003917, 1353003914, 1353003911, 1353003909, 1353003907, 1353003863, 1353003859, 1353003854, 1353003847, 1353003843, 1353003797, 1353003794, 1353003788]} ##### 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.01677536964416504 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 23 11:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22341945) 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 : 22341945 get user id for portfolio 22341945 get sub ptf for main ptf 22341945, type 3726 and hashtags ['environnement', 'Carton_gris', 'metal', 'papier', 'Teint_Dans_La_Masse', 'autre_refus', 'flou', 'kraft', 'cartonnette', 'plastique', 'mal_croppe', 'Carton_brun'] 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`=22341945 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','metal','papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','cartonnette','plastique','mal_croppe','Carton_brun')) 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`=22341945 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','metal','papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','cartonnette','plastique','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22341945, 'sub_port_id': 22341974, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798728, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'environnement': {'main_port_id': 22341945, 'sub_port_id': 22341975, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798729, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'kraft': {'main_port_id': 22341945, 'sub_port_id': 22341976, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798730, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'autre_refus': {'main_port_id': 22341945, 'sub_port_id': 22341977, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798731, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'metal': {'main_port_id': 22341945, 'sub_port_id': 22341978, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798732, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'mal_croppe': {'main_port_id': 22341945, 'sub_port_id': 22341979, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798733, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'papier': {'main_port_id': 22341945, 'sub_port_id': 22341980, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798734, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'Carton_gris': {'main_port_id': 22341945, 'sub_port_id': 22341981, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798735, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'plastique': {'main_port_id': 22341945, 'sub_port_id': 22341982, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798736, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'cartonnette': {'main_port_id': 22341945, 'sub_port_id': 22341983, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798737, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'flou': {'main_port_id': 22341945, 'sub_port_id': 22341984, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798738, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22341945, 'sub_port_id': 22341985, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798739, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22341974 , 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=22341945 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 (22341974) result : ((1353004284,), (1353004376,), (1353004432,), (1353004433,), (1353004434,), (1353004435,), (1353004473,), (1353004505,), (1353004507,), (1353004508,), (1353004509,), (1353004511,), (1353004722,), (1353004873,), (1353004874,), (1353004876,), (1353004877,), (1353004879,), (1353004880,), (1353004956,), (1353004957,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341975 , 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=22341945 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 (22341975) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341976 , 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=22341945 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 (22341976) result : ((1353004380,), (1353004514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341977 , 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=22341945 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 (22341977) result : ((1353004364,), (1353004465,), (1353004491,), (1353004492,), (1353004707,), (1353004866,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341978 , 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=22341945 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 (22341978) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341979 , 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=22341945 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 (22341979) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341980 , 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=22341945 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 (22341980) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341981 , 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=22341945 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 (22341981) result : ((1353003966,), (1353004281,), (1353004428,), (1353004466,), (1353004467,), (1353004468,), (1353004469,), (1353004494,), (1353004495,), (1353004497,), (1353004498,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341982 , 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=22341945 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 (22341982) result : ((1353004286,), (1353004475,), (1353004513,), (1353004958,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341983 , 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=22341945 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 (22341983) result : ((1353004429,), (1353004470,), (1353004471,), (1353004500,), (1353004501,), (1353004502,), (1353004713,), (1353004868,), (1353004869,), (1353004870,), (1353004953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341984 , 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=22341945 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 (22341984) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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 22341985 , 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=22341945 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 (22341985) result : ((1353003964,), (1353003965,), (1353004277,), (1353004358,), (1353004426,), (1353004482,), (1353004484,), (1353004485,), (1353004486,), (1353004487,), (1353004488,), (1353004489,), (1353004701,), (1353004858,), (1353004859,), (1353004860,), (1353004861,), (1353004863,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22341945) result : ((1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) 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`=22341945 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','metal','papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','cartonnette','plastique','mal_croppe','Carton_brun')) 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`=22341945 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','metal','papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','cartonnette','plastique','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22341945, 'sub_port_id': 22341986, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798740, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'environnement': {'main_port_id': 22341945, 'sub_port_id': 22341987, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798741, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'kraft': {'main_port_id': 22341945, 'sub_port_id': 22341988, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798742, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'autre_refus': {'main_port_id': 22341945, 'sub_port_id': 22341989, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798743, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'metal': {'main_port_id': 22341945, 'sub_port_id': 22341990, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798744, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'mal_croppe': {'main_port_id': 22341945, 'sub_port_id': 22341991, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798745, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'papier': {'main_port_id': 22341945, 'sub_port_id': 22341992, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798746, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'Carton_gris': {'main_port_id': 22341945, 'sub_port_id': 22341993, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798747, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'plastique': {'main_port_id': 22341945, 'sub_port_id': 22341994, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798748, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'cartonnette': {'main_port_id': 22341945, 'sub_port_id': 22341995, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798749, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'flou': {'main_port_id': 22341945, 'sub_port_id': 22341996, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798750, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22341945, 'sub_port_id': 22341997, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14798751, 'last_updated_at': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 11, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22341997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22341985 lien utilise dans velours : https://www.fotonower.com/velours/22341986,22341987,22341988,22341989,22341990,22341991,22341992,22341993,22341994,22341995,22341996,22341997?tags=Carton_brun,environnement,kraft,autre_refus,metal,mal_croppe,papier,Carton_gris,plastique,cartonnette,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22341945]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] map_info['map_portfolio_photo'] : {22341945: [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474, 1353004394, 1353004392, 1353004378, 1353004337, 1353004320, 1353004314, 1353004310, 1353004306, 1353004274, 1353004268, 1353004262, 1353004257, 1353004252, 1353004038, 1353004020, 1353004012, 1353003921, 1353003917, 1353003914, 1353003911, 1353003909, 1353003907, 1353003863, 1353003859, 1353003854, 1353003847, 1353003843, 1353003797, 1353003794, 1353003788]} final : False mtd_id 4302 list_pids : [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] Looping around the photos to save general results len do output : 1 /22341945. 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, '2752763') ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22341945', "{'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985}", None, None, None, None, '2752763'), ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763')] time used for this insertion : 0.01449894905090332 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5882234573364258 time spend to save output : 0.014771699905395508 total time spend for step 1 : 1.6029951572418213 step2:final Wed Apr 23 11:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22341945) 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 22341945 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353003797,1353003794,1353003788,1353003863,1353003859,1353003854,1353003847,1353003843,1353003921,1353003917,1353003914,1353003911,1353003909,1353003907,1353004038,1353004020,1353004012,1353004274,1353004268,1353004262,1353004257,1353004337,1353004252,1353004320,1353004314,1353004310,1353004306,1353004394,1353004392,1353004378,1353004516,1353004506,1353004496,1353004483,1353004478,1353004474,1353004691,1353004685,1353004681,1353004678,1353004675,1353004652,1353004878,1353004867,1353004855,1353004848); 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([22341945]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} new output for save of step final : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] map_info['map_portfolio_photo'] : {22341945: [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474, 1353004394, 1353004392, 1353004378, 1353004337, 1353004320, 1353004314, 1353004310, 1353004306, 1353004274, 1353004268, 1353004262, 1353004257, 1353004252, 1353004038, 1353004020, 1353004012, 1353003921, 1353003917, 1353003914, 1353003911, 1353003909, 1353003907, 1353003863, 1353003859, 1353003854, 1353003847, 1353003843, 1353003797, 1353003794, 1353003788]} final : False mtd_id 4302 list_pids : [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] Looping around the photos to save general results len do output : 16 /1353004878.Didn't retrieve data . /1353004867.Didn't retrieve data . /1353004855.Didn't retrieve data . /1353004848.Didn't retrieve data . /1353004691.Didn't retrieve data . /1353004685.Didn't retrieve data . /1353004681.Didn't retrieve data . /1353004678.Didn't retrieve data . /1353004675.Didn't retrieve data . /1353004652.Didn't retrieve data . /1353004516.Didn't retrieve data . /1353004506.Didn't retrieve data . /1353004496.Didn't retrieve data . /1353004483.Didn't retrieve data . /1353004478.Didn't retrieve data . /1353004474.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, '2752763') ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '22341945', '1353004878', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004867', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004855', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004848', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004691', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004685', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004681', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004678', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004675', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004652', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004516', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004506', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004496', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004483', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004478', '0.07006772965939413', None, None, None, None, '2752763'), ('4302', '22341945', '1353004474', '0.07006772965939413', None, None, None, None, '2752763')] time used for this insertion : 0.017002582550048828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06819653511047363 time spend to save output : 0.017812728881835938 total time spend for step 2 : 0.08600926399230957 step3:velours_tree Wed Apr 23 11:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22341945: [{'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985}]} input_args_next_step : {22341945: ()} output_args : {22341945: [{'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985}]} args : 22341945 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22341945) 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([22341945]) 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.35567378997802734 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.35571718215942383 step4:send_mail_cod Wed Apr 23 11:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} input_args_next_step : {1353004878: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004878 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004867 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004855 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004848 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004691 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004685 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004681 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004678 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004675 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004652 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004516 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004506 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004496 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004483 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004478 depend.output_id : 0 input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ()} output_args : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',)} args : 1353004474 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 : {22341945: [{'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985}]} input_args_next_step : {1353004878: ('0.07006772965939413',), 1353004867: ('0.07006772965939413',), 1353004855: ('0.07006772965939413',), 1353004848: ('0.07006772965939413',), 1353004691: ('0.07006772965939413',), 1353004685: ('0.07006772965939413',), 1353004681: ('0.07006772965939413',), 1353004678: ('0.07006772965939413',), 1353004675: ('0.07006772965939413',), 1353004652: ('0.07006772965939413',), 1353004516: ('0.07006772965939413',), 1353004506: ('0.07006772965939413',), 1353004496: ('0.07006772965939413',), 1353004483: ('0.07006772965939413',), 1353004478: ('0.07006772965939413',), 1353004474: ('0.07006772965939413',), 22341945: ()} output_args : {22341945: [{'Carton_brun': 22341974, 'environnement': 22341975, 'kraft': 22341976, 'autre_refus': 22341977, 'metal': 22341978, 'mal_croppe': 22341979, 'papier': 22341980, 'Carton_gris': 22341981, 'plastique': 22341982, 'cartonnette': 22341983, 'flou': 22341984, 'Teint_Dans_La_Masse': 22341985}]} args : 22341945 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 :17, first value : ('0.07006772965939413',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22341945) 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 (1353004878,1353004867,1353004855,1353004848,1353004691,1353004685,1353004681,1353004678,1353004675,1353004652,1353004516,1353004506,1353004496,1353004483,1353004478,1353004474) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353004474 begin to download photo : 1353004506 begin to download photo : 1353004678 begin to download photo : 1353004848 download finish for photo 1353004848 begin to download photo : 1353004855 download finish for photo 1353004506 begin to download photo : 1353004516 download finish for photo 1353004678 begin to download photo : 1353004681 download finish for photo 1353004474 begin to download photo : 1353004478 download finish for photo 1353004855 begin to download photo : 1353004867 download finish for photo 1353004516 begin to download photo : 1353004652 download finish for photo 1353004681 begin to download photo : 1353004685 download finish for photo 1353004478 begin to download photo : 1353004483 download finish for photo 1353004867 begin to download photo : 1353004878 download finish for photo 1353004652 begin to download photo : 1353004675 download finish for photo 1353004483 begin to download photo : 1353004496 download finish for photo 1353004685 begin to download photo : 1353004691 download finish for photo 1353004675 download finish for photo 1353004878 download finish for photo 1353004496 download finish for photo 1353004691 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 : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P22341945_23-04-2025_11_41_01.pdf 22341976 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=22341976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004380: '1745400973_4090276_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299638_0.png', 1353004514: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299638_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c6df07fb6d28ed0016b2e3e92729e362_62148914.png change filename to text .imagette223419761745401261/ imagette223419761745401261/1745400973_4090276_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299638_0.png.png imagette223419761745401261/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299638_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c6df07fb6d28ed0016b2e3e92729e362_23217648.png imagette223419761745401261 22341977 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=22341977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004364: '1745400973_4090276_1353003909_04a558c8b818ac420836cf0a958de5d5_rle_crop_3765299695_0.png', 1353004465: '1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300448_0.png', 1353004491: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299630_0.png', 1353004492: '1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299686_0.png', 1353004707: '1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300988_0.png', 1353004866: '1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301175_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dd6f9ceb2066dab3830a3bfdbb649a15_82724352.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f326405b5453a03f490260e0371e07ea_32653770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dc10100cea77e7f9df7f1b595f6a13c7_34837919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ce9e567569bfe14708b8d5e760ebf6c6_96605349.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cd04a89ea778fbff182b9e7e3647e8fb_99098420.png change filename to text .imagette223419771745401261/ imagette223419771745401261/1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300988_0.png.png imagette223419771745401261/1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299686_0.png.png imagette223419771745401261/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299630_0.png.png imagette223419771745401261/1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300448_0.png.png imagette223419771745401261/1745400973_4090276_1353003909_04a558c8b818ac420836cf0a958de5d5_rle_crop_3765299695_0.png.png imagette223419771745401261/1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301175_0.png.png imagette223419781745401261/ imagette223419791745401261/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0aeaaaea53f962e187716aa85a4cb19c_88594432.png imagette223419771745401261 22341978 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=22341978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223419781745401261 22341979 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=22341979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223419791745401261 22341982 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=22341982 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004286: '1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299234_0.png', 1353004475: '1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300379_0.png', 1353004513: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299636_0.png', 1353004958: '1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301271_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/de1c01d0a6035f99c949b6cafeab93ca_82798089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/781b3da927572defeb8b1a98d34d02d5_61259715.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3d0fa4c3dd3227786daeb56107ab33c6_46586249.png change filename to text .imagette223419821745401261/ imagette223419821745401261/1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301271_0.png.png imagette223419821745401261/1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299234_0.png.png imagette223419821745401261/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299636_0.png.png imagette223419821745401261/1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300379_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c1031ac6f12990bf65fc84dfcf5aaaf8_22195647.png imagette223419821745401261 22341983 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=22341983 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004429: '1745401031_4090780_1353004268_1a26940557764079082a4e8c7b7f0394_rle_crop_3765299817_0.png', 1353004470: '1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300369_0.png', 1353004471: '1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300371_0.png', 1353004500: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299644_0.png', 1353004501: '1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299680_0.png', 1353004502: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299719_0.png', 1353004713: '1745401151_4091822_1353004392_df0409dbf5d23edd6b76944d0e36d64e_rle_crop_3765300971_0.png', 1353004868: '1745401184_2561094_1353004394_e67856f140b0d5aec58295d729013b4d_rle_crop_3765301162_0.png', 1353004869: '1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301224_0.png', 1353004870: '1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301223_0.png', 1353004953: '1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301268_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2b6f1831a60f85e6dc5bc52b185e9faa_12024436.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/68595a878bb320c284551b048c0c766b_70859547.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7441b84a385ff468b6daf000e8b486b8_80210040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/03a7eb16ed9be579ea4ae3b9ac827b85_56209412.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f3888348398c57c6bfa15978f320c8ef_1897688.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bd95d671170429bb1d143bb75daf6b7a_74948690.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f4474704ff425913505fdeddb867a1d5_25311231.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9fa31f4250a87b3649ffd789204f0d5c_70572426.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c34304bb8254591d21723de9891605ed_72649723.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e62e145f404668317acc1adb3299e159_82850550.png change filename to text .imagette223419831745401262/ imagette223419831745401262/1745401151_4091822_1353004392_df0409dbf5d23edd6b76944d0e36d64e_rle_crop_3765300971_0.png.png imagette223419831745401262/1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301268_0.png.png imagette223419831745401262/1745401184_2561094_1353004394_e67856f140b0d5aec58295d729013b4d_rle_crop_3765301162_0.png.png imagette223419831745401262/1745401031_4090780_1353004268_1a26940557764079082a4e8c7b7f0394_rle_crop_3765299817_0.png.png imagette223419831745401262/1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301224_0.png.png imagette223419831745401262/1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300369_0.png.png imagette223419831745401262/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299719_0.png.png imagette223419831745401262/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299644_0.png.png imagette223419831745401262/1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299680_0.png.png imagette223419831745401262/1745401047_2537612_1353003854_2f72d94915e088cbf45872d5bec4bf5d_rle_crop_3765300371_0.png.png imagette223419831745401262/1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301223_0.png.png imagette223419841745401262/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8008ecf6adf8cd37317c51b1fea7b05f_70982506.png imagette223419831745401262 22341984 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=22341984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223419841745401262 22341974 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=22341974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004509: '1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_bib_crop_3765299682_0.jpg', 1353004957: '1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301276_0.png', 1353004956: '1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301272_0.png', 1353004880: '1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301196_0.png', 1353004879: '1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301192_0.png', 1353004877: '1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301199_0.png', 1353004876: '1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301178_0.png', 1353004874: '1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301180_0.png', 1353004873: '1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301174_0.png', 1353004722: '1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300995_0.png', 1353004511: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299721_0.png', 1353004284: '1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299227_0.png', 1353004508: '1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765300696_0.png', 1353004507: '1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299660_0.png', 1353004505: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299642_0.png', 1353004473: '1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300458_0.png', 1353004435: '1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300002_0.png', 1353004434: '1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300011_0.png', 1353004433: '1745401031_4090780_1353004257_6d2bf5ab944a7a3cfe3e855a66ff8cef_rle_crop_3765299998_0.png', 1353004432: '1745401031_4090780_1353004262_d31c15dd5a9070650621eedce1f498fe_rle_crop_3765299832_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/be563cf36964d7e37668f3cd5d27393f_85186175.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6e50d3a5a228de0a972bc409fb045431_28976346.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d2d06da5ba5efb8df13f834654e23a9d_61008659.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cf554a24185ec59f5d6a44e988a7657f_57303288.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/df58607f126147d4c6f8c5c20f18e1fd_39282781.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f685cadec231f662873aad028f617035_14322240.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/11577eb6c89883f6ba1bc6a150f9dd95_21976072.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6175f5bd211189264ed70a5813709099_737223.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e1c4cd3d23fdf7b4e5f643e94c59aa40_11347874.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/451b744ab9bc2071e5294412e16ffab1_52822545.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ffa59dcd64aba411f85cf749fa969414_20320908.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f45daeff5f96734c6100fdd3b49e9e06_34427488.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ff10314a3ee57dac78960df1356a63c3_9839527.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1d4f70c89a72f47c5829ff493995ce3e_75432401.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6f99bed0318a8dc813bc9aa01c085913_88255698.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ef454519133b3b5ee95ef62079a94a36_4876776.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3386ede95eb09c3170812e545e882d91_30800685.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fb09dd37c6fbe2fd01675e194649f66d_13541664.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/86dd656805ae31be6fb4393c2455a7b8_61061802.png change filename to text .imagette223419741745401262/ imagette223419741745401262/1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300011_0.png.png imagette223419741745401262/1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300995_0.png.png imagette223419741745401262/1745401031_4090780_1353004257_6d2bf5ab944a7a3cfe3e855a66ff8cef_rle_crop_3765299998_0.png.png imagette223419741745401262/1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300002_0.png.png imagette223419741745401262/1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_bib_crop_3765299682_0.jpg.jpg imagette223419741745401262/1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301178_0.png.png imagette223419741745401262/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299642_0.png.png imagette223419741745401262/1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301192_0.png.png imagette223419741745401262/1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301272_0.png.png imagette223419741745401262/1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300458_0.png.png imagette223419741745401262/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299721_0.png.png imagette223419741745401262/1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299660_0.png.png imagette223419741745401262/1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301199_0.png.png imagette223419741745401262/1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299227_0.png.png imagette223419741745401262/1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301196_0.png.png imagette223419741745401262/1745401031_4090780_1353004262_d31c15dd5a9070650621eedce1f498fe_rle_crop_3765299832_0.png.png imagette223419741745401262/1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765300696_0.png.png imagette223419741745401262/1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301180_0.png.png imagette223419741745401262/1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301174_0.png.png imagette223419741745401262/1745401211_4092452_1353004337_28f0df442c533258c7835977f890c836_rle_crop_3765301276_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e00136eff6ca25d045f38c115b3d4e9d_60151739.png imagette223419741745401262 22341981 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=22341981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353003966: '1745400793_4088335_1353003788_75de14b82694f2f70b864ed6749d081d_rle_crop_3765297199_0.png', 1353004281: '1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299223_0.png', 1353004428: '1745401031_4090780_1353004257_6d2bf5ab944a7a3cfe3e855a66ff8cef_rle_crop_3765299992_0.png', 1353004466: '1745401047_2537612_1353003859_5624ea681561ac57dddf79fe0a2428d5_rle_crop_3765300334_0.png', 1353004467: '1745401047_2537612_1353003859_5624ea681561ac57dddf79fe0a2428d5_rle_crop_3765300340_0.png', 1353004468: '1745401047_2537612_1353003847_682196b91c45a966b6c9a0a376614a6f_rle_crop_3765300409_0.png', 1353004469: '1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300451_0.png', 1353004494: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299635_0.png', 1353004495: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299632_0.png', 1353004497: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299716_0.png', 1353004498: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d33ac125b688f2509002edf5d96a73e8_41704868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/26ec6fb531090b6a95ef662a9db6a0b7_9896197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/50631b770c743a154b9b58d57e6c9d68_50244150.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0f0790a931c296eeb1ab783009da81ff_44599823.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6a7732d7f41fdcdee1b23371f6c4a3fc_90207198.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/18be135b45d39d668af8a7daa6fb61da_4880751.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9d722cd84e5e5fe3eca310a84d1238a6_42868288.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/becf6b4f032544faeee7722adb11a45c_15399912.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/737cf1aa493138e2878341813b10843c_65264188.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/53b9ad42721db4169a5601846acd330f_38419123.png change filename to text .imagette223419811745401264/ imagette223419811745401264/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299635_0.png.png imagette223419811745401264/1745401047_2537612_1353003843_af727ad136a89827b2c3047bd80f5b9b_rle_crop_3765300451_0.png.png imagette223419811745401264/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299725_0.png.png imagette223419811745401264/1745401047_2537612_1353003859_5624ea681561ac57dddf79fe0a2428d5_rle_crop_3765300340_0.png.png imagette223419811745401264/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299716_0.png.png imagette223419811745401264/1745400793_4088335_1353003788_75de14b82694f2f70b864ed6749d081d_rle_crop_3765297199_0.png.png imagette223419811745401264/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299632_0.png.png imagette223419811745401264/1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299223_0.png.png imagette223419811745401264/1745401031_4090780_1353004257_6d2bf5ab944a7a3cfe3e855a66ff8cef_rle_crop_3765299992_0.png.png imagette223419811745401264/1745401047_2537612_1353003859_5624ea681561ac57dddf79fe0a2428d5_rle_crop_3765300334_0.png.png imagette223419811745401264/1745401047_2537612_1353003847_682196b91c45a966b6c9a0a376614a6f_rle_crop_3765300409_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/854938f55de058cd44046f2ddeb1be4c_25483415.png imagette223419811745401264 22341985 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=22341985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353004487: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_bib_crop_3765299724_0.jpg', 1353004863: '1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301225_0.png', 1353004861: '1745401184_2561094_1353004310_3a39988a350fcb194d2b732644cde8da_rle_crop_3765301216_0.png', 1353004860: '1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301194_0.png', 1353004859: '1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301176_0.png', 1353004858: '1745401184_2561094_1353004394_e67856f140b0d5aec58295d729013b4d_rle_crop_3765301159_0.png', 1353004701: '1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300990_0.png', 1353004489: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299729_0.png', 1353004488: '1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765300736_0.png', 1353003964: '1745400793_4088335_1353003794_2078c4b27c2b12e3ad7edfc3fea76ea3_rle_crop_3765297186_0.png', 1353004486: '1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299688_0.png', 1353004485: '1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299668_0.png', 1353004484: '1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299663_0.png', 1353004482: '1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299643_0.png', 1353004426: '1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300008_0.png', 1353004358: '1745400973_4090276_1353003909_04a558c8b818ac420836cf0a958de5d5_rle_crop_3765299706_0.png', 1353004277: '1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299228_0.png', 1353003965: '1745400793_4088335_1353003794_2078c4b27c2b12e3ad7edfc3fea76ea3_rle_crop_3765297188_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5b1c4091f5b421a17a9403df578103b8_69921098.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1393d3c2f705f43e16348807add7f867_59156734.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f83f0f1e745632de4d626228b4381f40_80631714.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f1548fb34340acadf76c3f6878e2b64b_16811923.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/707feb7b5b1ead90cc2f5a32fcece13e_17237770.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/55633907b719fe81d6b77aaf8620d5fd_42599792.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3f2150be1175f6c3a446ed1b1b32c81e_11310506.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/883b17b6a770d330ab21aa604ed2006a_21046586.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/db88d1b881cc5b31555e63c2ed6d81ef_68903343.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c593579344a6b871f24df5ee4b87b64f_42141984.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/10d52dab39823e4c534d4a4a19d3c8d8_47295974.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3607b495b4ae84bac436163b3016d72c_13252453.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/514e3cdfcf0ddd3772aa404d92164ccd_50697088.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/126146b0b74a4e16bdf8b99c4457ee40_98261480.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b04bff9df5eb2494d23e551444657136_62992595.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7c56c1ae45626d9405bf173fe535bd82_96146100.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/11901b1422972bac6662bcd2dfb37bdf_43521667.png change filename to text .imagette223419851745401264/ imagette223419851745401264/1745401184_2561094_1353004394_e67856f140b0d5aec58295d729013b4d_rle_crop_3765301159_0.png.png imagette223419851745401264/1745401184_2561094_1353004314_47bf6936ecc271503e4b15563ecc2c92_rle_crop_3765301194_0.png.png imagette223419851745401264/1745401184_2561094_1353004320_dac1669328b92ac664e43318077fa7b7_rle_crop_3765301176_0.png.png imagette223419851745401264/1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299663_0.png.png imagette223419851745401264/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_bib_crop_3765299724_0.jpg.jpg imagette223419851745401264/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765300736_0.png.png imagette223419851745401264/1745401184_2561094_1353004306_b82f795807ca03e24836e97acdcee074_rle_crop_3765301225_0.png.png imagette223419851745401264/1745401061_2558534_1353003914_12b4cbed3515f50d3fd04fbd2e65fd82_rle_crop_3765299668_0.png.png imagette223419851745401264/1745400793_4088335_1353003794_2078c4b27c2b12e3ad7edfc3fea76ea3_rle_crop_3765297186_0.png.png imagette223419851745401264/1745401061_2558534_1353003911_514e3eabcf68d8623055c2c17aa8f14b_rle_crop_3765299688_0.png.png imagette223419851745401264/1745401184_2561094_1353004310_3a39988a350fcb194d2b732644cde8da_rle_crop_3765301216_0.png.png imagette223419851745401264/1745401031_4090780_1353004252_84ae8d2ef6168c881da997e687232b37_rle_crop_3765300008_0.png.png imagette223419851745401264/1745401061_2558534_1353004038_6af6b080b30b2c38684dd0c6c341b4b5_rle_crop_3765299643_0.png.png imagette223419851745401264/1745400793_4088335_1353003794_2078c4b27c2b12e3ad7edfc3fea76ea3_rle_crop_3765297188_0.png.png imagette223419851745401264/1745400973_4090276_1353003909_04a558c8b818ac420836cf0a958de5d5_rle_crop_3765299706_0.png.png imagette223419851745401264/1745401151_4091822_1353004378_5942a3c9900f20ded90581eb4cb0c49d_rle_crop_3765300990_0.png.png imagette223419851745401264/1745401061_2558534_1353003907_0a58602d9044018ebc1cbe5ac934ce0f_rle_crop_3765299729_0.png.png imagette223419851745401264/1745400910_4089644_1353003863_ca10517a09f917ba5824860bf4b2c455_rle_crop_3765299228_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/be58ee4441edad75de64104fe34ae88f_43833932.png imagette223419851745401264 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22341945 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22341986,22341987,22341988,22341989,22341990,22341991,22341992,22341993,22341994,22341995,22341996,22341997?tags=Carton_brun,environnement,kraft,autre_refus,metal,mal_croppe,papier,Carton_gris,plastique,cartonnette,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1353004878] : ('0.07006772965939413',) no score found for photo 1353004878 We are sending mail with results at report@fotonower.com args[1353004867] : ('0.07006772965939413',) no score found for photo 1353004867 We are sending mail with results at report@fotonower.com args[1353004855] : ('0.07006772965939413',) no score found for photo 1353004855 We are sending mail with results at report@fotonower.com args[1353004848] : ('0.07006772965939413',) no score found for photo 1353004848 We are sending mail with results at report@fotonower.com args[1353004691] : ('0.07006772965939413',) no score found for photo 1353004691 We are sending mail with results at report@fotonower.com args[1353004685] : ('0.07006772965939413',) no score found for photo 1353004685 We are sending mail with results at report@fotonower.com args[1353004681] : ('0.07006772965939413',) no score found for photo 1353004681 We are sending mail with results at report@fotonower.com args[1353004678] : ('0.07006772965939413',) no score found for photo 1353004678 We are sending mail with results at report@fotonower.com args[1353004675] : ('0.07006772965939413',) no score found for photo 1353004675 We are sending mail with results at report@fotonower.com args[1353004652] : ('0.07006772965939413',) no score found for photo 1353004652 We are sending mail with results at report@fotonower.com args[1353004516] : ('0.07006772965939413',) no score found for photo 1353004516 We are sending mail with results at report@fotonower.com args[1353004506] : ('0.07006772965939413',) no score found for photo 1353004506 We are sending mail with results at report@fotonower.com args[1353004496] : ('0.07006772965939413',) no score found for photo 1353004496 We are sending mail with results at report@fotonower.com args[1353004483] : ('0.07006772965939413',) no score found for photo 1353004483 We are sending mail with results at report@fotonower.com args[1353004478] : ('0.07006772965939413',) no score found for photo 1353004478 We are sending mail with results at report@fotonower.com args[1353004474] : ('0.07006772965939413',) no score found for photo 1353004474 We are sending mail with results at report@fotonower.com refus_total : 0.07006772965939413 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=22341945 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_P22341945_23-04-2025_11_41_01.pdf results_Auto_P22341945_23-04-2025_11_41_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_41_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22341945','results_Auto_P22341945_23-04-2025_11_41_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_41_01.pdf','pdf','','0.33','0.07006772965939413') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22341945]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] map_info['map_portfolio_photo'] : {22341945: [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474, 1353004394, 1353004392, 1353004378, 1353004337, 1353004320, 1353004314, 1353004310, 1353004306, 1353004274, 1353004268, 1353004262, 1353004257, 1353004252, 1353004038, 1353004020, 1353004012, 1353003921, 1353003917, 1353003914, 1353003911, 1353003909, 1353003907, 1353003863, 1353003859, 1353003854, 1353003847, 1353003843, 1353003797, 1353003794, 1353003788]} final : False mtd_id 4302 list_pids : [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] 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, '2752763') ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '22341945', '1353004878', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763')] time used for this insertion : 0.014649152755737305 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.434215307235718 time spend to save output : 0.01495051383972168 total time spend for step 4 : 6.4491658210754395 step5:split_time_score Wed Apr 23 11:41:07 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 : ['22341945'] 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 : [('22341945',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22341945) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353004506: {'path': 'temp/1745401260_1745810_1353004506_a77bdabcb7b1d49289db5c7939525012.jpg', 'extension': 'jpg'}, 1353004516: {'path': 'temp/1745401260_1745810_1353004516_a2ad898e889ac7ac502b07110b77e151.jpg', 'extension': 'jpg'}, 1353004652: {'path': 'temp/1745401260_1745810_1353004652_dd9502757909d4759275d641d237cce8.jpg', 'extension': 'jpg'}, 1353004675: {'path': 'temp/1745401260_1745810_1353004675_61e73f258f554068cc2ee6b4a8b70a48.jpg', 'extension': 'jpg'}, 1353004848: {'path': 'temp/1745401260_1745810_1353004848_cbf9067790d6b59cc74825fef6e1f153.jpg', 'extension': 'jpg'}, 1353004855: {'path': 'temp/1745401260_1745810_1353004855_c55a5880103c217d8e8b3590ed5df6af.jpg', 'extension': 'jpg'}, 1353004867: {'path': 'temp/1745401260_1745810_1353004867_debc8ee5f4e91dc4084e391ef5135de2.jpg', 'extension': 'jpg'}, 1353004878: {'path': 'temp/1745401260_1745810_1353004878_18b6dcc2f1bf11d7e0eb6be2a80a045a.jpg', 'extension': 'jpg'}, 1353004474: {'path': 'temp/1745401260_1745810_1353004474_7282554708f4009b8b231113ef4d5ab3.jpg', 'extension': 'jpg'}, 1353004478: {'path': 'temp/1745401260_1745810_1353004478_e05674ec7d5166b8a433dbaab8ae018a.jpg', 'extension': 'jpg'}, 1353004483: {'path': 'temp/1745401260_1745810_1353004483_0e696244c4387e702146d76b7167dc23.jpg', 'extension': 'jpg'}, 1353004496: {'path': 'temp/1745401260_1745810_1353004496_54a0af9c761f6f0f3d8555621d58e4d1.jpg', 'extension': 'jpg'}, 1353004678: {'path': 'temp/1745401260_1745810_1353004678_cacd6b05f459811184272a770432c19e.jpg', 'extension': 'jpg'}, 1353004681: {'path': 'temp/1745401260_1745810_1353004681_5267a0c558de0cd5068149ce3aeca47c.jpg', 'extension': 'jpg'}, 1353004685: {'path': 'temp/1745401260_1745810_1353004685_967c4da18bd54be617ae2d0b77a6895d.jpg', 'extension': 'jpg'}, 1353004691: {'path': 'temp/1745401260_1745810_1353004691_880c92547a400e3cfc0082c21ac59ec2.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 = 22341945; (('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 = 22341945 group by h (('11', 46),) 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=22341945 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 (22341945) 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 (22341945) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22341945 Nombre de photos uploadées : 46 / 23040 (0%) 23042025 22341945 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 23042025 22341945 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1353003797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/aa37ca843f60251a67605bde8128944a.jpg', 'username': None, 'uploaded_at': 1745400667, 'text': 'image_23042025_11_30_25_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353003794, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2078c4b27c2b12e3ad7edfc3fea76ea3.jpg', 'username': None, 'uploaded_at': 1745400667, 'text': 'image_23042025_11_30_34_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353003788, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/75de14b82694f2f70b864ed6749d081d.jpg', 'username': None, 'uploaded_at': 1745400667, 'text': 'image_23042025_11_30_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353003863, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ca10517a09f917ba5824860bf4b2c455.jpg', 'username': None, 'uploaded_at': 1745400727, 'text': 'image_23042025_11_30_54_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019044876098632812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22341945, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022910356521606445 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748893, 'mtr_portfolio_id': 22339852, 'dashboard_result_id': 10046877, '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_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748893, 'mtr_portfolio_id': 22340451, 'dashboard_result_id': 10046878, '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_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748893, 'mtr_portfolio_id': 22341308, 'dashboard_result_id': 10046879, '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_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748893, 'mtr_portfolio_id': 22341945, 'dashboard_result_id': 10046880, '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_P22341945_23-04-2025_11_38_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, '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 = 22339852 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': 2752581, 'mtr_portfolio_id': 22339852, 'created_at': datetime.datetime(2025, 4, 23, 11, 3, 28), 'result': '0.047202876661661765', 'result_long': None, 'result_double': None}] Qualite : 0.047202876661661765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339852 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_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}" where mtr_portfolio_id = 22339852 and dashboard_run_id = 1748893 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`=22339852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10046877, 0.047202876661661765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, '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 = 22340451 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': 2752641, 'mtr_portfolio_id': 22340451, 'created_at': datetime.datetime(2025, 4, 23, 11, 16, 58), 'result': '0.06235186309820279', 'result_long': None, 'result_double': None}] Qualite : 0.06235186309820279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22340451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22340451 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_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}" where mtr_portfolio_id = 22340451 and dashboard_run_id = 1748893 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`=22340451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10046878, 0.06235186309820279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, '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 = 22341308 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': 2752700, 'mtr_portfolio_id': 22341308, 'created_at': datetime.datetime(2025, 4, 23, 11, 32, 59), 'result': '0.04767917474961474', 'result_long': None, 'result_double': None}] Qualite : 0.04767917474961474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341308 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_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}" where mtr_portfolio_id = 22341308 and dashboard_run_id = 1748893 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`=22341308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10046879, 0.04767917474961474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, '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 = 22341945 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': 2752763, 'mtr_portfolio_id': 22341945, 'created_at': datetime.datetime(2025, 4, 23, 11, 41), 'result': '0.07006772965939413', 'result_long': None, 'result_double': None}] Qualite : 0.07006772965939413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341945 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_P22341945_23-04-2025_11_41_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}" where mtr_portfolio_id = 22341945 and dashboard_run_id = 1748893 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`=22341945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10046880, 0.07006772965939413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_41_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, '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 (22339852,22340451,22341308,22341945) result : ((1352993665,), (1352993675,), (1352993781,), (1352993786,), (1352993790,), (1352993795,), (1352993798,), (1352993871,), (1352993878,), (1352993885,), (1352993886,), (1352993931,), (1352993935,), (1352993939,), (1352993956,), (1352993992,), (1352994346,), (1352994389,), (1352994412,), (1352994463,), (1352994466,), (1352994470,), (1352994474,), (1352994478,), (1352994536,), (1352994542,), (1352994544,), (1352994546,), (1352994613,), (1352994622,), (1352994627,), (1352994631,), (1352994745,), (1352994749,), (1352994753,), (1352994796,), (1352994800,), (1352994944,), (1352994990,), (1352994993,), (1352994998,), (1352995001,), (1352995007,), (1352995010,), (1352995055,), (1352995077,), (1352995082,), (1352995085,), (1352995156,), (1352995161,), (1352995167,), (1352995171,), (1352995175,), (1352995943,), (1352995977,), (1352996039,), (1352996210,), (1352996240,), (1352996272,), (1352996301,), (1352996334,), (1352996661,), (1352996528,), (1352996574,), (1352996605,), (1352996633,), (1352996656,), (1352996897,), (1352996952,), (1352997021,), (1352997080,), (1352997374,), (1352997378,), (1352997383,), (1352997388,), (1352997393,), (1352997397,), (1352997439,), (1352997443,), (1352997446,), (1352997449,), (1352997451,), (1352997488,), (1352997492,), (1352997496,), (1352997506,), (1352997511,), (1352997579,), (1352997582,), (1352997596,), (1352997661,), (1352997665,), (1352997669,), (1352997674,), (1352997679,), (1352997683,), (1352997710,), (1352997779,), (1352997783,), (1352997789,), (1352997797,), (1352997802,), (1352997931,), (1352997937,), (1352998160,), (1352998164,), (1352998176,), (1352998352,), (1352998426,), (1352998480,), (1352998540,), (1352998607,), (1352998759,), (1352998770,), (1352998783,), (1352998797,), (1352998918,), (1352998926,), (1352999164,), (1352999198,), (1352999731,), (1352999549,), (1352999640,), (1352999694,), (1353000334,), (1353000353,), (1353000360,), (1353000382,), (1353000387,), (1353000399,), (1353000528,), (1353000531,), (1353000537,), (1353000545,), (1353000632,), (1353000636,), (1353000645,), (1353000711,), (1353000714,), (1353000717,), (1353000735,), (1353000741,), (1353000884,), (1353000893,), (1353000897,), (1353000902,), (1353000908,), (1353000913,), (1353001190,), (1353001221,), (1353001249,), (1353001279,), (1353001732,), (1353001761,), (1353001791,), (1353001819,), (1353001846,), (1353002275,), (1353002303,), (1353002331,), (1353002353,), (1353002397,), (1353002401,), (1353002406,), (1353002559,), (1353002595,), (1353002623,), (1353002665,), (1353002708,), (1353002992,), (1353003007,), (1353003009,), (1353003015,), (1353003018,), (1353003164,), (1353003193,), (1353003224,), (1353003256,), (1353003310,), (1353003313,), (1353003315,), (1353003317,), (1353003320,), (1353003324,), (1353003531,), (1353003563,), (1353003596,), (1353003626,), (1353003659,), (1353003695,), (1353003798,), (1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22341945]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] map_info['map_portfolio_photo'] : {22341945: [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474, 1353004394, 1353004392, 1353004378, 1353004337, 1353004320, 1353004314, 1353004310, 1353004306, 1353004274, 1353004268, 1353004262, 1353004257, 1353004252, 1353004038, 1353004020, 1353004012, 1353003921, 1353003917, 1353003914, 1353003911, 1353003909, 1353003907, 1353003863, 1353003859, 1353003854, 1353003847, 1353003843, 1353003797, 1353003794, 1353003788]} final : True mtd_id 4302 list_pids : [1353004878, 1353004867, 1353004855, 1353004848, 1353004691, 1353004685, 1353004681, 1353004678, 1353004675, 1353004652, 1353004516, 1353004506, 1353004496, 1353004483, 1353004478, 1353004474] Looping around the photos to save general results len do output : 1 /22341945Didn'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, '2752763') ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763') ('4302', None, None, None, None, None, None, None, '2752763') ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22341945', 'None', None, None, None, None, '2752763'), ('4302', '22341945', '1353004878', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004867', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004855', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004848', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004691', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004685', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004681', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004678', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004675', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004652', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004516', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004506', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004496', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004483', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004478', None, None, None, None, None, '2752763'), ('4302', '22341945', '1353004474', None, None, None, None, None, '2752763')] time used for this insertion : 0.01476907730102539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3474440574645996 time spend to save output : 0.015028238296508789 total time spend for step 5 : 0.3624722957611084 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 (2752763) 2.49user 2.13system 0:12.75elapsed 36%CPU (0avgtext+0avgdata 160264maxresident)k 1024inputs+18232outputs (14major+74530minor)pagefaults 0swaps