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 : 2627282 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 (2735852) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2735852) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175888 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2735852'] with mtr_portfolio_ids : ['22175888'] and first list_photo_ids : [] new path : /proc/2627282/ Name: python3 Umask: 0002 State: R (running) Tgid: 2627282 Ngid: 0 Pid: 2627282 PPid: 2627281 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2627282 NSpid: 2627282 NSpgid: 2622990 NSsid: 2622990 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98284 kB VmRSS: 98284 kB RssAnon: 59756 kB RssFile: 38528 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 46 nonvoluntary_ctxt_switches: 141 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2627282', 'Ngid': '0', 'Pid': '2627282', 'PPid': '2627281', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2627282', 'NSpid': '2627282', 'NSpgid': '2622990', 'NSsid': '2622990', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98284 kB', 'VmRSS': '98284 kB', 'RssAnon': '59756 kB', 'RssFile': '38528 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '46', 'nonvoluntary_ctxt_switches': '141'} ('datou_batch_current', '2627282', '1106928', '0', '1106928', '865676', '98284', b'', 'marlene', '2735852') 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 (22175888) 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 (2735852 ) ) 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 (22175888) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350840697, 'portfolio_id': 22175888}, {'photo_id': 1350840691, 'portfolio_id': 22175888}, {'photo_id': 1350840686, 'portfolio_id': 22175888}, {'photo_id': 1350840682, 'portfolio_id': 22175888}, {'photo_id': 1350840656, 'portfolio_id': 22175888}, {'photo_id': 1350840650, 'portfolio_id': 22175888}, {'photo_id': 1350840646, 'portfolio_id': 22175888}, {'photo_id': 1350840630, 'portfolio_id': 22175888}, {'photo_id': 1350840618, 'portfolio_id': 22175888}, {'photo_id': 1350840610, 'portfolio_id': 22175888}, {'photo_id': 1350840372, 'portfolio_id': 22175888}, {'photo_id': 1350840361, 'portfolio_id': 22175888}, {'photo_id': 1350840326, 'portfolio_id': 22175888}, {'photo_id': 1350840314, 'portfolio_id': 22175888}, {'photo_id': 1350840052, 'portfolio_id': 22175888}, {'photo_id': 1350840019, 'portfolio_id': 22175888}, {'photo_id': 1350839998, 'portfolio_id': 22175888}, {'photo_id': 1350839993, 'portfolio_id': 22175888}, {'photo_id': 1350839987, 'portfolio_id': 22175888}, {'photo_id': 1350839828, 'portfolio_id': 22175888}, {'photo_id': 1350839824, 'portfolio_id': 22175888}, {'photo_id': 1350839820, 'portfolio_id': 22175888}, {'photo_id': 1350839803, 'portfolio_id': 22175888}, {'photo_id': 1350839775, 'portfolio_id': 22175888}, {'photo_id': 1350839658, 'portfolio_id': 22175888}, {'photo_id': 1350839501, 'portfolio_id': 22175888}, {'photo_id': 1350839462, 'portfolio_id': 22175888}, {'photo_id': 1350839444, 'portfolio_id': 22175888}, {'photo_id': 1350839298, 'portfolio_id': 22175888}, {'photo_id': 1350839198, 'portfolio_id': 22175888}, {'photo_id': 1350839189, 'portfolio_id': 22175888}, {'photo_id': 1350839172, 'portfolio_id': 22175888}, {'photo_id': 1350839153, 'portfolio_id': 22175888}, {'photo_id': 1350839005, 'portfolio_id': 22175888}, {'photo_id': 1350839004, 'portfolio_id': 22175888}, {'photo_id': 1350839001, 'portfolio_id': 22175888}, {'photo_id': 1350838998, 'portfolio_id': 22175888}, {'photo_id': 1350838997, 'portfolio_id': 22175888}, {'photo_id': 1350838955, 'portfolio_id': 22175888}, {'photo_id': 1350838950, 'portfolio_id': 22175888}, {'photo_id': 1350838946, 'portfolio_id': 22175888}, {'photo_id': 1350838828, 'portfolio_id': 22175888}, {'photo_id': 1350838591, 'portfolio_id': 22175888}, {'photo_id': 1350838586, 'portfolio_id': 22175888}] map_portfolio_id_photo_id: {22175888: [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610, 1350840372, 1350840361, 1350840326, 1350840314, 1350840052, 1350840019, 1350839998, 1350839993, 1350839987, 1350839828, 1350839824, 1350839820, 1350839803, 1350839775, 1350839658, 1350839501, 1350839462, 1350839444, 1350839298, 1350839198, 1350839189, 1350839172, 1350839153, 1350839005, 1350839004, 1350839001, 1350838998, 1350838997, 1350838955, 1350838950, 1350838946, 1350838828, 1350838591, 1350838586]} ##### 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.02407670021057129 #### 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 9 19:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22175888) 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 : 22175888 get user id for portfolio 22175888 get sub ptf for main ptf 22175888, type 3726 and hashtags ['mal_croppe', 'flou', 'kraft', 'papier', 'cartonnette', 'plastique', 'Carton_brun', 'Carton_gris', 'autre_refus', 'environnement', 'Teint_Dans_La_Masse', 'metal'] 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`=22175888 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','kraft','papier','cartonnette','plastique','Carton_brun','Carton_gris','autre_refus','environnement','Teint_Dans_La_Masse','metal')) 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`=22175888 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','kraft','papier','cartonnette','plastique','Carton_brun','Carton_gris','autre_refus','environnement','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22175888, 'sub_port_id': 22175891, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651085, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'mal_croppe': {'main_port_id': 22175888, 'sub_port_id': 22175892, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651086, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'autre_refus': {'main_port_id': 22175888, 'sub_port_id': 22175893, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651087, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'metal': {'main_port_id': 22175888, 'sub_port_id': 22175894, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651088, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'Carton_brun': {'main_port_id': 22175888, 'sub_port_id': 22175895, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651089, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'papier': {'main_port_id': 22175888, 'sub_port_id': 22175896, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651090, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'Teint_Dans_La_Masse': {'main_port_id': 22175888, 'sub_port_id': 22175897, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651091, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'cartonnette': {'main_port_id': 22175888, 'sub_port_id': 22175898, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651092, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'kraft': {'main_port_id': 22175888, 'sub_port_id': 22175899, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651093, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'environnement': {'main_port_id': 22175888, 'sub_port_id': 22175900, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651094, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'flou': {'main_port_id': 22175888, 'sub_port_id': 22175901, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651095, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}, 'plastique': {'main_port_id': 22175888, 'sub_port_id': 22175902, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651096, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22175891 , 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=22175888 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 (22175891) result : ((1350839226,), (1350839249,), (1350839400,), (1350839442,), (1350839447,), (1350840712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175892 , 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=22175888 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 (22175892) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175893 , 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=22175888 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 (22175893) result : ((1350839423,), (1350839426,), (1350840699,), (1350840700,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175894 , 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=22175888 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 (22175894) result : ((1350839232,), (1350839500,), (1350840719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175895 , 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=22175888 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 (22175895) result : ((1350839231,), (1350839391,), (1350839476,), (1350839480,), (1350839483,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175896 , 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=22175888 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 (22175896) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175897 , 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=22175888 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 (22175897) result : ((1350839223,), (1350839224,), (1350839225,), (1350839243,), (1350839245,), (1350839382,), (1350839383,), (1350839384,), (1350839403,), (1350839404,), (1350839405,), (1350840685,), (1350840695,), (1350840709,), (1350840710,), (1350840711,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175898 , 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=22175888 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 (22175898) result : ((1350839228,), (1350839386,), (1350839387,), (1350839388,), (1350839389,), (1350839401,), (1350839454,), (1350839456,), (1350840667,), (1350840718,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175899 , 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=22175888 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 (22175899) result : ((1350839250,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175900 , 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=22175888 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 (22175900) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175901 , 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=22175888 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 (22175901) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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 22175902 , 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=22175888 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 (22175902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22175888) result : ((1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) 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`=22175888 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','kraft','papier','cartonnette','plastique','Carton_brun','Carton_gris','autre_refus','environnement','Teint_Dans_La_Masse','metal')) 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`=22175888 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','kraft','papier','cartonnette','plastique','Carton_brun','Carton_gris','autre_refus','environnement','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22175888, 'sub_port_id': 22175903, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651097, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'mal_croppe': {'main_port_id': 22175888, 'sub_port_id': 22175904, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651098, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'autre_refus': {'main_port_id': 22175888, 'sub_port_id': 22175905, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651099, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'metal': {'main_port_id': 22175888, 'sub_port_id': 22175906, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651100, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'Carton_brun': {'main_port_id': 22175888, 'sub_port_id': 22175907, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651101, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'papier': {'main_port_id': 22175888, 'sub_port_id': 22175908, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651102, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 22175888, 'sub_port_id': 22175909, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651103, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'cartonnette': {'main_port_id': 22175888, 'sub_port_id': 22175910, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651104, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'kraft': {'main_port_id': 22175888, 'sub_port_id': 22175911, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651105, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'environnement': {'main_port_id': 22175888, 'sub_port_id': 22175912, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651106, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'flou': {'main_port_id': 22175888, 'sub_port_id': 22175913, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651107, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}, 'plastique': {'main_port_id': 22175888, 'sub_port_id': 22175914, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14651108, 'last_updated_at': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 19, 23, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175903,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175891 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175904,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175892 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175905,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175893 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175906,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175894 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175907,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175895 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175908,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175896 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175909,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175897 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175910,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175898 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175911,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175899 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175912,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175913,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22175914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22175902 lien utilise dans velours : https://www.fotonower.com/velours/22175903,22175904,22175905,22175906,22175907,22175908,22175909,22175910,22175911,22175912,22175913,22175914?tags=Carton_gris,mal_croppe,autre_refus,metal,Carton_brun,papier,Teint_Dans_La_Masse,cartonnette,kraft,environnement,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22175888]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] map_info['map_portfolio_photo'] : {22175888: [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610, 1350840372, 1350840361, 1350840326, 1350840314, 1350840052, 1350840019, 1350839998, 1350839993, 1350839987, 1350839828, 1350839824, 1350839820, 1350839803, 1350839775, 1350839658, 1350839501, 1350839462, 1350839444, 1350839298, 1350839198, 1350839189, 1350839172, 1350839153, 1350839005, 1350839004, 1350839001, 1350838998, 1350838997, 1350838955, 1350838950, 1350838946, 1350838828, 1350838591, 1350838586]} final : False mtd_id 4302 list_pids : [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] Looping around the photos to save general results len do output : 1 /22175888. 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, '2735852') ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22175888', "{'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902}", None, None, None, None, '2735852'), ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852')] time used for this insertion : 0.01881885528564453 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9099559783935547 time spend to save output : 0.01925373077392578 total time spend for step 1 : 2.9292097091674805 step2:final Wed Apr 9 19:31:02 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 (22175888) 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 22175888 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350838591,1350838586,1350838955,1350838950,1350838946,1350838828,1350839005,1350839004,1350839001,1350838998,1350838997,1350839198,1350839189,1350839172,1350839153,1350839298,1350839501,1350839462,1350839444,1350839658,1350839828,1350839824,1350839820,1350839803,1350839775,1350840052,1350840019,1350839998,1350839993,1350839987,1350840372,1350840361,1350840326,1350840314,1350840656,1350840650,1350840646,1350840630,1350840618,1350840610,1350840697,1350840691,1350840686,1350840682); 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([22175888]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} new output for save of step final : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] map_info['map_portfolio_photo'] : {22175888: [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610, 1350840372, 1350840361, 1350840326, 1350840314, 1350840052, 1350840019, 1350839998, 1350839993, 1350839987, 1350839828, 1350839824, 1350839820, 1350839803, 1350839775, 1350839658, 1350839501, 1350839462, 1350839444, 1350839298, 1350839198, 1350839189, 1350839172, 1350839153, 1350839005, 1350839004, 1350839001, 1350838998, 1350838997, 1350838955, 1350838950, 1350838946, 1350838828, 1350838591, 1350838586]} final : False mtd_id 4302 list_pids : [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] Looping around the photos to save general results len do output : 10 /1350840697.Didn't retrieve data . /1350840691.Didn't retrieve data . /1350840686.Didn't retrieve data . /1350840682.Didn't retrieve data . /1350840656.Didn't retrieve data . /1350840650.Didn't retrieve data . /1350840646.Didn't retrieve data . /1350840630.Didn't retrieve data . /1350840618.Didn't retrieve data . /1350840610.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, '2735852') ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22175888', '1350840697', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840691', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840686', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840682', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840656', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840650', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840646', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840630', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840618', '0.04978902982758954', None, None, None, None, '2735852'), ('4302', '22175888', '1350840610', '0.04978902982758954', None, None, None, None, '2735852')] time used for this insertion : 0.020206212997436523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09760093688964844 time spend to save output : 0.020832061767578125 total time spend for step 2 : 0.11843299865722656 step3:velours_tree Wed Apr 9 19:31:02 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 : {22175888: [{'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902}]} input_args_next_step : {22175888: ()} output_args : {22175888: [{'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902}]} args : 22175888 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22175888) 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([22175888]) 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.6426572799682617 time spend to save output : 8.20159912109375e-05 total time spend for step 3 : 0.6427392959594727 step4:send_mail_cod Wed Apr 9 19:31:03 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 : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} input_args_next_step : {1350840697: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840697 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840691 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840686 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840682 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840656 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840650 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840646 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840630 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840618 depend.output_id : 0 input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ()} output_args : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',)} args : 1350840610 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 : {22175888: [{'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902}]} input_args_next_step : {1350840697: ('0.04978902982758954',), 1350840691: ('0.04978902982758954',), 1350840686: ('0.04978902982758954',), 1350840682: ('0.04978902982758954',), 1350840656: ('0.04978902982758954',), 1350840650: ('0.04978902982758954',), 1350840646: ('0.04978902982758954',), 1350840630: ('0.04978902982758954',), 1350840618: ('0.04978902982758954',), 1350840610: ('0.04978902982758954',), 22175888: ()} output_args : {22175888: [{'Carton_gris': 22175891, 'mal_croppe': 22175892, 'autre_refus': 22175893, 'metal': 22175894, 'Carton_brun': 22175895, 'papier': 22175896, 'Teint_Dans_La_Masse': 22175897, 'cartonnette': 22175898, 'kraft': 22175899, 'environnement': 22175900, 'flou': 22175901, 'plastique': 22175902}]} args : 22175888 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 :11, first value : ('0.04978902982758954',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22175888) 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 (1350840697,1350840691,1350840686,1350840682,1350840656,1350840650,1350840646,1350840630,1350840618,1350840610) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350840610 begin to download photo : 1350840646 begin to download photo : 1350840682 begin to download photo : 1350840697 download finish for photo 1350840610 begin to download photo : 1350840618 download finish for photo 1350840697 download finish for photo 1350840646 begin to download photo : 1350840650 download finish for photo 1350840682 begin to download photo : 1350840686 download finish for photo 1350840618 begin to download photo : 1350840630 download finish for photo 1350840686 begin to download photo : 1350840691 download finish for photo 1350840650 begin to download photo : 1350840656 download finish for photo 1350840691 download finish for photo 1350840630 download finish for photo 1350840656 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221758921744219863/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22175888_09-04-2025_19_31_03.pdf 22175892 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=22175892 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221758921744219863 22175893 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=22175893 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839423: '1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910086_0.png', 1350839426: '1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910154_0.png', 1350840699: '1744219771_3048702_1350840052_f078f36d9fc4c5c7adfcad92e545f3a7_rle_crop_3751918434_0.png', 1350840700: '1744219771_3048702_1350839803_3783ec69d953aacb5215384f0fa2da43_rle_crop_3751918570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8829994069b0bcc06396add65b25684b_69141708.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0dc3830ce142bef44a444dbe3827198d_94137426.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f14ecc1425e0d1970e64caab96089278_22623834.png change filename to text .imagette221758931744219863/ imagette221758931744219863/1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910086_0.png.png imagette221758931744219863/1744219771_3048702_1350840052_f078f36d9fc4c5c7adfcad92e545f3a7_rle_crop_3751918434_0.png.png imagette221758931744219863/1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910154_0.png.png imagette221758931744219863/1744219771_3048702_1350839803_3783ec69d953aacb5215384f0fa2da43_rle_crop_3751918570_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/48d361d2420a438c57565f0179172f42_28564873.png imagette221758931744219863 22175894 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=22175894 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839232: '1744219271_3044141_1350838946_cdc6f14c259112999f4002c41c66e70a_rle_crop_3751906487_0.png', 1350839500: '1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910105_0.png', 1350840719: '1744219790_3048882_1350839998_4e63e59959c3d7d5f34a1f4acdcf5311_rle_crop_3751918653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/405412ad82b82c6f9e635b03fbb84b38_13222852.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a597efe296ddf7df0b98915e9a76145a_20538752.png change filename to text .imagette221758941744219864/ imagette221758941744219864/1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910105_0.png.png imagette221758941744219864/1744219790_3048882_1350839998_4e63e59959c3d7d5f34a1f4acdcf5311_rle_crop_3751918653_0.png.png imagette221758941744219864/1744219271_3044141_1350838946_cdc6f14c259112999f4002c41c66e70a_rle_crop_3751906487_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d6e0b8c75f28cdd7a0b5cdeecdbb5737_13675089.png imagette221758941744219864 22175898 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=22175898 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839228: '1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906450_0.png', 1350839386: '1744219392_3045204_1350839189_969d44c3d8318882236451cd47ea2dc2_rle_crop_3751909958_0.png', 1350839387: '1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910000_0.png', 1350839388: '1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910003_0.png', 1350839389: '1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910017_0.png', 1350839401: '1744219411_3045407_1350839005_a244ad1b71191e93243a81697c3f5ab0_rle_crop_3751910119_0.png', 1350839454: '1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910088_0.png', 1350839456: '1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910104_0.png', 1350840667: '1744219765_2708241_1350840314_82878f7b548fdbcff22e3b40f5be8760_rle_crop_3751918327_0.png', 1350840718: '1744219790_3048882_1350839987_7e497147bc2cace9fa1a3ac16cfbbf1b_rle_crop_3751918702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ad17a4f3309e26b92960b345fd26ecfb_25941238.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e6ef6c58e457db9b8c82441ae9c7e514_28870470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0b578b4acdfb51fbb83b68b3d36cbc16_452698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/afe618638a0f692cdcc0a9b7caf7ee5e_80033855.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/19938e8f4696554a8a2becc4c137adb9_37468395.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9ebea35472f4608e559391cb5534be3b_1344426.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f95983c364632dd2a01cab510dee6c8a_93784448.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/01898c8017579afde0c1f949d6ef2411_99524482.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a76c4205ade747736aefc50f778f5d94_71586077.png change filename to text .imagette221758981744219864/ imagette221758981744219864/1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910017_0.png.png imagette221758981744219864/1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906450_0.png.png imagette221758981744219864/1744219392_3045204_1350839189_969d44c3d8318882236451cd47ea2dc2_rle_crop_3751909958_0.png.png imagette221758981744219864/1744219790_3048882_1350839987_7e497147bc2cace9fa1a3ac16cfbbf1b_rle_crop_3751918702_0.png.png imagette221758981744219864/1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910104_0.png.png imagette221758981744219864/1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910088_0.png.png imagette221758981744219864/1744219765_2708241_1350840314_82878f7b548fdbcff22e3b40f5be8760_rle_crop_3751918327_0.png.png imagette221758981744219864/1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910003_0.png.png imagette221758981744219864/1744219411_3045407_1350839005_a244ad1b71191e93243a81697c3f5ab0_rle_crop_3751910119_0.png.png imagette221758981744219864/1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910000_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f9ba13b59141062f223eff1d89551015_73555266.png imagette221758981744219864 22175899 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=22175899 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839250: '1744219290_2700456_1350838955_9cb88da3ed201a3fdff16884056094b9_rle_crop_3751906808_0.png'} change filename to text .imagette221758991744219864/ imagette221758991744219864/1744219290_2700456_1350838955_9cb88da3ed201a3fdff16884056094b9_rle_crop_3751906808_0.png.png imagette221759011744219865/ imagette221759021744219865/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/efbd7fa086be3e3849c9fab83edc678a_27710451.png imagette221758991744219864 22175901 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=22175901 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221759011744219865 22175902 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=22175902 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221759021744219865 22175891 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=22175891 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839226: '1744219271_3044141_1350838946_cdc6f14c259112999f4002c41c66e70a_rle_crop_3751906489_0.png', 1350839249: '1744219290_2700456_1350838586_4dadb7d1d330648f3f4feeafea5e7c02_rle_crop_3751906816_0.png', 1350839400: '1744219411_3045407_1350839005_a244ad1b71191e93243a81697c3f5ab0_rle_crop_3751910121_0.png', 1350839442: '1744219408_2703889_1350838998_4086ad6a92bff147b6f8ac56708a6738_rle_crop_3751910135_0.png', 1350839447: '1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910158_0.png', 1350840712: '1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918621_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bd89737e566056064ca2a2685a76c0c4_46667031.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/04db8cc8090d515c83a02c227d8ec100_96523363.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f34f7e3af74886367e08749b13cc5e64_87439064.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fa0408f2723ecb69b89efd36533bbb28_51074562.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a62dcadc506f9e75d5c190ef9cb830af_69719020.png change filename to text .imagette221758911744219865/ imagette221758911744219865/1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910158_0.png.png imagette221758911744219865/1744219271_3044141_1350838946_cdc6f14c259112999f4002c41c66e70a_rle_crop_3751906489_0.png.png imagette221758911744219865/1744219290_2700456_1350838586_4dadb7d1d330648f3f4feeafea5e7c02_rle_crop_3751906816_0.png.png imagette221758911744219865/1744219411_3045407_1350839005_a244ad1b71191e93243a81697c3f5ab0_rle_crop_3751910121_0.png.png imagette221758911744219865/1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918621_0.png.png imagette221758911744219865/1744219408_2703889_1350838998_4086ad6a92bff147b6f8ac56708a6738_rle_crop_3751910135_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3254367298216091c0935d744553fe0f_8569864.png imagette221758911744219865 22175895 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=22175895 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839231: '1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906459_0.png', 1350839391: '1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910012_0.png', 1350839476: '1744219408_2703889_1350839198_b697b48d8452640ad550fc5d22fbc7df_rle_crop_3751910035_0.png', 1350839480: '1744219408_2703889_1350839198_b697b48d8452640ad550fc5d22fbc7df_rle_crop_3751910032_0.png', 1350839483: '1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910091_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e7f769757b10a159632a3c87d56c3445_5047657.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a58973d48d29e7464cc0998fd196343a_67011659.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1fbdde736c6919790418bfa56bcc5e0a_74142509.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/194d6ef1d314647b74ee91a35bb7b659_23700827.png change filename to text .imagette221758951744219865/ imagette221758951744219865/1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910012_0.png.png imagette221758951744219865/1744219408_2703889_1350839004_56b8ecace849a95216aa14d70cd14a04_rle_crop_3751910091_0.png.png imagette221758951744219865/1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906459_0.png.png imagette221758951744219865/1744219408_2703889_1350839198_b697b48d8452640ad550fc5d22fbc7df_rle_crop_3751910035_0.png.png imagette221758951744219865/1744219408_2703889_1350839198_b697b48d8452640ad550fc5d22fbc7df_rle_crop_3751910032_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a85d649c1651d7e25c4d72d2a640b2a8_2663133.png imagette221758951744219865 22175897 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=22175897 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839223: '1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906455_0.png', 1350839224: '1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906458_0.png', 1350839225: '1744219271_3044141_1350838828_56595e115c9d7455d68a43453ee24141_rle_crop_3751906519_0.png', 1350839243: '1744219290_2700456_1350838955_9cb88da3ed201a3fdff16884056094b9_rle_crop_3751906810_0.png', 1350839245: '1744219290_2700456_1350838586_4dadb7d1d330648f3f4feeafea5e7c02_rle_crop_3751906819_0.png', 1350839382: '1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910010_0.png', 1350839383: '1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910024_0.png', 1350839384: '1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910025_0.png', 1350839403: '1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910107_0.png', 1350839404: '1744219408_2703889_1350838998_4086ad6a92bff147b6f8ac56708a6738_rle_crop_3751910133_0.png', 1350839405: '1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910157_0.png', 1350840685: '1744219771_3048702_1350840052_f078f36d9fc4c5c7adfcad92e545f3a7_rle_crop_3751918437_0.png', 1350840695: '1744219771_3048702_1350839775_33ebe266826e7fc945d6942da65c0528_rle_crop_3751918580_0.png', 1350840709: '1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918628_0.png', 1350840710: '1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918626_0.png', 1350840711: '1744219790_3048882_1350839987_7e497147bc2cace9fa1a3ac16cfbbf1b_rle_crop_3751918703_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/462127472dac5f764cf9b93fdd8e3160_78052436.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b53e3806e22430663c4c85bc5c39faad_24222925.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d3acb26adc5f68a0646d76db043a98df_26755701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f923d2a9df39e61e783521ed779a1a22_12251248.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3712567d2da85b37035874bb1350fbef_22878975.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/051ff7d4e6b4eb78c071590935f6d759_94765008.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/eaa5cc6b2496a581e6fb31f81a0546de_23853203.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/403d8cda90aeb48c1ff669174f6a19aa_42721649.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/00fdcd3882888b197d192ed1da363292_66572723.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0a2b78544e47afcd92e04c2d684a823d_18654971.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/13018230fe23752a5520bda0df8bd76c_15394067.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/72556e3496017820df998e673686a00f_73627297.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0f504d27ac2867a9c99cbdff3e6f3f6e_76483423.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4d9a2051df90cffd363de90053c65314_48432102.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/cd5c2e2548fa3841037f1d74233eb8c4_30781240.png change filename to text .imagette221758971744219865/ imagette221758971744219865/1744219290_2700456_1350838955_9cb88da3ed201a3fdff16884056094b9_rle_crop_3751906810_0.png.png imagette221758971744219865/1744219771_3048702_1350839775_33ebe266826e7fc945d6942da65c0528_rle_crop_3751918580_0.png.png imagette221758971744219865/1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918628_0.png.png imagette221758971744219865/1744219408_2703889_1350839001_fc745f511a2a85be50fc23fc1a7d02e9_rle_crop_3751910107_0.png.png imagette221758971744219865/1744219271_3044141_1350838828_56595e115c9d7455d68a43453ee24141_rle_crop_3751906519_0.png.png imagette221758971744219865/1744219408_2703889_1350838997_86dc0147c2f0638f6becbcbdd4d421ec_rle_crop_3751910157_0.png.png imagette221758971744219865/1744219408_2703889_1350838998_4086ad6a92bff147b6f8ac56708a6738_rle_crop_3751910133_0.png.png imagette221758971744219865/1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906455_0.png.png imagette221758971744219865/1744219790_3048882_1350839987_7e497147bc2cace9fa1a3ac16cfbbf1b_rle_crop_3751918703_0.png.png imagette221758971744219865/1744219392_3045204_1350839172_38e91f3de07c4836ba2f41fd1aa0b62a_rle_crop_3751910010_0.png.png imagette221758971744219865/1744219771_3048702_1350840052_f078f36d9fc4c5c7adfcad92e545f3a7_rle_crop_3751918437_0.png.png imagette221758971744219865/1744219790_3048882_1350840019_516088cb0b915d3098eeb5d7a9e3c150_rle_crop_3751918626_0.png.png imagette221758971744219865/1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910025_0.png.png imagette221758971744219865/1744219271_3044141_1350838950_660591b1d5736eff9a6cf8bbdb5789ef_rle_crop_3751906458_0.png.png imagette221758971744219865/1744219392_3045204_1350839153_c5c3ad6f2fede4e92ee6cfbd7feeb568_rle_crop_3751910024_0.png.png imagette221758971744219865/1744219290_2700456_1350838586_4dadb7d1d330648f3f4feeafea5e7c02_rle_crop_3751906819_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/86803904be9747e4631a2057b63f44e0_83603728.png imagette221758971744219865 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22175888 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22175903,22175904,22175905,22175906,22175907,22175908,22175909,22175910,22175911,22175912,22175913,22175914?tags=Carton_gris,mal_croppe,autre_refus,metal,Carton_brun,papier,Teint_Dans_La_Masse,cartonnette,kraft,environnement,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1350840697] : ('0.04978902982758954',) no score found for photo 1350840697 We are sending mail with results at report@fotonower.com args[1350840691] : ('0.04978902982758954',) no score found for photo 1350840691 We are sending mail with results at report@fotonower.com args[1350840686] : ('0.04978902982758954',) no score found for photo 1350840686 We are sending mail with results at report@fotonower.com args[1350840682] : ('0.04978902982758954',) no score found for photo 1350840682 We are sending mail with results at report@fotonower.com args[1350840656] : ('0.04978902982758954',) no score found for photo 1350840656 We are sending mail with results at report@fotonower.com args[1350840650] : ('0.04978902982758954',) no score found for photo 1350840650 We are sending mail with results at report@fotonower.com args[1350840646] : ('0.04978902982758954',) no score found for photo 1350840646 We are sending mail with results at report@fotonower.com args[1350840630] : ('0.04978902982758954',) no score found for photo 1350840630 We are sending mail with results at report@fotonower.com args[1350840618] : ('0.04978902982758954',) no score found for photo 1350840618 We are sending mail with results at report@fotonower.com args[1350840610] : ('0.04978902982758954',) no score found for photo 1350840610 We are sending mail with results at report@fotonower.com refus_total : 0.04978902982758954 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=22175888 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_P22175888_09-04-2025_19_31_03.pdf results_Auto_P22175888_09-04-2025_19_31_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175888_09-04-2025_19_31_03.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','22175888','results_Auto_P22175888_09-04-2025_19_31_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175888_09-04-2025_19_31_03.pdf','pdf','','0.22','0.04978902982758954') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22175888]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] map_info['map_portfolio_photo'] : {22175888: [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610, 1350840372, 1350840361, 1350840326, 1350840314, 1350840052, 1350840019, 1350839998, 1350839993, 1350839987, 1350839828, 1350839824, 1350839820, 1350839803, 1350839775, 1350839658, 1350839501, 1350839462, 1350839444, 1350839298, 1350839198, 1350839189, 1350839172, 1350839153, 1350839005, 1350839004, 1350839001, 1350838998, 1350838997, 1350838955, 1350838950, 1350838946, 1350838828, 1350838591, 1350838586]} final : False mtd_id 4302 list_pids : [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] 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, '2735852') ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22175888', '1350840697', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852')] time used for this insertion : 0.01780533790588379 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.878256320953369 time spend to save output : 0.018075942993164062 total time spend for step 4 : 4.896332263946533 step5:split_time_score Wed Apr 9 19:31:08 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 : ['22175888'] 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 : [('22175888',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22175888) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350840697: {'path': 'temp/1744219863_2627282_1350840697_67511a707ec1277a2b5e0108f6be4254.jpg', 'extension': 'jpg'}, 1350840682: {'path': 'temp/1744219863_2627282_1350840682_f591b15875054f5c9b0105ac39566787.jpg', 'extension': 'jpg'}, 1350840686: {'path': 'temp/1744219863_2627282_1350840686_d0919fb315f01305a901da9c229b8755.jpg', 'extension': 'jpg'}, 1350840691: {'path': 'temp/1744219863_2627282_1350840691_518a585a0f76904d54080a1c92ed08cc.jpg', 'extension': 'jpg'}, 1350840610: {'path': 'temp/1744219863_2627282_1350840610_bcb022f9ca90a15f67da381bbaea8922.jpg', 'extension': 'jpg'}, 1350840618: {'path': 'temp/1744219863_2627282_1350840618_8f71167b8e78a25efbcea97fcd204ce1.jpg', 'extension': 'jpg'}, 1350840630: {'path': 'temp/1744219863_2627282_1350840630_198a1e659f70e0cac44401bd935b7ec7.jpg', 'extension': 'jpg'}, 1350840646: {'path': 'temp/1744219863_2627282_1350840646_b56875c5bfa1748cfdfa6cefa1cdc1e5.jpg', 'extension': 'jpg'}, 1350840650: {'path': 'temp/1744219863_2627282_1350840650_589e74ef5a824bfdac5d6fd3ca558271.jpg', 'extension': 'jpg'}, 1350840656: {'path': 'temp/1744219863_2627282_1350840656_5a362e86c4c7ac98bca5f3a026e37539.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 = 22175888; (('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 = 22175888 group by h (('19', 44),) 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=22175888 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 (22175888) 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 (22175888) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22175888 Nombre de photos uploadées : 44 / 23040 (0%) 09042025 22175888 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 09042025 22175888 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1350838591, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e5db8ed1a77b229495b57fde1057c934.jpg', 'username': None, 'uploaded_at': 1744219028, 'text': 'image_09042025_19_15_34_10142.jpg'}, {'photo_id': 1350838586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4dadb7d1d330648f3f4feeafea5e7c02.jpg', 'username': None, 'uploaded_at': 1744219028, 'text': 'image_09042025_19_16_04_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350838955, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9cb88da3ed201a3fdff16884056094b9.jpg', 'username': None, 'uploaded_at': 1744219147, 'text': 'image_09042025_19_16_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350838950, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/660591b1d5736eff9a6cf8bbdb5789ef.jpg', 'username': None, 'uploaded_at': 1744219147, 'text': 'image_09042025_19_18_14_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014467239379882812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22175888, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028316497802734375 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= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734893, 'mtr_portfolio_id': 22174290, 'dashboard_result_id': 9954292, '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_P22174290_09-04-2025_19_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174352, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734893, 'mtr_portfolio_id': 22175055, 'dashboard_result_id': 9954293, '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_P22175055_09-04-2025_19_16_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175136, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734893, 'mtr_portfolio_id': 22175888, 'dashboard_result_id': 9954294, '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_P22175888_09-04-2025_19_29_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175902, '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 = 22174290 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': 2735722, 'mtr_portfolio_id': 22174290, 'created_at': datetime.datetime(2025, 4, 9, 19, 3, 2), 'result': '0.038118593473479866', 'result_long': None, 'result_double': None}] Qualite : 0.038118593473479866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22174290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174290_09-04-2025_19_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22174290 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_P22174290_09-04-2025_19_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174352, 'pht': 3726}}" where mtr_portfolio_id = 22174290 and dashboard_run_id = 1734893 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`=22174290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9954292, 0.038118593473479866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174290_09-04-2025_19_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174352, '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 = 22175055 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': 2735790, 'mtr_portfolio_id': 22175055, 'created_at': datetime.datetime(2025, 4, 9, 19, 16, 30), 'result': '0.06028436489262009', 'result_long': None, 'result_double': None}] Qualite : 0.06028436489262009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175055_09-04-2025_19_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175055 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_P22175055_09-04-2025_19_16_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175136, 'pht': 3726}}" where mtr_portfolio_id = 22175055 and dashboard_run_id = 1734893 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`=22175055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9954293, 0.06028436489262009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175055_09-04-2025_19_16_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175136, '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 = 22175888 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': 2735852, 'mtr_portfolio_id': 22175888, 'created_at': datetime.datetime(2025, 4, 9, 19, 31, 2), 'result': '0.04978902982758954', 'result_long': None, 'result_double': None}] Qualite : 0.04978902982758954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175888_09-04-2025_19_31_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175888 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_P22175888_09-04-2025_19_31_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175902, 'pht': 3726}}" where mtr_portfolio_id = 22175888 and dashboard_run_id = 1734893 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`=22175888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9954294, 0.04978902982758954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175888_09-04-2025_19_31_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175902, '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 (22174290,22175055,22175888) result : ((1350830787,), (1350830803,), (1350830810,), (1350830815,), (1350830937,), (1350830969,), (1350830979,), (1350830984,), (1350831057,), (1350831080,), (1350831085,), (1350831088,), (1350831098,), (1350831134,), (1350831138,), (1350831146,), (1350831151,), (1350831193,), (1350831196,), (1350831199,), (1350831266,), (1350831282,), (1350831308,), (1350831321,), (1350831338,), (1350831357,), (1350831489,), (1350831520,), (1350831543,), (1350831553,), (1350831777,), (1350831789,), (1350831807,), (1350831811,), (1350832014,), (1350832018,), (1350832021,), (1350832301,), (1350832316,), (1350832565,), (1350832567,), (1350832571,), (1350832573,), (1350832574,), (1350832610,), (1350832622,), (1350832624,), (1350832640,), (1350832852,), (1350832888,), (1350832921,), (1350832950,), (1350832977,), (1350833850,), (1350833861,), (1350833891,), (1350833921,), (1350833947,), (1350833994,), (1350834002,), (1350834020,), (1350834085,), (1350834066,), (1350834071,), (1350834076,), (1350834080,), (1350834216,), (1350834231,), (1350834246,), (1350834252,), (1350834262,), (1350834617,), (1350834637,), (1350834664,), (1350834696,), (1350834723,), (1350834965,), (1350834985,), (1350835012,), (1350835266,), (1350835276,), (1350835298,), (1350835326,), (1350835349,), (1350835382,), (1350835719,), (1350835724,), (1350835740,), (1350835772,), (1350835811,), (1350835948,), (1350835998,), (1350835999,), (1350836040,), (1350836046,), (1350836304,), (1350836332,), (1350836356,), (1350836386,), (1350836415,), (1350836659,), (1350836689,), (1350836735,), (1350836848,), (1350837084,), (1350837107,), (1350837140,), (1350837156,), (1350837182,), (1350837533,), (1350837745,), (1350837750,), (1350837752,), (1350837756,), (1350837838,), (1350837920,), (1350837931,), (1350837934,), (1350838218,), (1350838455,), (1350838586,), (1350838591,), (1350838828,), (1350838946,), (1350838950,), (1350838955,), (1350838997,), (1350838998,), (1350839001,), (1350839004,), (1350839005,), (1350839153,), (1350839172,), (1350839189,), (1350839198,), (1350839298,), (1350839444,), (1350839462,), (1350839501,), (1350839658,), (1350839775,), (1350839803,), (1350839820,), (1350839824,), (1350839828,), (1350839987,), (1350839993,), (1350839998,), (1350840019,), (1350840052,), (1350840314,), (1350840326,), (1350840361,), (1350840372,), (1350840610,), (1350840618,), (1350840630,), (1350840646,), (1350840650,), (1350840656,), (1350840682,), (1350840686,), (1350840691,), (1350840697,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22175888]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] map_info['map_portfolio_photo'] : {22175888: [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610, 1350840372, 1350840361, 1350840326, 1350840314, 1350840052, 1350840019, 1350839998, 1350839993, 1350839987, 1350839828, 1350839824, 1350839820, 1350839803, 1350839775, 1350839658, 1350839501, 1350839462, 1350839444, 1350839298, 1350839198, 1350839189, 1350839172, 1350839153, 1350839005, 1350839004, 1350839001, 1350838998, 1350838997, 1350838955, 1350838950, 1350838946, 1350838828, 1350838591, 1350838586]} final : True mtd_id 4302 list_pids : [1350840697, 1350840691, 1350840686, 1350840682, 1350840656, 1350840650, 1350840646, 1350840630, 1350840618, 1350840610] Looping around the photos to save general results len do output : 1 /22175888Didn'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, '2735852') ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852') ('4302', None, None, None, None, None, None, None, '2735852') ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22175888', 'None', None, None, None, None, '2735852'), ('4302', '22175888', '1350840697', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840691', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840686', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840682', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840656', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840650', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840646', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840630', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840618', None, None, None, None, None, '2735852'), ('4302', '22175888', '1350840610', None, None, None, None, None, '2735852')] time used for this insertion : 0.01662468910217285 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34879064559936523 time spend to save output : 0.01685190200805664 total time spend for step 5 : 0.3656425476074219 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 (2735852) 2.69user 2.54system 0:12.54elapsed 41%CPU (0avgtext+0avgdata 158820maxresident)k 64704inputs+11904outputs (225major+76177minor)pagefaults 0swaps