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 : 2560255 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 (4231891) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4231891) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29450996 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4231891'] with mtr_portfolio_ids : ['29450996'] and first list_photo_ids : [] new path : /proc/2560255/ Name: python3 Umask: 0002 State: R (running) Tgid: 2560255 Ngid: 0 Pid: 2560255 PPid: 2560254 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2560255 NSpid: 2560255 NSpgid: 2559137 NSsid: 2559137 VmPeak: 1113372 kB VmSize: 1113372 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105176 kB VmRSS: 105176 kB RssAnon: 66312 kB RssFile: 38864 kB RssShmem: 0 kB VmData: 872100 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: 51 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2560255', 'Ngid': '0', 'Pid': '2560255', 'PPid': '2560254', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2560255', 'NSpid': '2560255', 'NSpgid': '2559137', 'NSsid': '2559137', 'VmPeak': '1113372 kB', 'VmSize': '1113372 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105176 kB', 'VmRSS': '105176 kB', 'RssAnon': '66312 kB', 'RssFile': '38864 kB', 'RssShmem': '0 kB', 'VmData': '872100 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': '51', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2560255', '1113372', '0', '1113372', '872100', '105176', b'', 'marlene', '4231891') 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 (29450996) 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 (4231891 ) ) 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 (29450996) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399573463, 'portfolio_id': 29450996}, {'photo_id': 1399573462, 'portfolio_id': 29450996}, {'photo_id': 1399573461, 'portfolio_id': 29450996}, {'photo_id': 1399573460, 'portfolio_id': 29450996}, {'photo_id': 1399573451, 'portfolio_id': 29450996}, {'photo_id': 1399573448, 'portfolio_id': 29450996}, {'photo_id': 1399573447, 'portfolio_id': 29450996}, {'photo_id': 1399573446, 'portfolio_id': 29450996}, {'photo_id': 1399573445, 'portfolio_id': 29450996}, {'photo_id': 1399573413, 'portfolio_id': 29450996}, {'photo_id': 1399573412, 'portfolio_id': 29450996}, {'photo_id': 1399573411, 'portfolio_id': 29450996}, {'photo_id': 1399573398, 'portfolio_id': 29450996}, {'photo_id': 1399573396, 'portfolio_id': 29450996}, {'photo_id': 1399573394, 'portfolio_id': 29450996}, {'photo_id': 1399573393, 'portfolio_id': 29450996}, {'photo_id': 1399573390, 'portfolio_id': 29450996}, {'photo_id': 1399573389, 'portfolio_id': 29450996}, {'photo_id': 1399573358, 'portfolio_id': 29450996}, {'photo_id': 1399573357, 'portfolio_id': 29450996}, {'photo_id': 1399573356, 'portfolio_id': 29450996}, {'photo_id': 1399573355, 'portfolio_id': 29450996}, {'photo_id': 1399573341, 'portfolio_id': 29450996}, {'photo_id': 1399573340, 'portfolio_id': 29450996}, {'photo_id': 1399573339, 'portfolio_id': 29450996}, {'photo_id': 1399573313, 'portfolio_id': 29450996}, {'photo_id': 1399573310, 'portfolio_id': 29450996}, {'photo_id': 1399573307, 'portfolio_id': 29450996}, {'photo_id': 1399573306, 'portfolio_id': 29450996}, {'photo_id': 1399573305, 'portfolio_id': 29450996}, {'photo_id': 1399573304, 'portfolio_id': 29450996}, {'photo_id': 1399573292, 'portfolio_id': 29450996}, {'photo_id': 1399573290, 'portfolio_id': 29450996}, {'photo_id': 1399573289, 'portfolio_id': 29450996}, {'photo_id': 1399573288, 'portfolio_id': 29450996}, {'photo_id': 1399573286, 'portfolio_id': 29450996}, {'photo_id': 1399573268, 'portfolio_id': 29450996}, {'photo_id': 1399573265, 'portfolio_id': 29450996}, {'photo_id': 1399573264, 'portfolio_id': 29450996}, {'photo_id': 1399573263, 'portfolio_id': 29450996}, {'photo_id': 1399573262, 'portfolio_id': 29450996}, {'photo_id': 1399573242, 'portfolio_id': 29450996}, {'photo_id': 1399573239, 'portfolio_id': 29450996}, {'photo_id': 1399573237, 'portfolio_id': 29450996}, {'photo_id': 1399573236, 'portfolio_id': 29450996}, {'photo_id': 1399573235, 'portfolio_id': 29450996}, {'photo_id': 1399573234, 'portfolio_id': 29450996}, {'photo_id': 1399573198, 'portfolio_id': 29450996}, {'photo_id': 1399573197, 'portfolio_id': 29450996}, {'photo_id': 1399573196, 'portfolio_id': 29450996}, {'photo_id': 1399573195, 'portfolio_id': 29450996}, {'photo_id': 1399573183, 'portfolio_id': 29450996}, {'photo_id': 1399573182, 'portfolio_id': 29450996}, {'photo_id': 1399573181, 'portfolio_id': 29450996}, {'photo_id': 1399573180, 'portfolio_id': 29450996}] map_portfolio_id_photo_id: {29450996: [1399573463, 1399573462, 1399573461, 1399573460, 1399573451, 1399573448, 1399573447, 1399573446, 1399573445, 1399573413, 1399573412, 1399573411, 1399573398, 1399573396, 1399573394, 1399573393, 1399573390, 1399573389, 1399573358, 1399573357, 1399573356, 1399573355, 1399573341, 1399573340, 1399573339, 1399573313, 1399573310, 1399573307, 1399573306, 1399573305, 1399573304, 1399573292, 1399573290, 1399573289, 1399573288, 1399573286, 1399573268, 1399573265, 1399573264, 1399573263, 1399573262, 1399573242, 1399573239, 1399573237, 1399573236, 1399573235, 1399573234, 1399573198, 1399573197, 1399573196, 1399573195, 1399573183, 1399573182, 1399573181, 1399573180]} ##### 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.020280838012695312 #### 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 Tue Dec 16 00:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29450996) 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 : 29450996 get user id for portfolio 29450996 get sub ptf for main ptf 29450996, type 3726 and hashtags ['cartonnette', 'flou', 'kraft', 'metal', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'mal_croppe', 'plastique', 'Carton_brun', 'environnement'] 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`=29450996 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','kraft','metal','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','mal_croppe','plastique','Carton_brun','environnement')) 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`=29450996 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','kraft','metal','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29450996, 'sub_port_id': 29451038, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073932, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29450996, 'sub_port_id': 29451039, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073933, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'plastique': {'main_port_id': 29450996, 'sub_port_id': 29451040, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073934, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'flou': {'main_port_id': 29450996, 'sub_port_id': 29451041, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073935, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'papier': {'main_port_id': 29450996, 'sub_port_id': 29451042, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073936, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'autre_refus': {'main_port_id': 29450996, 'sub_port_id': 29451043, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073937, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'mal_croppe': {'main_port_id': 29450996, 'sub_port_id': 29451044, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073938, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'Carton_gris': {'main_port_id': 29450996, 'sub_port_id': 29451045, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073939, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'cartonnette': {'main_port_id': 29450996, 'sub_port_id': 29451046, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073940, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'kraft': {'main_port_id': 29450996, 'sub_port_id': 29451047, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073941, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'environnement': {'main_port_id': 29450996, 'sub_port_id': 29451048, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073942, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}, 'metal': {'main_port_id': 29450996, 'sub_port_id': 29451049, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073943, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29451038 , 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=29450996 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 (29451038) result : ((1399573334,), (1399573335,), (1399573336,), (1399573373,), (1399573374,), (1399573375,), (1399573383,), (1399573433,), (1399573443,), (1399573444,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451039 , 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=29450996 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 (29451039) result : ((1399573280,), (1399573365,), (1399573424,), (1399573425,), (1399573435,), (1399573436,), (1399573437,), (1399573438,), (1399573439,), (1399573465,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451040 , 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=29450996 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 (29451040) result : ((1399573337,), (1399573338,), (1399573376,), (1399573377,), (1399573384,), (1399573385,), (1399573434,), (1399573480,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451041 , 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=29450996 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 (29451041) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451042 , 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=29450996 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 (29451042) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451043 , 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=29450996 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 (29451043) result : ((1399573281,), (1399573366,), (1399573367,), (1399573382,), (1399573426,), (1399573427,), (1399573467,), (1399573468,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451044 , 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=29450996 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 (29451044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451045 , 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=29450996 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 (29451045) result : ((1399573282,), (1399573368,), (1399573479,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451046 , 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=29450996 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 (29451046) result : ((1399573331,), (1399573332,), (1399573333,), (1399573369,), (1399573370,), (1399573428,), (1399573429,), (1399573430,), (1399573431,), (1399573440,), (1399573441,), (1399573442,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451047 , 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=29450996 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 (29451047) result : ((1399573378,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451048 , 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=29450996 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 (29451048) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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 29451049 , 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=29450996 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 (29451049) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450996) result : ((1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) 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`=29450996 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','kraft','metal','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','mal_croppe','plastique','Carton_brun','environnement')) 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`=29450996 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','kraft','metal','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29450996, 'sub_port_id': 29451050, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073944, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29450996, 'sub_port_id': 29451051, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073945, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'plastique': {'main_port_id': 29450996, 'sub_port_id': 29451052, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073946, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'flou': {'main_port_id': 29450996, 'sub_port_id': 29451053, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073947, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'papier': {'main_port_id': 29450996, 'sub_port_id': 29451054, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073948, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'autre_refus': {'main_port_id': 29450996, 'sub_port_id': 29451055, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073949, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'mal_croppe': {'main_port_id': 29450996, 'sub_port_id': 29451056, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073950, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'Carton_gris': {'main_port_id': 29450996, 'sub_port_id': 29451057, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073951, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'cartonnette': {'main_port_id': 29450996, 'sub_port_id': 29451058, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073952, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'kraft': {'main_port_id': 29450996, 'sub_port_id': 29451059, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073953, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'environnement': {'main_port_id': 29450996, 'sub_port_id': 29451060, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073954, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}, 'metal': {'main_port_id': 29450996, 'sub_port_id': 29451061, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20073955, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 26, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451046 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451059,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451047 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451060,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451048 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451061,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451049 lien utilise dans velours : https://marlene.fotonower.com/velours/29451050,29451051,29451052,29451053,29451054,29451055,29451056,29451057,29451058,29451059,29451060,29451061?tags=Carton_brun,Teint_Dans_La_Masse,plastique,flou,papier,autre_refus,mal_croppe,Carton_gris,cartonnette,kraft,environnement,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29450996]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399573463, 1399573462, 1399573461, 1399573460] map_info['map_portfolio_photo'] : {29450996: [1399573463, 1399573462, 1399573461, 1399573460, 1399573451, 1399573448, 1399573447, 1399573446, 1399573445, 1399573413, 1399573412, 1399573411, 1399573398, 1399573396, 1399573394, 1399573393, 1399573390, 1399573389, 1399573358, 1399573357, 1399573356, 1399573355, 1399573341, 1399573340, 1399573339, 1399573313, 1399573310, 1399573307, 1399573306, 1399573305, 1399573304, 1399573292, 1399573290, 1399573289, 1399573288, 1399573286, 1399573268, 1399573265, 1399573264, 1399573263, 1399573262, 1399573242, 1399573239, 1399573237, 1399573236, 1399573235, 1399573234, 1399573198, 1399573197, 1399573196, 1399573195, 1399573183, 1399573182, 1399573181, 1399573180]} final : False mtd_id 4302 list_pids : [1399573463, 1399573462, 1399573461, 1399573460] Looping around the photos to save general results len do output : 1 /29450996. 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, '4231891') ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29450996', "{'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049}", None, None, None, None, '4231891'), ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891')] time used for this insertion : 0.01767134666442871 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8518316745758057 time spend to save output : 0.01793956756591797 total time spend for step 1 : 1.8697712421417236 step2:final Tue Dec 16 00:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29450996) 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 29450996 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399573183,1399573182,1399573181,1399573180,1399573198,1399573197,1399573196,1399573195,1399573242,1399573239,1399573237,1399573236,1399573235,1399573234,1399573268,1399573265,1399573264,1399573263,1399573262,1399573292,1399573290,1399573289,1399573288,1399573286,1399573313,1399573310,1399573307,1399573306,1399573305,1399573304,1399573341,1399573340,1399573339,1399573358,1399573357,1399573356,1399573355,1399573398,1399573396,1399573394,1399573393,1399573390,1399573389,1399573413,1399573412,1399573411,1399573451,1399573448,1399573447,1399573446,1399573445,1399573463,1399573462,1399573461,1399573460); 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([29450996]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} new output for save of step final : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} [1399573463, 1399573462, 1399573461, 1399573460] map_info['map_portfolio_photo'] : {29450996: [1399573463, 1399573462, 1399573461, 1399573460, 1399573451, 1399573448, 1399573447, 1399573446, 1399573445, 1399573413, 1399573412, 1399573411, 1399573398, 1399573396, 1399573394, 1399573393, 1399573390, 1399573389, 1399573358, 1399573357, 1399573356, 1399573355, 1399573341, 1399573340, 1399573339, 1399573313, 1399573310, 1399573307, 1399573306, 1399573305, 1399573304, 1399573292, 1399573290, 1399573289, 1399573288, 1399573286, 1399573268, 1399573265, 1399573264, 1399573263, 1399573262, 1399573242, 1399573239, 1399573237, 1399573236, 1399573235, 1399573234, 1399573198, 1399573197, 1399573196, 1399573195, 1399573183, 1399573182, 1399573181, 1399573180]} final : False mtd_id 4302 list_pids : [1399573463, 1399573462, 1399573461, 1399573460] Looping around the photos to save general results len do output : 4 /1399573463.Didn't retrieve data . /1399573462.Didn't retrieve data . /1399573461.Didn't retrieve data . /1399573460.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, '4231891') ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29450996', '1399573463', '0.06297502885400122', None, None, None, None, '4231891'), ('4302', '29450996', '1399573462', '0.06297502885400122', None, None, None, None, '4231891'), ('4302', '29450996', '1399573461', '0.06297502885400122', None, None, None, None, '4231891'), ('4302', '29450996', '1399573460', '0.06297502885400122', None, None, None, None, '4231891')] time used for this insertion : 0.017726421356201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0845193862915039 time spend to save output : 0.018021106719970703 total time spend for step 2 : 0.10254049301147461 step3:velours_tree Tue Dec 16 00:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29450996: [{'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049}]} input_args_next_step : {29450996: ()} output_args : {29450996: [{'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049}]} args : 29450996 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29450996) 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([29450996]) 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.2860982418060303 time spend to save output : 4.124641418457031e-05 total time spend for step 3 : 0.28613948822021484 step4:send_mail_cod Tue Dec 16 00:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} input_args_next_step : {1399573463: ()} output_args : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} args : 1399573463 depend.output_id : 0 input_args_next_step : {1399573463: ('0.06297502885400122',), 1399573462: ()} output_args : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} args : 1399573462 depend.output_id : 0 input_args_next_step : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ()} output_args : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} args : 1399573461 depend.output_id : 0 input_args_next_step : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ()} output_args : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',)} args : 1399573460 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29450996: [{'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049}]} input_args_next_step : {1399573463: ('0.06297502885400122',), 1399573462: ('0.06297502885400122',), 1399573461: ('0.06297502885400122',), 1399573460: ('0.06297502885400122',), 29450996: ()} output_args : {29450996: [{'Carton_brun': 29451038, 'Teint_Dans_La_Masse': 29451039, 'plastique': 29451040, 'flou': 29451041, 'papier': 29451042, 'autre_refus': 29451043, 'mal_croppe': 29451044, 'Carton_gris': 29451045, 'cartonnette': 29451046, 'kraft': 29451047, 'environnement': 29451048, 'metal': 29451049}]} args : 29450996 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 :5, first value : ('0.06297502885400122',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29450996) 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 (1399573463,1399573462,1399573461,1399573460) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399573460 begin to download photo : 1399573461 begin to download photo : 1399573462 begin to download photo : 1399573463 download finish for photo 1399573461 download finish for photo 1399573460 download finish for photo 1399573462 download finish for photo 1399573463 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P29450996_16-12-2025_00_28_59.pdf 29451040 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=29451040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573337: '1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382139_0.png', 1399573338: '1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382142_0.png', 1399573376: '1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388971_0.png', 1399573377: '1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389010_0.png', 1399573384: '1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389084_0.png', 1399573385: '1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389098_0.png', 1399573434: '1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389766_0.png', 1399573480: '1765841246_2955135_1399573448_b83fe3dcf8ea2f2fe48a7d3c06b7393c_rle_crop_4071390112_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d1b08b022878cf3ed549f49a34f29014_2724933.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/2e988c21a34e947775dabae5edceadfa_50647845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b49988228bd388aacb06c4bd7268f25a_52449866.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/be4c07e4b6be24b3a56afce5a9ba760c_68830766.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5f9ececd4088ed29862e5e4bdc4dc25b_40429634.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/aae9e24f7b3f605982dbb0e2888de696_76529036.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/603fbabff09fc03caa5545a73da10d21_47740294.png change filename to text .imagette294510401765841339/ imagette294510401765841339/1765841246_2955135_1399573448_b83fe3dcf8ea2f2fe48a7d3c06b7393c_rle_crop_4071390112_0.png.png imagette294510401765841339/1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389098_0.png.png imagette294510401765841339/1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389084_0.png.png imagette294510401765841339/1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389010_0.png.png imagette294510401765841339/1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382139_0.png.png imagette294510401765841339/1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382142_0.png.png imagette294510401765841339/1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388971_0.png.png imagette294510401765841339/1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389766_0.png.png imagette294510411765841340/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/159808d6158c22204f316ddf9f0850fa_76110284.png imagette294510401765841339 29451041 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=29451041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294510411765841340 29451043 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=29451043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573281: '1765840765_2932231_1399573197_bd4173b8f9c61920538f326a3c41f10d_rle_crop_4071378877_0.png', 1399573366: '1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388970_0.png', 1399573367: '1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388982_0.png', 1399573382: '1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389094_0.png', 1399573426: '1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389782_0.png', 1399573427: '1765841107_2948792_1399573305_88cce4a68fc00ae63b16760797036013_rle_crop_4071389798_0.png', 1399573467: '1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390011_0.png', 1399573468: '1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/1f4e66d224af9bc3381eda26a115f4da_57704006.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d2d703bb227bf1ee3e7970ee9fc04700_78600793.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/76322373a9557284f7d893f270c8c3e9_18036822.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6ba4e0f0f29eac83cd39c7c04613e4b5_21944134.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0146cf3bc1722fc5724e5411d1eb39aa_84443908.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d080ed048705a810db45e03cbddaed5e_61262428.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/31c62af18a37573a487ed769f84c2240_63523366.png change filename to text .imagette294510431765841340/ imagette294510431765841340/1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390011_0.png.png imagette294510431765841340/1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389782_0.png.png imagette294510431765841340/1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389094_0.png.png imagette294510431765841340/1765840765_2932231_1399573197_bd4173b8f9c61920538f326a3c41f10d_rle_crop_4071378877_0.png.png imagette294510431765841340/1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388982_0.png.png imagette294510431765841340/1765841107_2948792_1399573305_88cce4a68fc00ae63b16760797036013_rle_crop_4071389798_0.png.png imagette294510431765841340/1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390010_0.png.png imagette294510431765841340/1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388970_0.png.png imagette294510441765841340/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/65599fd88081bb0bb9c1c53baec6b989_70879921.png imagette294510431765841340 29451044 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=29451044 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294510441765841340 29451046 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=29451046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573331: '1765840885_2937816_1399573265_1982522e195f72b83840dc6edce20cf6_rle_crop_4071382101_0.png', 1399573332: '1765840885_2937816_1399573264_45510bcb401a3001708559da1a5ab35c_rle_crop_4071382110_0.png', 1399573333: '1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382134_0.png', 1399573369: '1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388979_0.png', 1399573370: '1765840985_2943151_1399573237_1eb0cf584d98e23d9365567f43c104f5_rle_crop_4071388989_0.png', 1399573428: '1765841107_2948792_1399573310_2951b765c58f947395b688a9e0302ead_rle_crop_4071389748_0.png', 1399573429: '1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389765_0.png', 1399573430: '1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389780_0.png', 1399573431: '1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389783_0.png', 1399573440: '1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389920_0.png', 1399573441: '1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389922_0.png', 1399573442: '1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389955_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f6eb9e27d64f4411a5c3f2ea12cd2741_29185051.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/35881c425a7eb9e54b7447de7c3a8ab5_82862920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9d5dd9f79a34e453c8c0d6a5b74e3af8_6100812.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fed4b1693cc78ead88b4a139983c7d02_18132244.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b05d59b28bd7d165a0494e675741caf8_26618665.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/2b13b3c7efcf987fb46fbdd879c9e3b4_94307128.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d3b6070010efbf2562920492d092bdd7_77123876.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4cd200a715bc7d095baa67e21a5803fc_12778541.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3ef332051bd2336caa0ff5747e450a63_5380411.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/834db274e4a96a787262963ce7be5eaa_22493421.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9524ec3c1170d14dc55946ee844e484d_17862814.png change filename to text .imagette294510461765841340/ imagette294510461765841340/1765840885_2937816_1399573264_45510bcb401a3001708559da1a5ab35c_rle_crop_4071382110_0.png.png imagette294510461765841340/1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389783_0.png.png imagette294510461765841340/1765841107_2948792_1399573310_2951b765c58f947395b688a9e0302ead_rle_crop_4071389748_0.png.png imagette294510461765841340/1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389920_0.png.png imagette294510461765841340/1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389955_0.png.png imagette294510461765841340/1765840885_2937816_1399573265_1982522e195f72b83840dc6edce20cf6_rle_crop_4071382101_0.png.png imagette294510461765841340/1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389765_0.png.png imagette294510461765841340/1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388979_0.png.png imagette294510461765841340/1765840985_2943151_1399573237_1eb0cf584d98e23d9365567f43c104f5_rle_crop_4071388989_0.png.png imagette294510461765841340/1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389922_0.png.png imagette294510461765841340/1765841107_2948792_1399573306_f6e92f059af5112a44ca3c090a7e5e56_rle_crop_4071389780_0.png.png imagette294510461765841340/1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382134_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5c14354b40a4eb5865f1640ba70bc0b0_85854631.png imagette294510461765841340 29451047 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=29451047 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573378: '1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388980_0.png'} change filename to text .imagette294510471765841341/ imagette294510471765841341/1765840985_2943151_1399573239_dc8f2ee753002e57f70e9fd6a4a4ed94_rle_crop_4071388980_0.png.png imagette294510491765841341/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/18592d50a8e24243aec22f610773394a_59402479.png imagette294510471765841341 29451049 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=29451049 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294510491765841341 29451038 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=29451038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573334: '1765840885_2937816_1399573264_45510bcb401a3001708559da1a5ab35c_rle_crop_4071382111_0.png', 1399573335: '1765840885_2937816_1399573263_95d6540058e7c62980b73a1f3165b923_rle_crop_4071382126_0.png', 1399573336: '1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382137_0.png', 1399573373: '1765840985_2943151_1399573236_f0932a9d20780144a5e23619c2cf881d_rle_crop_4071388999_0.png', 1399573374: '1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389011_0.png', 1399573375: '1765840985_2943151_1399573234_2084048a87bb30fbb75f4c7cf7e8393b_rle_crop_4071389024_0.png', 1399573383: '1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389091_0.png', 1399573433: '1765841107_2948792_1399573310_2951b765c58f947395b688a9e0302ead_rle_crop_4071389750_0.png', 1399573443: '1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389940_0.png', 1399573444: '1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389960_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/47b311f9ef6b590061705279d5497113_49460938.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7c8639994dea4c20ec6262026b6eec8d_7853867.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/68502663c88c7c6a5153596f95f925b5_15182739.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/15c54804792cb3de9e8a0e3baf9f266a_79052490.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0c01c2d28ebd4a50b3d5c59a4333572c_72948776.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/111fb683abd77984605b464f2ed1a97b_92838633.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/eb6c50508f89d506db553c4a86046f53_30726856.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/687953029f8e295bdb663a004d6646b3_90433045.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/41c71bb6228d07c92f6296a4570e9572_2207308.png change filename to text .imagette294510381765841341/ imagette294510381765841341/1765840885_2937816_1399573264_45510bcb401a3001708559da1a5ab35c_rle_crop_4071382111_0.png.png imagette294510381765841341/1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389960_0.png.png imagette294510381765841341/1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389011_0.png.png imagette294510381765841341/1765840885_2937816_1399573262_138806068764c889bdc41fe14c7e3c98_rle_crop_4071382137_0.png.png imagette294510381765841341/1765841107_2948792_1399573310_2951b765c58f947395b688a9e0302ead_rle_crop_4071389750_0.png.png imagette294510381765841341/1765841005_2943537_1399573339_59d5d6c6fd44325c5d1fe4982cf2e52a_rle_crop_4071389091_0.png.png imagette294510381765841341/1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389940_0.png.png imagette294510381765841341/1765840985_2943151_1399573234_2084048a87bb30fbb75f4c7cf7e8393b_rle_crop_4071389024_0.png.png imagette294510381765841341/1765840885_2937816_1399573263_95d6540058e7c62980b73a1f3165b923_rle_crop_4071382126_0.png.png imagette294510381765841341/1765840985_2943151_1399573236_f0932a9d20780144a5e23619c2cf881d_rle_crop_4071388999_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4dd33c2014267b343e66e661c280d2c9_96012730.png imagette294510381765841341 29451039 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=29451039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573280: '1765840765_2932231_1399573197_bd4173b8f9c61920538f326a3c41f10d_rle_crop_4071378881_0.png', 1399573365: '1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388972_0.png', 1399573424: '1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389771_0.png', 1399573425: '1765841107_2948792_1399573305_88cce4a68fc00ae63b16760797036013_rle_crop_4071389801_0.png', 1399573435: '1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389924_0.png', 1399573436: '1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389949_0.png', 1399573437: '1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389938_0.png', 1399573438: '1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389965_0.png', 1399573439: '1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389969_0.png', 1399573465: '1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390012_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/09953b7628fd9f1502b93a1e55817514_42561996.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4771bd31f771389332266279216c53c4_29551518.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a30d5d5bc98cb90934b72175a362d7f1_74635943.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4ee894e23440b01816a794842c4b19cd_83088779.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c57e96fcafe94da6e3329826df1e95c6_57055509.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/34403feff80d654b87f92a3b1219bd85_58940146.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fb5a09464c0faf01660781aedfb20c4b_64676808.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/12f3b7641c395433de4acd8a5e383504_62514479.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/96c7e2239c26b8b5aeb09e059c6c7176_1377689.png change filename to text .imagette294510391765841342/ imagette294510391765841342/1765841107_2948792_1399573307_9b7d354479828920285ff0979d324813_rle_crop_4071389771_0.png.png imagette294510391765841342/1765840765_2932231_1399573197_bd4173b8f9c61920538f326a3c41f10d_rle_crop_4071378881_0.png.png imagette294510391765841342/1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389938_0.png.png imagette294510391765841342/1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389969_0.png.png imagette294510391765841342/1765841226_2954727_1399573358_38197f4d7c14732fef1e434b384e750d_rle_crop_4071390012_0.png.png imagette294510391765841342/1765841128_2949469_1399573356_64b41cda9a245651a7f77c432e934750_rle_crop_4071389949_0.png.png imagette294510391765841342/1765841128_2949469_1399573357_4c7ed5a6445b30fca481124e0aaf356e_rle_crop_4071389924_0.png.png imagette294510391765841342/1765841107_2948792_1399573305_88cce4a68fc00ae63b16760797036013_rle_crop_4071389801_0.png.png imagette294510391765841342/1765840985_2943151_1399573268_1f584bc8261bae1033791c0220223ade_rle_crop_4071388972_0.png.png imagette294510391765841342/1765841128_2949469_1399573355_42d21fb4e8b19d75e3394cb2aa60f84d_rle_crop_4071389965_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/969f6e2eb11be89e68615469ebc98450_60110535.png imagette294510391765841342 29451045 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=29451045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573282: '1765840765_2932231_1399573196_3cbcea25a056a86055a4d9e50579e654_rle_crop_4071380303_0.png', 1399573368: '1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389009_0.png', 1399573479: '1765841246_2955135_1399573447_750bf414ebd37d141eadaec833a96f3f_rle_crop_4071390123_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/626a3f8d09f0c72b0a2c65270c09aabe_46522749.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/facbaa4e213b69630dc342abc6830e76_78644139.png change filename to text .imagette294510451765841343/ imagette294510451765841343/1765840765_2932231_1399573196_3cbcea25a056a86055a4d9e50579e654_rle_crop_4071380303_0.png.png imagette294510451765841343/1765840985_2943151_1399573235_d90136bc2fd0ede79dee36d272d192a1_rle_crop_4071389009_0.png.png imagette294510451765841343/1765841246_2955135_1399573447_750bf414ebd37d141eadaec833a96f3f_rle_crop_4071390123_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7e1c63d8e17471a40a9f3bac3f1f44d2_60822482.png imagette294510451765841343 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29450996 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29451050,29451051,29451052,29451053,29451054,29451055,29451056,29451057,29451058,29451059,29451060,29451061?tags=Carton_brun,Teint_Dans_La_Masse,plastique,flou,papier,autre_refus,mal_croppe,Carton_gris,cartonnette,kraft,environnement,metal your option no_mail is active, we will not send the real mail to your client args[1399573463] : ('0.06297502885400122',) no score found for photo 1399573463 We are sending mail with results at report@fotonower.com args[1399573462] : ('0.06297502885400122',) no score found for photo 1399573462 We are sending mail with results at report@fotonower.com args[1399573461] : ('0.06297502885400122',) no score found for photo 1399573461 We are sending mail with results at report@fotonower.com args[1399573460] : ('0.06297502885400122',) no score found for photo 1399573460 We are sending mail with results at report@fotonower.com refus_total : 0.06297502885400122 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=29450996 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_P29450996_16-12-2025_00_28_59.pdf results_Auto_P29450996_16-12-2025_00_28_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_28_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29450996','results_Auto_P29450996_16-12-2025_00_28_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_28_59.pdf','pdf','','0.22','0.06297502885400122') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29450996]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399573463, 1399573462, 1399573461, 1399573460] map_info['map_portfolio_photo'] : {29450996: [1399573463, 1399573462, 1399573461, 1399573460, 1399573451, 1399573448, 1399573447, 1399573446, 1399573445, 1399573413, 1399573412, 1399573411, 1399573398, 1399573396, 1399573394, 1399573393, 1399573390, 1399573389, 1399573358, 1399573357, 1399573356, 1399573355, 1399573341, 1399573340, 1399573339, 1399573313, 1399573310, 1399573307, 1399573306, 1399573305, 1399573304, 1399573292, 1399573290, 1399573289, 1399573288, 1399573286, 1399573268, 1399573265, 1399573264, 1399573263, 1399573262, 1399573242, 1399573239, 1399573237, 1399573236, 1399573235, 1399573234, 1399573198, 1399573197, 1399573196, 1399573195, 1399573183, 1399573182, 1399573181, 1399573180]} final : False mtd_id 4302 list_pids : [1399573463, 1399573462, 1399573461, 1399573460] 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, '4231891') ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '29450996', '1399573463', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891')] time used for this insertion : 0.014905929565429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.917463302612305 time spend to save output : 0.015075922012329102 total time spend for step 4 : 4.932539224624634 step5:split_time_score Tue Dec 16 00:29:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29450996'] 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 : [('29450996',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29450996) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399573461: {'path': 'temp/1765841339_2560255_1399573461_b315e067dbadc3f1d6a42aa95c681489.jpg', 'extension': 'jpg'}, 1399573460: {'path': 'temp/1765841339_2560255_1399573460_3ebe5ded0c99397a191b1e171dd4996c.jpg', 'extension': 'jpg'}, 1399573462: {'path': 'temp/1765841339_2560255_1399573462_119d006e39fbf9953e718d6c5d364b21.jpg', 'extension': 'jpg'}, 1399573463: {'path': 'temp/1765841339_2560255_1399573463_38df22eec7e091d49124f06b1993abc6.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 = 29450996; (('arc_en_ciel_jrm_live',),) 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 = 29450996 group by h (('00', 55),) 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=29450996 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 (29450996) 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 (29450996) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16122025 29450996 Nombre de photos uploadées : 55 / 23040 (0%) 16122025 29450996 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 16122025 29450996 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1399573183, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ea8b5a3e6c83c6728394747c7c8c14c8.jpg', 'username': None, 'uploaded_at': 1765840567, 'text': 'image_16122025_00_15_14_10138.jpg'}, {'photo_id': 1399573182, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fef63d8decc46550ae29eaf01b8a71da.jpg', 'username': None, 'uploaded_at': 1765840567, 'text': 'image_16122025_00_15_24_10138.jpg'}, {'photo_id': 1399573181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/bab141831da83d828904dd826efd868a.jpg', 'username': None, 'uploaded_at': 1765840567, 'text': 'image_16122025_00_15_34_10139.jpg'}, {'photo_id': 1399573180, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/04777e98fa859ba98be0dcdef34bbd0e.jpg', 'username': None, 'uploaded_at': 1765840567, 'text': 'image_16122025_00_15_44_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023949146270751953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29450996, '2025-12-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2741831,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23446917533874512 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= 2741831 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748678, 'mtr_portfolio_id': 29450388, 'dashboard_result_id': 18400588, '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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}"}, {'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748678, 'mtr_portfolio_id': 29450996, 'dashboard_result_id': 18400589, '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_P29450996_16-12-2025_00_26_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, '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 = 29450388 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': 4231841, 'mtr_portfolio_id': 29450388, 'created_at': datetime.datetime(2025, 12, 16, 0, 19, 1), 'result': '0.05849226565291721', 'result_long': None, 'result_double': None}] Qualite : 0.05849226565291721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450388 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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}" where mtr_portfolio_id = 29450388 and dashboard_run_id = 2748678 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`=29450388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18400588, 0.05849226565291721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, '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 = 29450996 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': 4231891, 'mtr_portfolio_id': 29450996, 'created_at': datetime.datetime(2025, 12, 16, 0, 28, 59), 'result': '0.06297502885400122', 'result_long': None, 'result_double': None}] Qualite : 0.06297502885400122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450996 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_P29450996_16-12-2025_00_28_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}" where mtr_portfolio_id = 29450996 and dashboard_run_id = 2748678 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`=29450996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18400589, 0.06297502885400122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_28_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450388,29450996) result : ((1399569775,), (1399569840,), (1399569914,), (1399569963,), (1399570004,), (1399570079,), (1399570082,), (1399570115,), (1399570158,), (1399570440,), (1399570473,), (1399570509,), (1399570540,), (1399570781,), (1399570794,), (1399570799,), (1399570816,), (1399570840,), (1399570850,), (1399570857,), (1399570858,), (1399570859,), (1399570860,), (1399570863,), (1399570873,), (1399570874,), (1399570875,), (1399570876,), (1399570879,), (1399571005,), (1399571039,), (1399571074,), (1399571109,), (1399571144,), (1399571180,), (1399571473,), (1399571474,), (1399571475,), (1399571476,), (1399571629,), (1399571630,), (1399571631,), (1399571632,), (1399571634,), (1399571636,), (1399571669,), (1399571670,), (1399571671,), (1399571701,), (1399571758,), (1399571822,), (1399571881,), (1399571945,), (1399572326,), (1399572363,), (1399572393,), (1399572424,), (1399572457,), (1399572701,), (1399572702,), (1399572703,), (1399572792,), (1399572827,), (1399572856,), (1399572888,), (1399572921,), (1399573118,), (1399573152,), (1399573155,), (1399573156,), (1399573186,), (1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16122025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29450996]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399573463, 1399573462, 1399573461, 1399573460] map_info['map_portfolio_photo'] : {29450996: [1399573463, 1399573462, 1399573461, 1399573460, 1399573451, 1399573448, 1399573447, 1399573446, 1399573445, 1399573413, 1399573412, 1399573411, 1399573398, 1399573396, 1399573394, 1399573393, 1399573390, 1399573389, 1399573358, 1399573357, 1399573356, 1399573355, 1399573341, 1399573340, 1399573339, 1399573313, 1399573310, 1399573307, 1399573306, 1399573305, 1399573304, 1399573292, 1399573290, 1399573289, 1399573288, 1399573286, 1399573268, 1399573265, 1399573264, 1399573263, 1399573262, 1399573242, 1399573239, 1399573237, 1399573236, 1399573235, 1399573234, 1399573198, 1399573197, 1399573196, 1399573195, 1399573183, 1399573182, 1399573181, 1399573180]} final : True mtd_id 4302 list_pids : [1399573463, 1399573462, 1399573461, 1399573460] Looping around the photos to save general results len do output : 1 /29450996Didn'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, '4231891') ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891') ('4302', None, None, None, None, None, None, None, '4231891') ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29450996', 'None', None, None, None, None, '4231891'), ('4302', '29450996', '1399573463', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573462', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573461', None, None, None, None, None, '4231891'), ('4302', '29450996', '1399573460', None, None, None, None, None, '4231891')] time used for this insertion : 0.014237165451049805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4823317527770996 time spend to save output : 0.014425039291381836 total time spend for step 5 : 0.49675679206848145 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 (4231891) 2.01user 2.34system 0:09.82elapsed 44%CPU (0avgtext+0avgdata 165656maxresident)k 0inputs+11000outputs (1major+67170minor)pagefaults 0swaps