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 : 2982370 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 (4187927) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4187927) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205333 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4187927'] with mtr_portfolio_ids : ['29205333'] and first list_photo_ids : [] new path : /proc/2982370/ Name: python3 Umask: 0002 State: R (running) Tgid: 2982370 Ngid: 0 Pid: 2982370 PPid: 2982369 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2982370 NSpid: 2982370 NSpgid: 2981880 NSsid: 2981880 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105544 kB VmRSS: 105544 kB RssAnon: 66296 kB RssFile: 39248 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 124 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2982370', 'Ngid': '0', 'Pid': '2982370', 'PPid': '2982369', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2982370', 'NSpid': '2982370', 'NSpgid': '2981880', 'NSsid': '2981880', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105544 kB', 'VmRSS': '105544 kB', 'RssAnon': '66296 kB', 'RssFile': '39248 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '124'} ('datou_batch_current', '2982370', '1113364', '0', '1113364', '872092', '105544', b'', 'marlene', '4187927') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29205333) 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 (4187927 ) ) 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 (29205333) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397995711, 'portfolio_id': 29205333}, {'photo_id': 1397985271, 'portfolio_id': 29205333}, {'photo_id': 1397985268, 'portfolio_id': 29205333}, {'photo_id': 1397985266, 'portfolio_id': 29205333}, {'photo_id': 1397985263, 'portfolio_id': 29205333}, {'photo_id': 1397985249, 'portfolio_id': 29205333}, {'photo_id': 1397985247, 'portfolio_id': 29205333}, {'photo_id': 1397985145, 'portfolio_id': 29205333}, {'photo_id': 1397985143, 'portfolio_id': 29205333}, {'photo_id': 1397985117, 'portfolio_id': 29205333}, {'photo_id': 1397985077, 'portfolio_id': 29205333}, {'photo_id': 1397985040, 'portfolio_id': 29205333}, {'photo_id': 1397985004, 'portfolio_id': 29205333}, {'photo_id': 1397984966, 'portfolio_id': 29205333}, {'photo_id': 1397984689, 'portfolio_id': 29205333}, {'photo_id': 1397984505, 'portfolio_id': 29205333}, {'photo_id': 1397984413, 'portfolio_id': 29205333}, {'photo_id': 1397984412, 'portfolio_id': 29205333}, {'photo_id': 1397984007, 'portfolio_id': 29205333}, {'photo_id': 1397983985, 'portfolio_id': 29205333}, {'photo_id': 1397983982, 'portfolio_id': 29205333}, {'photo_id': 1397983980, 'portfolio_id': 29205333}, {'photo_id': 1397983889, 'portfolio_id': 29205333}, {'photo_id': 1397983880, 'portfolio_id': 29205333}, {'photo_id': 1397983824, 'portfolio_id': 29205333}, {'photo_id': 1397983744, 'portfolio_id': 29205333}, {'photo_id': 1397983601, 'portfolio_id': 29205333}, {'photo_id': 1397983416, 'portfolio_id': 29205333}, {'photo_id': 1397983395, 'portfolio_id': 29205333}, {'photo_id': 1397983381, 'portfolio_id': 29205333}, {'photo_id': 1397983314, 'portfolio_id': 29205333}, {'photo_id': 1397983303, 'portfolio_id': 29205333}, {'photo_id': 1397983271, 'portfolio_id': 29205333}, {'photo_id': 1397983238, 'portfolio_id': 29205333}, {'photo_id': 1397983204, 'portfolio_id': 29205333}, {'photo_id': 1397983168, 'portfolio_id': 29205333}, {'photo_id': 1397983072, 'portfolio_id': 29205333}, {'photo_id': 1397983056, 'portfolio_id': 29205333}, {'photo_id': 1397982950, 'portfolio_id': 29205333}, {'photo_id': 1397982811, 'portfolio_id': 29205333}, {'photo_id': 1397982712, 'portfolio_id': 29205333}, {'photo_id': 1397982599, 'portfolio_id': 29205333}, {'photo_id': 1397981895, 'portfolio_id': 29205333}, {'photo_id': 1397981893, 'portfolio_id': 29205333}, {'photo_id': 1397981890, 'portfolio_id': 29205333}, {'photo_id': 1397981888, 'portfolio_id': 29205333}, {'photo_id': 1397981885, 'portfolio_id': 29205333}, {'photo_id': 1397981873, 'portfolio_id': 29205333}, {'photo_id': 1397981562, 'portfolio_id': 29205333}, {'photo_id': 1397981549, 'portfolio_id': 29205333}, {'photo_id': 1397981542, 'portfolio_id': 29205333}, {'photo_id': 1397981506, 'portfolio_id': 29205333}, {'photo_id': 1397981496, 'portfolio_id': 29205333}, {'photo_id': 1397981275, 'portfolio_id': 29205333}, {'photo_id': 1397981274, 'portfolio_id': 29205333}, {'photo_id': 1397981273, 'portfolio_id': 29205333}, {'photo_id': 1397981272, 'portfolio_id': 29205333}, {'photo_id': 1397981259, 'portfolio_id': 29205333}, {'photo_id': 1397981257, 'portfolio_id': 29205333}, {'photo_id': 1397981255, 'portfolio_id': 29205333}, {'photo_id': 1397981253, 'portfolio_id': 29205333}] map_portfolio_id_photo_id: {29205333: [1397995711, 1397985271, 1397985268, 1397985266, 1397985263, 1397985249, 1397985247, 1397985145, 1397985143, 1397985117, 1397985077, 1397985040, 1397985004, 1397984966, 1397984689, 1397984505, 1397984413, 1397984412, 1397984007, 1397983985, 1397983982, 1397983980, 1397983889, 1397983880, 1397983824, 1397983744, 1397983601, 1397983416, 1397983395, 1397983381, 1397983314, 1397983303, 1397983271, 1397983238, 1397983204, 1397983168, 1397983072, 1397983056, 1397982950, 1397982811, 1397982712, 1397982599, 1397981895, 1397981893, 1397981890, 1397981888, 1397981885, 1397981873, 1397981562, 1397981549, 1397981542, 1397981506, 1397981496, 1397981275, 1397981274, 1397981273, 1397981272, 1397981259, 1397981257, 1397981255, 1397981253]} ##### 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.02003765106201172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Dec 5 01:37:28 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 (29205333) 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 : 29205333 get user id for portfolio 29205333 get sub ptf for main ptf 29205333, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'plastique', 'Carton_brun', 'environnement', 'cartonnette', 'kraft', 'mal_croppe', 'Carton_gris', 'autre_refus', 'metal', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29205333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','plastique','Carton_brun','environnement','cartonnette','kraft','mal_croppe','Carton_gris','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29205333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','plastique','Carton_brun','environnement','cartonnette','kraft','mal_croppe','Carton_gris','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29205333, 'sub_port_id': 29205382, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860406, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'papier': {'main_port_id': 29205333, 'sub_port_id': 29205384, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860407, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'mal_croppe': {'main_port_id': 29205333, 'sub_port_id': 29205385, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860408, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'kraft': {'main_port_id': 29205333, 'sub_port_id': 29205386, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860409, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'Carton_gris': {'main_port_id': 29205333, 'sub_port_id': 29205387, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860410, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29205333, 'sub_port_id': 29205388, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860411, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'autre_refus': {'main_port_id': 29205333, 'sub_port_id': 29205389, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860412, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'Carton_brun': {'main_port_id': 29205333, 'sub_port_id': 29205390, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860413, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'cartonnette': {'main_port_id': 29205333, 'sub_port_id': 29205391, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860414, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'metal': {'main_port_id': 29205333, 'sub_port_id': 29205392, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860415, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'flou': {'main_port_id': 29205333, 'sub_port_id': 29205393, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860416, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}, 'plastique': {'main_port_id': 29205333, 'sub_port_id': 29205394, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860417, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29205382 , 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=29205333 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 (29205382) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205384 , 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=29205333 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 (29205384) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205385 , 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=29205333 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 (29205385) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205386 , 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=29205333 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 (29205386) result : ((1397984666,), (1397985109,), (1397985245,), (1397985259,), (1397986430,), (1397986431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205387 , 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=29205333 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 (29205387) result : ((1397984524,), (1397984525,), (1397984930,), (1397985244,), (1397986044,), (1397987062,), (1397987070,), (1397994146,), (1397994424,), (1397994425,), (1397994427,), (1397994428,), (1397994429,), (1397994447,), (1397994449,), (1397994450,), (1397994451,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205388 , 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=29205333 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 (29205388) result : ((1397984522,), (1397984640,), (1397985079,), (1397986012,), (1397986016,), (1397986420,), (1397986421,), (1397987059,), (1397987060,), (1397987069,), (1397994126,), (1397994423,), (1397994445,), (1397994446,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205389 , 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=29205333 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 (29205389) result : ((1397984929,), (1397986423,), (1397987061,), (1397994136,), (1397994138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205390 , 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=29205333 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 (29205390) result : ((1397984530,), (1397984649,), (1397984931,), (1397985088,), (1397986106,), (1397986111,), (1397986425,), (1397986426,), (1397987064,), (1397994156,), (1397994441,), (1397994442,), (1397994456,), (1397994457,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205391 , 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=29205333 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 (29205391) result : ((1397984527,), (1397984528,), (1397986072,), (1397986076,), (1397986080,), (1397986424,), (1397994430,), (1397994431,), (1397994432,), (1397994433,), (1397994434,), (1397994435,), (1397994436,), (1397994437,), (1397994438,), (1397994439,), (1397994452,), (1397994453,), (1397994454,), (1397994455,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205392 , 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=29205333 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 (29205392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205393 , 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=29205333 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 (29205393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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 29205394 , 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=29205333 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 (29205394) result : ((1397984657,), (1397984932,), (1397984933,), (1397984934,), (1397984935,), (1397985099,), (1397986135,), (1397986139,), (1397986427,), (1397986428,), (1397986429,), (1397987072,), (1397994171,), (1397994173,), (1397994175,), (1397994177,), (1397994443,), (1397994444,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29205333) result : ((1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,)) 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`=29205333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','plastique','Carton_brun','environnement','cartonnette','kraft','mal_croppe','Carton_gris','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29205333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','plastique','Carton_brun','environnement','cartonnette','kraft','mal_croppe','Carton_gris','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29205333, 'sub_port_id': 29205395, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860418, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'papier': {'main_port_id': 29205333, 'sub_port_id': 29205396, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860419, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'mal_croppe': {'main_port_id': 29205333, 'sub_port_id': 29205397, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860420, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'kraft': {'main_port_id': 29205333, 'sub_port_id': 29205398, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860421, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'Carton_gris': {'main_port_id': 29205333, 'sub_port_id': 29205399, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860422, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 29205333, 'sub_port_id': 29205400, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860423, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'autre_refus': {'main_port_id': 29205333, 'sub_port_id': 29205401, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860424, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'Carton_brun': {'main_port_id': 29205333, 'sub_port_id': 29205402, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860425, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'cartonnette': {'main_port_id': 29205333, 'sub_port_id': 29205403, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860426, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'metal': {'main_port_id': 29205333, 'sub_port_id': 29205404, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860427, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'flou': {'main_port_id': 29205333, 'sub_port_id': 29205405, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860428, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}, 'plastique': {'main_port_id': 29205333, 'sub_port_id': 29205406, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19860429, 'last_updated_at': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 0, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 0, 49, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205395,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205382 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29205406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29205394 lien utilise dans velours : https://marlene.fotonower.com/velours/29205395,29205396,29205397,29205398,29205399,29205400,29205401,29205402,29205403,29205404,29205405,29205406?tags=environnement,papier,mal_croppe,kraft,Carton_gris,Teint_Dans_La_Masse,autre_refus,Carton_brun,cartonnette,metal,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29205333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397995711] map_info['map_portfolio_photo'] : {29205333: [1397995711, 1397985271, 1397985268, 1397985266, 1397985263, 1397985249, 1397985247, 1397985145, 1397985143, 1397985117, 1397985077, 1397985040, 1397985004, 1397984966, 1397984689, 1397984505, 1397984413, 1397984412, 1397984007, 1397983985, 1397983982, 1397983980, 1397983889, 1397983880, 1397983824, 1397983744, 1397983601, 1397983416, 1397983395, 1397983381, 1397983314, 1397983303, 1397983271, 1397983238, 1397983204, 1397983168, 1397983072, 1397983056, 1397982950, 1397982811, 1397982712, 1397982599, 1397981895, 1397981893, 1397981890, 1397981888, 1397981885, 1397981873, 1397981562, 1397981549, 1397981542, 1397981506, 1397981496, 1397981275, 1397981274, 1397981273, 1397981272, 1397981259, 1397981257, 1397981255, 1397981253]} final : False mtd_id 4302 list_pids : [1397995711] Looping around the photos to save general results len do output : 1 /29205333. 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, '4187927') ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29205333', "{'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394}", None, None, None, None, '4187927'), ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927')] time used for this insertion : 0.0192108154296875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8464343547821045 time spend to save output : 0.024413108825683594 total time spend for step 1 : 1.870847463607788 step2:final Fri Dec 5 01:37:29 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 (29205333) 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 29205333 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397981259,1397981257,1397981255,1397981253,1397981275,1397981274,1397981273,1397981272,1397984413,1397981562,1397984412,1397981549,1397981542,1397984007,1397983314,1397981506,1397983303,1397981496,1397981895,1397983271,1397983238,1397981893,1397983204,1397981890,1397983168,1397981888,1397983072,1397981885,1397983056,1397981873,1397982950,1397982811,1397982712,1397982599,1397983824,1397983744,1397983601,1397983416,1397983395,1397983381,1397983985,1397983982,1397983980,1397983889,1397983880,1397984505,1397984966,1397984689,1397985145,1397985143,1397985117,1397985077,1397985040,1397985004,1397985249,1397985247,1397985271,1397985268,1397985266,1397985263,1397995711); 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([29205333]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397995711: ('0.035921190619032206',)} new output for save of step final : {1397995711: ('0.035921190619032206',)} [1397995711] map_info['map_portfolio_photo'] : {29205333: [1397995711, 1397985271, 1397985268, 1397985266, 1397985263, 1397985249, 1397985247, 1397985145, 1397985143, 1397985117, 1397985077, 1397985040, 1397985004, 1397984966, 1397984689, 1397984505, 1397984413, 1397984412, 1397984007, 1397983985, 1397983982, 1397983980, 1397983889, 1397983880, 1397983824, 1397983744, 1397983601, 1397983416, 1397983395, 1397983381, 1397983314, 1397983303, 1397983271, 1397983238, 1397983204, 1397983168, 1397983072, 1397983056, 1397982950, 1397982811, 1397982712, 1397982599, 1397981895, 1397981893, 1397981890, 1397981888, 1397981885, 1397981873, 1397981562, 1397981549, 1397981542, 1397981506, 1397981496, 1397981275, 1397981274, 1397981273, 1397981272, 1397981259, 1397981257, 1397981255, 1397981253]} final : False mtd_id 4302 list_pids : [1397995711] Looping around the photos to save general results len do output : 1 /1397995711.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, '4187927') ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '29205333', '1397995711', '0.035921190619032206', None, None, None, None, '4187927')] time used for this insertion : 0.012799263000488281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09742975234985352 time spend to save output : 0.012993574142456055 total time spend for step 2 : 0.11042332649230957 step3:velours_tree Fri Dec 5 01:37:30 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 : {29205333: [{'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394}]} input_args_next_step : {29205333: ()} output_args : {29205333: [{'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394}]} args : 29205333 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 : ({'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29205333) 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([29205333]) 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.8100085258483887 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.810056209564209 step4:send_mail_cod Fri Dec 5 01:37:30 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 : {1397995711: ('0.035921190619032206',)} input_args_next_step : {1397995711: ()} output_args : {1397995711: ('0.035921190619032206',)} args : 1397995711 depend.output_id : 0 complete output_args for input 3 : {29205333: [{'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394}]} input_args_next_step : {1397995711: ('0.035921190619032206',), 29205333: ()} output_args : {29205333: [{'environnement': 29205382, 'papier': 29205384, 'mal_croppe': 29205385, 'kraft': 29205386, 'Carton_gris': 29205387, 'Teint_Dans_La_Masse': 29205388, 'autre_refus': 29205389, 'Carton_brun': 29205390, 'cartonnette': 29205391, 'metal': 29205392, 'flou': 29205393, 'plastique': 29205394}]} args : 29205333 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 :2, first value : ('0.035921190619032206',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29205333) 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_view ph WHERE photo_id IN (1397995711) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397995711 download finish for photo 1397995711 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292053851764895051/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P29205333_05-12-2025_01_37_31.pdf 29205385 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292053851764895051 29205386 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397984666: '1764892408_3623042_1397981562_2da15f22602084b7072a03108ca05793_rle_crop_4059607856_0.png', 1397985109: '1764892525_3628683_1397981562_2da15f22602084b7072a03108ca05793_rle_crop_4059607856_0.png', 1397985245: '1764892586_3632135_1397984505_559c41e92006d674110e5943b59b2370_rle_crop_4059616688_0.png', 1397985259: '1764892646_3636663_1397984413_23509f62408a660a49850f39b86f2402_rle_crop_4059616860_0.png', 1397986430: '1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619890_0.png', 1397986431: '1764892865_3646639_1397981255_396396530ad6f32d35764e6f32d18337_rle_crop_4059619921_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c833fff74962549d6183b8b6eba385ab_71944875.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c833fff74962549d6183b8b6eba385ab_3826657.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/fb6b3a10272d08f1b1deffecc611703a_23499232.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c833fff74962549d6183b8b6eba385ab_46002145.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6f08b57915e7299d450fedf2b86c6080_80362052.png change filename to text .imagette292053861764895051/ imagette292053861764895051/1764892865_3646639_1397981255_396396530ad6f32d35764e6f32d18337_rle_crop_4059619921_0.png.png imagette292053861764895051/1764892408_3623042_1397981562_2da15f22602084b7072a03108ca05793_rle_crop_4059607856_0.png.png imagette292053861764895051/1764892586_3632135_1397984505_559c41e92006d674110e5943b59b2370_rle_crop_4059616688_0.png.png imagette292053861764895051/1764892646_3636663_1397984413_23509f62408a660a49850f39b86f2402_rle_crop_4059616860_0.png.png imagette292053861764895051/1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619890_0.png.png imagette292053861764895051/1764892525_3628683_1397981562_2da15f22602084b7072a03108ca05793_rle_crop_4059607856_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ed047a91d75dd8f3a7aa4f1275c56887_82267084.png imagette292053861764895051 29205389 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397984929: '1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608022_0.png', 1397986423: '1764892865_3646639_1397981259_c7aec256791a4e8c6482529a95bfabc7_rle_crop_4059619903_0.png', 1397987061: '1764893067_3654636_1397985266_19c14545105dc96deb0e5f3cc199f42f_rle_crop_4059635201_0.png', 1397994136: '1764894665_3718895_1397983985_b9ae1648bbbed2146dff7fc7a3ea80d4_rle_crop_4059707390_0.png', 1397994138: '1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f66d816ee076c8de728410740c1a1fa1_92029540.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/04c3c4b33a43a750f5da4f0f8416c438_23350421.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/dd4041d7bbafc3ae3e0fdb91925674d2_36680174.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1c93241ef6c33d815c6178a82d4ea7af_60217515.png change filename to text .imagette292053891764895051/ imagette292053891764895051/1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608022_0.png.png imagette292053891764895051/1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608022_0.png.png imagette292053891764895051/1764892865_3646639_1397981259_c7aec256791a4e8c6482529a95bfabc7_rle_crop_4059619903_0.png.png imagette292053891764895051/1764894665_3718895_1397983985_b9ae1648bbbed2146dff7fc7a3ea80d4_rle_crop_4059707390_0.png.png imagette292053891764895051/1764893067_3654636_1397985266_19c14545105dc96deb0e5f3cc199f42f_rle_crop_4059635201_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f66d816ee076c8de728410740c1a1fa1_64203265.png imagette292053891764895051 29205391 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397994434: '1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716062_0.png', 1397994455: '1764894808_3722634_1397981549_114658966e83bc7af40710f326a9730a_rle_crop_4059607627_0.png', 1397994454: '1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607612_0.png', 1397994453: '1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716191_0.png', 1397994452: '1764894808_3722634_1397984412_0ab16534245f3c6ec00b95742c26bb2d_rle_crop_4059716149_0.png', 1397994439: '1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716136_0.png', 1397994438: '1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716135_0.png', 1397994437: '1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716134_0.png', 1397994436: '1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716124_0.png', 1397994435: '1764894788_3722286_1397981888_4ee0cae8e6bcc4122091c1021a2abe8b_rle_crop_4059716107_0.png', 1397984527: '1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607612_0.png', 1397994433: '1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716061_0.png', 1397994432: '1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716060_0.png', 1397994431: '1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716050_0.png', 1397994430: '1764894788_3722286_1397983168_4a952aff19f1b528f682e81afc1aafeb_rle_crop_4059715797_0.png', 1397986424: '1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619911_0.png', 1397986080: '1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620169_0.png', 1397986076: '1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620170_0.png', 1397986072: '1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620140_0.png', 1397984528: '1764892348_3621327_1397981549_114658966e83bc7af40710f326a9730a_rle_crop_4059607627_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b3f0b4f1f4f419dd3e599763060b2bce_23396157.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3169aa1df9109445be44100db43e984b_43836798.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3dc258dd0ccd68e4e060f8d9a5b0c76d_59014614.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3dc258dd0ccd68e4e060f8d9a5b0c76d_14842294.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3169aa1df9109445be44100db43e984b_46238826.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b3f0b4f1f4f419dd3e599763060b2bce_58849771.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c3fcd07cfe40a61b02c1b377600bdaba_77857133.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/95f82b34ac52fee8c95bbc4b52c3de10_97052952.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0241354d74e346fe60243d663a2b24b4_95923469.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0cc33fa4a8126a55634f18a16ee6a838_32919739.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3dc258dd0ccd68e4e060f8d9a5b0c76d_57056446.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c3fcd07cfe40a61b02c1b377600bdaba_27287654.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/95f82b34ac52fee8c95bbc4b52c3de10_17315450.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0241354d74e346fe60243d663a2b24b4_49144151.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0cc33fa4a8126a55634f18a16ee6a838_97164376.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6e2c31dedb318088d7daa511220023ee_73926422.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3e8eb6f55901dc33f96bf4bedd2feb81_47503544.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e8e59dd4fd3c8353655891dd2485440a_69418679.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/eda460a300f8db15855de9b3b0f8c7cc_18218371.png change filename to text .imagette292053911764895052/ imagette292053911764895052/1764894788_3722286_1397983168_4a952aff19f1b528f682e81afc1aafeb_rle_crop_4059715797_0.png.png imagette292053911764895052/1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716060_0.png.png imagette292053911764895052/1764894808_3722634_1397984412_0ab16534245f3c6ec00b95742c26bb2d_rle_crop_4059716149_0.png.png imagette292053911764895052/1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716191_0.png.png imagette292053911764895052/1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716135_0.png.png imagette292053911764895052/1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716124_0.png.png imagette292053911764895052/1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716061_0.png.png imagette292053911764895052/1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716134_0.png.png imagette292053911764895052/1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620170_0.png.png imagette292053911764895052/1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620140_0.png.png imagette292053911764895052/1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607612_0.png.png imagette292053911764895052/1764894788_3722286_1397981873_28d4c8cf71cdb32dd9f318308773487b_rle_crop_4059716136_0.png.png imagette292053911764895052/1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607612_0.png.png imagette292053911764895052/1764894788_3722286_1397983056_0b3d032cf9914e324ba386afac8730ca_rle_crop_4059716062_0.png.png imagette292053911764895052/1764892348_3621327_1397981549_114658966e83bc7af40710f326a9730a_rle_crop_4059607627_0.png.png imagette292053911764895052/1764894808_3722634_1397981549_114658966e83bc7af40710f326a9730a_rle_crop_4059607627_0.png.png imagette292053911764895052/1764894788_3722286_1397981888_4ee0cae8e6bcc4122091c1021a2abe8b_rle_crop_4059716107_0.png.png imagette292053911764895052/1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619911_0.png.png imagette292053911764895052/1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716050_0.png.png imagette292053911764895052/1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620169_0.png.png imagette292053921764895053/ imagette292053931764895053/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3169aa1df9109445be44100db43e984b_7110232.png imagette292053911764895052 29205392 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292053921764895053 29205393 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292053931764895053 29205394 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397986428: '1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619915_0.png', 1397994444: '1764894788_3722286_1397981888_4ee0cae8e6bcc4122091c1021a2abe8b_rle_crop_4059716113_0.png', 1397994443: '1764894788_3722286_1397983168_4a952aff19f1b528f682e81afc1aafeb_rle_crop_4059715803_0.png', 1397994177: '1764894665_3718895_1397983381_0bba31fe68329c58ee501a32d7aaa10b_rle_crop_4059608059_0.png', 1397994175: '1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608030_0.png', 1397994173: '1764894665_3718895_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608017_0.png', 1397994171: '1764894665_3718895_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608014_0.png', 1397987072: '1764893106_3656593_1397985247_0dd4d65e1ac996add18c515d0b558b64_rle_crop_4059635307_0.png', 1397986429: '1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619914_0.png', 1397984657: '1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607887_0.png', 1397986427: '1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619898_0.png', 1397986139: '1764892826_3645476_1397985040_c9f67b47db838eaf7efedd89ca2ec7c7_rle_crop_4059620197_0.png', 1397986135: '1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620173_0.png', 1397985099: '1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607887_0.png', 1397984935: '1764892467_3625033_1397983381_0bba31fe68329c58ee501a32d7aaa10b_rle_crop_4059608059_0.png', 1397984934: '1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608030_0.png', 1397984933: '1764892467_3625033_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608014_0.png', 1397984932: '1764892467_3625033_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608017_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a98cf306b3bc8284a55f617511e4a98c_13581392.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4dcd94dca90e8b3b1884237d1f643981_80263471.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4dcd94dca90e8b3b1884237d1f643981_23068467.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ec3013d5ebddbd9036ebb8fb71e5cb4f_45397514.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b2ee970bb747422a205c125b8b52f57e_37004358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/480647e86a88e5bf7789e7e9fcb4d6e4_25124806.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e7fed3aa10248a8702f8af36945f48f2_84874260.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/159b143d735a4d680bf980c73eedae00_95796973.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/32808b9ab08d59d8245b8861601c700e_90616180.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/35b8359e929e85ea7a9b6b8148162e70_81545166.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/739f874457a584f0d0578e891cb1e07a_46658526.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7713c17c87a7c0ed72fa63a238f8ed9f_36606656.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6b4cf8056847181475d0eaf6fba9cfcc_64112983.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/35b8359e929e85ea7a9b6b8148162e70_30557771.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ec3013d5ebddbd9036ebb8fb71e5cb4f_80324696.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b2ee970bb747422a205c125b8b52f57e_12175142.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e7fed3aa10248a8702f8af36945f48f2_29565145.png change filename to text .imagette292053941764895053/ imagette292053941764895053/1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619898_0.png.png imagette292053941764895053/1764894665_3718895_1397983381_0bba31fe68329c58ee501a32d7aaa10b_rle_crop_4059608059_0.png.png imagette292053941764895053/1764894788_3722286_1397981888_4ee0cae8e6bcc4122091c1021a2abe8b_rle_crop_4059716113_0.png.png imagette292053941764895053/1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607887_0.png.png imagette292053941764895053/1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619915_0.png.png imagette292053941764895053/1764894665_3718895_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608014_0.png.png imagette292053941764895053/1764892467_3625033_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608017_0.png.png imagette292053941764895053/1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607887_0.png.png imagette292053941764895053/1764892826_3645476_1397985040_c9f67b47db838eaf7efedd89ca2ec7c7_rle_crop_4059620197_0.png.png imagette292053941764895053/1764892826_3645476_1397985117_3edab920edde5e874d3c0c02a3223c2b_rle_crop_4059620173_0.png.png imagette292053941764895053/1764893106_3656593_1397985247_0dd4d65e1ac996add18c515d0b558b64_rle_crop_4059635307_0.png.png imagette292053941764895053/1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608030_0.png.png imagette292053941764895053/1764892467_3625033_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608014_0.png.png imagette292053941764895053/1764892467_3625033_1397983381_0bba31fe68329c58ee501a32d7aaa10b_rle_crop_4059608059_0.png.png imagette292053941764895053/1764892865_3646639_1397981257_45add5fb2beff9131ad48a4980a42391_rle_crop_4059619914_0.png.png imagette292053941764895053/1764894665_3718895_1397983744_c0c01064a006340c5bb1c2f28c737ba6_rle_crop_4059608017_0.png.png imagette292053941764895053/1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608030_0.png.png imagette292053941764895053/1764894788_3722286_1397983168_4a952aff19f1b528f682e81afc1aafeb_rle_crop_4059715803_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/480647e86a88e5bf7789e7e9fcb4d6e4_87792018.png imagette292053941764895053 29205387 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397994424: '1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716055_0.png', 1397994451: '1764894808_3722634_1397981506_6c60840ed35cef18654a6aab93ef5922_rle_crop_4059607647_0.png', 1397994450: '1764894808_3722634_1397981542_b6c76721d9305bd846d66cbb6957e435_rle_crop_4059607638_0.png', 1397994449: '1764894808_3722634_1397983314_6ffdf0f965abfc60a10d2cb8ed8df659_rle_crop_4059716169_0.png', 1397994447: '1764894808_3722634_1397984007_2c1fad0fc78f1e6ad5ce8f9bc6293d85_rle_crop_4059716160_0.png', 1397994429: '1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716125_0.png', 1397994428: '1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716129_0.png', 1397994427: '1764894788_3722286_1397982950_4fefc850529ba38c1068e8a166df010b_rle_crop_4059716073_0.png', 1397994425: '1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716051_0.png', 1397984524: '1764892348_3621327_1397981542_b6c76721d9305bd846d66cbb6957e435_rle_crop_4059607638_0.png', 1397994146: '1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608021_0.png', 1397987070: '1764893106_3656593_1397985247_0dd4d65e1ac996add18c515d0b558b64_rle_crop_4059635300_0.png', 1397987062: '1764893067_3654636_1397985263_c9c765d0beec94cb5e5000b662133daf_rle_crop_4059635217_0.png', 1397986044: '1764892826_3645476_1397985143_9f93cfab1f048e32d5ce90a975047e41_rle_crop_4059620155_0.png', 1397985244: '1764892586_3632135_1397983880_802866ab6421ce1f5aa75e4faa445b53_rle_crop_4059616732_0.png', 1397984930: '1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608021_0.png', 1397984525: '1764892348_3621327_1397981506_6c60840ed35cef18654a6aab93ef5922_rle_crop_4059607647_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0e7af3b20a558605c0f92fbe28353c86_68318070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/db77e5d6c6b62d79bcd36a65877efd12_92422671.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4b97f576b61fc0d98291980a3aa15710_67600192.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/db77e5d6c6b62d79bcd36a65877efd12_11660038.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4b97f576b61fc0d98291980a3aa15710_38369499.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/38c3dd9bb7856e26b8f453a492f92390_3794098.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0e7af3b20a558605c0f92fbe28353c86_78449328.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4aba632caa589f7636e46a34097831c7_12749088.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/38c3dd9bb7856e26b8f453a492f92390_17109576.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/4b97f576b61fc0d98291980a3aa15710_63184319.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0408c06875439c92ef4f44a595f1f040_38800784.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/50edf9cc36139df46946849d7f61f825_38959392.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a1dcaf060d3131d39856f5a090525d7c_35750351.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e55de79bfc58e92926931ffba51a8c92_54612153.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e9ce8818a11ccbe8a9ec6ef9cddfd9ac_69671242.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0408c06875439c92ef4f44a595f1f040_37291382.png change filename to text .imagette292053871764895055/ imagette292053871764895055/1764892467_3625033_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608021_0.png.png imagette292053871764895055/1764892348_3621327_1397981506_6c60840ed35cef18654a6aab93ef5922_rle_crop_4059607647_0.png.png imagette292053871764895055/1764892348_3621327_1397981542_b6c76721d9305bd846d66cbb6957e435_rle_crop_4059607638_0.png.png imagette292053871764895055/1764894808_3722634_1397984007_2c1fad0fc78f1e6ad5ce8f9bc6293d85_rle_crop_4059716160_0.png.png imagette292053871764895055/1764894665_3718895_1397983601_4e9cf98bd102bc040fd2751ce83c593b_rle_crop_4059608021_0.png.png imagette292053871764895055/1764894808_3722634_1397981506_6c60840ed35cef18654a6aab93ef5922_rle_crop_4059607647_0.png.png imagette292053871764895055/1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716051_0.png.png imagette292053871764895055/1764892826_3645476_1397985143_9f93cfab1f048e32d5ce90a975047e41_rle_crop_4059620155_0.png.png imagette292053871764895055/1764893106_3656593_1397985247_0dd4d65e1ac996add18c515d0b558b64_rle_crop_4059635300_0.png.png imagette292053871764895055/1764893067_3654636_1397985263_c9c765d0beec94cb5e5000b662133daf_rle_crop_4059635217_0.png.png imagette292053871764895055/1764894788_3722286_1397983072_d46f6c313c37aa4a25e91e4e1228f611_rle_crop_4059716055_0.png.png imagette292053871764895055/1764894788_3722286_1397982950_4fefc850529ba38c1068e8a166df010b_rle_crop_4059716073_0.png.png imagette292053871764895055/1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716129_0.png.png imagette292053871764895055/1764894808_3722634_1397981542_b6c76721d9305bd846d66cbb6957e435_rle_crop_4059607638_0.png.png imagette292053871764895055/1764894808_3722634_1397983314_6ffdf0f965abfc60a10d2cb8ed8df659_rle_crop_4059716169_0.png.png imagette292053871764895055/1764892586_3632135_1397983880_802866ab6421ce1f5aa75e4faa445b53_rle_crop_4059616732_0.png.png imagette292053871764895055/1764894788_3722286_1397981885_9a1cfe8c73b3d0a55fc73cf67a8a86a8_rle_crop_4059716125_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/db77e5d6c6b62d79bcd36a65877efd12_93236015.png imagette292053871764895055 29205388 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397984522: '1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607619_0.png', 1397984640: '1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607883_0.png', 1397985079: '1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607883_0.png', 1397986012: '1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620143_0.png', 1397986016: '1764892826_3645476_1397985004_d6a23952a12f6352fa47305c8e3c7938_rle_crop_4059620209_0.png', 1397986420: '1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619893_0.png', 1397986421: '1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619939_0.png', 1397987059: '1764893067_3654636_1397985268_ae53b9ddc7cfd577d18285820870197d_rle_crop_4059635197_0.png', 1397987060: '1764893067_3654636_1397985263_c9c765d0beec94cb5e5000b662133daf_rle_crop_4059635221_0.png', 1397987069: '1764893106_3656593_1397985271_0bd4fcbed05cea595ba1e4fa72845a08_rle_crop_4059635294_0.png', 1397994126: '1764894665_3718895_1397983985_b9ae1648bbbed2146dff7fc7a3ea80d4_rle_crop_4059707384_0.png', 1397994423: '1764894788_3722286_1397982950_4fefc850529ba38c1068e8a166df010b_rle_crop_4059716071_0.png', 1397994445: '1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716198_0.png', 1397994446: '1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/24fa86bad4857cb499c6567a0ffaf5f1_77042225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a7003e48481b06502255d49d982dc8b8_44153062.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a7003e48481b06502255d49d982dc8b8_61614152.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e8da4b54e0cb8b2a3ce39ccb413feb97_1607734.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/dd541b8c596e50b1000c8e3846357b61_20274235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/889ae6e41a8b84d2929fd2d1bf89647a_55204226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/80c25adf2d5aa342041cff53a7ae09fb_82373235.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/54c58e9ab81746f7bca31c29e302bd14_55756047.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c88728dc8a43b11e4bf89c8146db0be3_3683194.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e7e274f1b6cbdcac22a36c3570fa6bfe_86560815.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a1728b1b3f4906b052f92b7d34837036_22680299.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c4f692171f2f2ab9ef6e7b1d532cf204_62344214.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/24fa86bad4857cb499c6567a0ffaf5f1_97596249.png change filename to text .imagette292053881764895056/ imagette292053881764895056/1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620143_0.png.png imagette292053881764895056/1764892865_3646639_1397981275_5c1f2ce0b53975955dc0fde5920cc808_rle_crop_4059619893_0.png.png imagette292053881764895056/1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607619_0.png.png imagette292053881764895056/1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607883_0.png.png imagette292053881764895056/1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607883_0.png.png imagette292053881764895056/1764893106_3656593_1397985271_0bd4fcbed05cea595ba1e4fa72845a08_rle_crop_4059635294_0.png.png imagette292053881764895056/1764894665_3718895_1397983985_b9ae1648bbbed2146dff7fc7a3ea80d4_rle_crop_4059707384_0.png.png imagette292053881764895056/1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716198_0.png.png imagette292053881764895056/1764893067_3654636_1397985263_c9c765d0beec94cb5e5000b662133daf_rle_crop_4059635221_0.png.png imagette292053881764895056/1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607619_0.png.png imagette292053881764895056/1764893067_3654636_1397985268_ae53b9ddc7cfd577d18285820870197d_rle_crop_4059635197_0.png.png imagette292053881764895056/1764892826_3645476_1397985004_d6a23952a12f6352fa47305c8e3c7938_rle_crop_4059620209_0.png.png imagette292053881764895056/1764894788_3722286_1397982950_4fefc850529ba38c1068e8a166df010b_rle_crop_4059716071_0.png.png imagette292053881764895056/1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619939_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/24fa86bad4857cb499c6567a0ffaf5f1_88670592.png imagette292053881764895056 29205390 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397984530: '1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607617_0.png', 1397984649: '1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607884_0.png', 1397984931: '1764892467_3625033_1397983395_0c69539c6b9201158a9f288bde7c1456_rle_crop_4059608046_0.png', 1397985088: '1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607884_0.png', 1397986106: '1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620149_0.png', 1397986111: '1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620145_0.png', 1397986425: '1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619932_0.png', 1397986426: '1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619934_0.png', 1397987064: '1764893067_3654636_1397985266_19c14545105dc96deb0e5f3cc199f42f_rle_crop_4059635210_0.png', 1397994156: '1764894665_3718895_1397983395_0c69539c6b9201158a9f288bde7c1456_rle_crop_4059608046_0.png', 1397994441: '1764894788_3722286_1397983204_37bdfd40c86c6ddc0915a26e219293d9_rle_crop_4059715787_0.png', 1397994442: '1764894788_3722286_1397981890_40ab7ace7dbe110bf9ee264bd2fcfc7e_rle_crop_4059716097_0.png', 1397994456: '1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716196_0.png', 1397994457: '1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607617_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/03bee676e33af23fd00c538cf5b17a57_24756966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e7dbefbcb70e1cab7ec79aae1c1b0fa3_63192567.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/300ea948e5f0ab9648bcf65268cbbbdf_33609246.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e7dbefbcb70e1cab7ec79aae1c1b0fa3_91957720.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/079663f15780c844881d81a8021468e8_77703523.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/89896795c48f2e3feb20ab05cfdbf724_3436142.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f6849e10cb4ce4cb98fe6eb5ff039c2a_69054035.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/b0f8544f9a8f455024f5d73e8bd025f6_75569857.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/9de80c1950ea2308cb851eab4816009c_91194580.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/300ea948e5f0ab9648bcf65268cbbbdf_2873469.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/aabb251f89d4b5c66b042dd24d39d4a1_94487254.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/aabb251f89d4b5c66b042dd24d39d4a1_48333920.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/03bee676e33af23fd00c538cf5b17a57_40262174.png change filename to text .imagette292053901764895057/ imagette292053901764895057/1764892467_3625033_1397983395_0c69539c6b9201158a9f288bde7c1456_rle_crop_4059608046_0.png.png imagette292053901764895057/1764892348_3621327_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607617_0.png.png imagette292053901764895057/1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620149_0.png.png imagette292053901764895057/1764893067_3654636_1397985266_19c14545105dc96deb0e5f3cc199f42f_rle_crop_4059635210_0.png.png imagette292053901764895057/1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619932_0.png.png imagette292053901764895057/1764894665_3718895_1397983395_0c69539c6b9201158a9f288bde7c1456_rle_crop_4059608046_0.png.png imagette292053901764895057/1764892865_3646639_1397981253_2586f649acd38f792d51afdc952ecf12_rle_crop_4059619934_0.png.png imagette292053901764895057/1764894788_3722286_1397981890_40ab7ace7dbe110bf9ee264bd2fcfc7e_rle_crop_4059716097_0.png.png imagette292053901764895057/1764892525_3628683_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607884_0.png.png imagette292053901764895057/1764892826_3645476_1397985249_7c1fb52ec99b96221d0267cdbaddfec9_rle_crop_4059620145_0.png.png imagette292053901764895057/1764894808_3722634_1397983271_4245ce16468d317802f2cc9a263a562d_rle_crop_4059716196_0.png.png imagette292053901764895057/1764894788_3722286_1397983204_37bdfd40c86c6ddc0915a26e219293d9_rle_crop_4059715787_0.png.png imagette292053901764895057/1764894808_3722634_1397981895_fbd392a1f92a304cc208110de44f545f_rle_crop_4059607617_0.png.png imagette292053901764895057/1764892408_3623042_1397981272_70a787abc0f3fb4caa85da2464adabea_rle_crop_4059607884_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/03bee676e33af23fd00c538cf5b17a57_38124928.png imagette292053901764895057 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29205333 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29205395,29205396,29205397,29205398,29205399,29205400,29205401,29205402,29205403,29205404,29205405,29205406?tags=environnement,papier,mal_croppe,kraft,Carton_gris,Teint_Dans_La_Masse,autre_refus,Carton_brun,cartonnette,metal,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1397995711] : ('0.035921190619032206',) no score found for photo 1397995711 We are sending mail with results at report@fotonower.com refus_total : 0.035921190619032206 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205333 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_P29205333_05-12-2025_01_37_31.pdf results_Auto_P29205333_05-12-2025_01_37_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.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','29205333','results_Auto_P29205333_05-12-2025_01_37_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf','pdf','','0.19','0.035921190619032206') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29205333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397995711] map_info['map_portfolio_photo'] : {29205333: [1397995711, 1397985271, 1397985268, 1397985266, 1397985263, 1397985249, 1397985247, 1397985145, 1397985143, 1397985117, 1397985077, 1397985040, 1397985004, 1397984966, 1397984689, 1397984505, 1397984413, 1397984412, 1397984007, 1397983985, 1397983982, 1397983980, 1397983889, 1397983880, 1397983824, 1397983744, 1397983601, 1397983416, 1397983395, 1397983381, 1397983314, 1397983303, 1397983271, 1397983238, 1397983204, 1397983168, 1397983072, 1397983056, 1397982950, 1397982811, 1397982712, 1397982599, 1397981895, 1397981893, 1397981890, 1397981888, 1397981885, 1397981873, 1397981562, 1397981549, 1397981542, 1397981506, 1397981496, 1397981275, 1397981274, 1397981273, 1397981272, 1397981259, 1397981257, 1397981255, 1397981253]} final : False mtd_id 4302 list_pids : [1397995711] 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, '4187927') ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '29205333', '1397995711', None, None, None, None, None, '4187927')] time used for this insertion : 0.012934446334838867 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.12039303779602 time spend to save output : 0.013150215148925781 total time spend for step 4 : 9.133543252944946 step5:split_time_score Fri Dec 5 01:37:39 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 : ['29205333'] 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 : [('29205333',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29205333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397995711: {'path': 'temp/1764895050_2982370_1397995711_3a95c633cd149647e3ca4f87b9619f30.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 = 29205333; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29205333 group by h (('00', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29205333 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 (29205333) 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 (29205333) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05122025 29205333 Nombre de photos uploadées : 61 / 23040 (0%) 05122025 29205333 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 05122025 29205333 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1397981259, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c7aec256791a4e8c6482529a95bfabc7.jpg', 'username': None, 'uploaded_at': 1764891967, 'text': 'image_05122025_00_45_04_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397981257, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/45add5fb2beff9131ad48a4980a42391.jpg', 'username': None, 'uploaded_at': 1764891967, 'text': 'image_05122025_00_45_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397981255, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/396396530ad6f32d35764e6f32d18337.jpg', 'username': None, 'uploaded_at': 1764891967, 'text': 'image_05122025_00_45_25_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397981253, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/2586f649acd38f792d51afdc952ecf12.jpg', 'username': None, 'uploaded_at': 1764891967, 'text': 'image_05122025_00_45_34_009125m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028967857360839844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29205333, '2025-12-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2697308,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24909234046936035 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= 2697308 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704300, 'mtr_portfolio_id': 29203465, 'dashboard_result_id': 18095553, '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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704300, 'mtr_portfolio_id': 29204100, 'dashboard_result_id': 18095554, '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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704300, 'mtr_portfolio_id': 29204816, 'dashboard_result_id': 18095555, '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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704300, 'mtr_portfolio_id': 29205333, 'dashboard_result_id': 18095556, '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_P29205333_05-12-2025_00_59_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704300, 'mtr_portfolio_id': 29206499, 'dashboard_result_id': 18095557, '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_P29206499_05-12-2025_01_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29206501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206512, '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 = 29203465 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': 4187741, 'mtr_portfolio_id': 29203465, 'created_at': datetime.datetime(2025, 12, 5, 0, 20, 58), 'result': '0.04651784933153334', 'result_long': None, 'result_double': None}] Qualite : 0.04651784933153334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29203465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29203465 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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}" where mtr_portfolio_id = 29203465 and dashboard_run_id = 2704300 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`=29203465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18095553, 0.04651784933153334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, '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 = 29204100 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': 4187807, 'mtr_portfolio_id': 29204100, 'created_at': datetime.datetime(2025, 12, 5, 0, 34, 30), 'result': '0.05793572545112421', 'result_long': None, 'result_double': None}] Qualite : 0.05793572545112421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204100 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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}" where mtr_portfolio_id = 29204100 and dashboard_run_id = 2704300 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`=29204100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18095554, 0.05793572545112421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, '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 = 29204816 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': 4187857, 'mtr_portfolio_id': 29204816, 'created_at': datetime.datetime(2025, 12, 5, 0, 48, 57), 'result': '0.06523619095960073', 'result_long': None, 'result_double': None}] Qualite : 0.06523619095960073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204816 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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}" where mtr_portfolio_id = 29204816 and dashboard_run_id = 2704300 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`=29204816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18095555, 0.06523619095960073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, '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 = 29205333 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': 4187927, 'mtr_portfolio_id': 29205333, 'created_at': datetime.datetime(2025, 12, 5, 1, 37, 30), 'result': '0.035921190619032206', 'result_long': None, 'result_double': None}] Qualite : 0.035921190619032206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29205333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29205333 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_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}" where mtr_portfolio_id = 29205333 and dashboard_run_id = 2704298 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`=29205333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18095556, 0.035921190619032206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, '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 = 29206499 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29206499 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29206499 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29206499 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29206499 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29206499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206499_05-12-2025_01_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29206499 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_P29206499_05-12-2025_01_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29206501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206512, 'pht': 3726}}" where mtr_portfolio_id = 29206499 and dashboard_run_id = 2704298 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29203465,29204100,29204816,29205333,29206499) result : ((1397959937,), (1397959974,), (1397960021,), (1397960092,), (1397960481,), (1397960521,), (1397960553,), (1397960586,), (1397961101,), (1397961167,), (1397961232,), (1397962113,), (1397962192,), (1397962286,), (1397962376,), (1397962475,), (1397963967,), (1397964076,), (1397964165,), (1397964258,), (1397964358,), (1397964394,), (1397964744,), (1397964772,), (1397964812,), (1397964911,), (1397965998,), (1397966063,), (1397966185,), (1397966241,), (1397966925,), (1397966997,), (1397967080,), (1397967152,), (1397967591,), (1397967627,), (1397967667,), (1397967701,), (1397967707,), (1397967711,), (1397967726,), (1397967764,), (1397967950,), (1397967985,), (1397968021,), (1397968057,), (1397968512,), (1397968551,), (1397968590,), (1397969197,), (1397969245,), (1397969714,), (1397969748,), (1397970267,), (1397970299,), (1397970332,), (1397970910,), (1397970769,), (1397970805,), (1397970839,), (1397970875,), (1397971205,), (1397971206,), (1397971207,), (1397971282,), (1397971370,), (1397971408,), (1397971730,), (1397971776,), (1397971886,), (1397972014,), (1397972851,), (1397972853,), (1397972855,), (1397972857,), (1397972860,), (1397972861,), (1397973076,), (1397973078,), (1397973177,), (1397973179,), (1397973184,), (1397973288,), (1397973336,), (1397973357,), (1397973445,), (1397973531,), (1397973629,), (1397973718,), (1397973811,), (1397973900,), (1397974284,), (1397974319,), (1397974652,), (1397974654,), (1397974656,), (1397974658,), (1397975085,), (1397975094,), (1397975117,), (1397975118,), (1397975156,), (1397975158,), (1397975169,), (1397975171,), (1397975173,), (1397975269,), (1397975304,), (1397975311,), (1397975312,), (1397975343,), (1397975358,), (1397975552,), (1397975556,), (1397975558,), (1397975560,), (1397975563,), (1397975727,), (1397975730,), (1397975731,), (1397975732,), (1397975876,), (1397975904,), (1397975917,), (1397975920,), (1397975944,), (1397975950,), (1397975954,), (1397975955,), (1397975959,), (1397975965,), (1397977062,), (1397977576,), (1397977577,), (1397977578,), (1397977644,), (1397977676,), (1397977678,), (1397977881,), (1397977882,), (1397977042,), (1397977044,), (1397977046,), (1397977048,), (1397977049,), (1397977157,), (1397977177,), (1397977207,), (1397977311,), (1397977453,), (1397977557,), (1397977759,), (1397977760,), (1397977762,), (1397977763,), (1397977770,), (1397977772,), (1397977774,), (1397977775,), (1397977812,), (1397977815,), (1397978023,), (1397978061,), (1397978096,), (1397978133,), (1397978293,), (1397978298,), (1397978304,), (1397978332,), (1397978337,), (1397978370,), (1397978373,), (1397978375,), (1397978377,), (1397978379,), (1397978388,), (1397978390,), (1397978391,), (1397978392,), (1397978394,), (1397978396,), (1397978410,), (1397978412,), (1397978414,), (1397978416,), (1397978419,), (1397978422,), (1397978650,), (1397978709,), (1397978748,), (1397978763,), (1397978766,), (1397978771,), (1397978837,), (1397978838,), (1397978839,), (1397978847,), (1397978909,), (1397978927,), (1397978963,), (1397978986,), (1397979067,), (1397979167,), (1397979882,), (1397979991,), (1397980105,), (1397980152,), (1397980399,), (1397980401,), (1397980442,), (1397980898,), (1397980899,), (1397980900,), (1397980964,), (1397981145,), (1397981151,), (1397981166,), (1397981211,), (1397981213,), (1397981215,), (1397981217,), (1397981221,), (1397981224,), (1397981261,), (1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,), (1397987044,), (1397989477,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05122025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29205333]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397995711] map_info['map_portfolio_photo'] : {29205333: [1397995711, 1397985271, 1397985268, 1397985266, 1397985263, 1397985249, 1397985247, 1397985145, 1397985143, 1397985117, 1397985077, 1397985040, 1397985004, 1397984966, 1397984689, 1397984505, 1397984413, 1397984412, 1397984007, 1397983985, 1397983982, 1397983980, 1397983889, 1397983880, 1397983824, 1397983744, 1397983601, 1397983416, 1397983395, 1397983381, 1397983314, 1397983303, 1397983271, 1397983238, 1397983204, 1397983168, 1397983072, 1397983056, 1397982950, 1397982811, 1397982712, 1397982599, 1397981895, 1397981893, 1397981890, 1397981888, 1397981885, 1397981873, 1397981562, 1397981549, 1397981542, 1397981506, 1397981496, 1397981275, 1397981274, 1397981273, 1397981272, 1397981259, 1397981257, 1397981255, 1397981253]} final : True mtd_id 4302 list_pids : [1397995711] Looping around the photos to save general results len do output : 1 /29205333Didn'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, '4187927') ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29205333', 'None', None, None, None, None, '4187927'), ('4302', '29205333', '1397995711', None, None, None, None, None, '4187927')] time used for this insertion : 0.014419317245483398 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6785280704498291 time spend to save output : 0.014612913131713867 total time spend for step 5 : 0.693140983581543 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 (4187927) 2.16user 2.95system 0:15.61elapsed 32%CPU (0avgtext+0avgdata 143612maxresident)k 142928inputs+13168outputs (585major+78736minor)pagefaults 0swaps