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 : 845472 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 (4221177) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4221177) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417539 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4221177'] with mtr_portfolio_ids : ['29417539'] and first list_photo_ids : [] new path : /proc/845472/ Name: python3 Umask: 0002 State: R (running) Tgid: 845472 Ngid: 0 Pid: 845472 PPid: 845471 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 845472 NSpid: 845472 NSpgid: 844880 NSsid: 844880 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106940 kB VmRSS: 106940 kB RssAnon: 66336 kB RssFile: 40604 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 568 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: 43 nonvoluntary_ctxt_switches: 131 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '845472', 'Ngid': '0', 'Pid': '845472', 'PPid': '845471', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '845472', 'NSpid': '845472', 'NSpgid': '844880', 'NSsid': '844880', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106940 kB', 'VmRSS': '106940 kB', 'RssAnon': '66336 kB', 'RssFile': '40604 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '568 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': '43', 'nonvoluntary_ctxt_switches': '131'} ('datou_batch_current', '845472', '1113364', '0', '1113364', '872092', '106940', b'', 'marlene', '4221177') 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 (29417539) 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 (4221177 ) ) 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 (29417539) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399433574, 'portfolio_id': 29417539}, {'photo_id': 1399433572, 'portfolio_id': 29417539}, {'photo_id': 1399433570, 'portfolio_id': 29417539}, {'photo_id': 1399433569, 'portfolio_id': 29417539}, {'photo_id': 1399433567, 'portfolio_id': 29417539}, {'photo_id': 1399433557, 'portfolio_id': 29417539}, {'photo_id': 1399433554, 'portfolio_id': 29417539}, {'photo_id': 1399433552, 'portfolio_id': 29417539}, {'photo_id': 1399433550, 'portfolio_id': 29417539}, {'photo_id': 1399433529, 'portfolio_id': 29417539}, {'photo_id': 1399433526, 'portfolio_id': 29417539}, {'photo_id': 1399433523, 'portfolio_id': 29417539}, {'photo_id': 1399433521, 'portfolio_id': 29417539}, {'photo_id': 1399433519, 'portfolio_id': 29417539}, {'photo_id': 1399433507, 'portfolio_id': 29417539}, {'photo_id': 1399433506, 'portfolio_id': 29417539}, {'photo_id': 1399433505, 'portfolio_id': 29417539}, {'photo_id': 1399433503, 'portfolio_id': 29417539}, {'photo_id': 1399433473, 'portfolio_id': 29417539}, {'photo_id': 1399433471, 'portfolio_id': 29417539}, {'photo_id': 1399433469, 'portfolio_id': 29417539}, {'photo_id': 1399433467, 'portfolio_id': 29417539}, {'photo_id': 1399433465, 'portfolio_id': 29417539}, {'photo_id': 1399433456, 'portfolio_id': 29417539}, {'photo_id': 1399433454, 'portfolio_id': 29417539}, {'photo_id': 1399433452, 'portfolio_id': 29417539}, {'photo_id': 1399433451, 'portfolio_id': 29417539}, {'photo_id': 1399433446, 'portfolio_id': 29417539}, {'photo_id': 1399433438, 'portfolio_id': 29417539}, {'photo_id': 1399433436, 'portfolio_id': 29417539}, {'photo_id': 1399433434, 'portfolio_id': 29417539}, {'photo_id': 1399433427, 'portfolio_id': 29417539}, {'photo_id': 1399433424, 'portfolio_id': 29417539}, {'photo_id': 1399433422, 'portfolio_id': 29417539}, {'photo_id': 1399433420, 'portfolio_id': 29417539}, {'photo_id': 1399433419, 'portfolio_id': 29417539}, {'photo_id': 1399433418, 'portfolio_id': 29417539}, {'photo_id': 1399433401, 'portfolio_id': 29417539}, {'photo_id': 1399433399, 'portfolio_id': 29417539}, {'photo_id': 1399433397, 'portfolio_id': 29417539}, {'photo_id': 1399433395, 'portfolio_id': 29417539}, {'photo_id': 1399433376, 'portfolio_id': 29417539}, {'photo_id': 1399433375, 'portfolio_id': 29417539}, {'photo_id': 1399433374, 'portfolio_id': 29417539}, {'photo_id': 1399433373, 'portfolio_id': 29417539}, {'photo_id': 1399433362, 'portfolio_id': 29417539}, {'photo_id': 1399433360, 'portfolio_id': 29417539}, {'photo_id': 1399433358, 'portfolio_id': 29417539}, {'photo_id': 1399433344, 'portfolio_id': 29417539}, {'photo_id': 1399433342, 'portfolio_id': 29417539}, {'photo_id': 1399433341, 'portfolio_id': 29417539}, {'photo_id': 1399433340, 'portfolio_id': 29417539}, {'photo_id': 1399433339, 'portfolio_id': 29417539}, {'photo_id': 1399433328, 'portfolio_id': 29417539}, {'photo_id': 1399433326, 'portfolio_id': 29417539}, {'photo_id': 1399433324, 'portfolio_id': 29417539}, {'photo_id': 1399433313, 'portfolio_id': 29417539}] map_portfolio_id_photo_id: {29417539: [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550, 1399433529, 1399433526, 1399433523, 1399433521, 1399433519, 1399433507, 1399433506, 1399433505, 1399433503, 1399433473, 1399433471, 1399433469, 1399433467, 1399433465, 1399433456, 1399433454, 1399433452, 1399433451, 1399433446, 1399433438, 1399433436, 1399433434, 1399433427, 1399433424, 1399433422, 1399433420, 1399433419, 1399433418, 1399433401, 1399433399, 1399433397, 1399433395, 1399433376, 1399433375, 1399433374, 1399433373, 1399433362, 1399433360, 1399433358, 1399433344, 1399433342, 1399433341, 1399433340, 1399433339, 1399433328, 1399433326, 1399433324, 1399433313]} ##### 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.02033209800720215 #### 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 Mon Dec 15 05:44:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29417539) 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 : 29417539 get user id for portfolio 29417539 get sub ptf for main ptf 29417539, type 3726 and hashtags ['flou', 'autre_refus', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'plastique', 'Carton_brun', 'cartonnette', 'kraft', '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`=29417539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','plastique','Carton_brun','cartonnette','kraft','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`=29417539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','plastique','Carton_brun','cartonnette','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29417539, 'sub_port_id': 29417542, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044477, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'metal': {'main_port_id': 29417539, 'sub_port_id': 29417543, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044478, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29417539, 'sub_port_id': 29417544, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044479, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'papier': {'main_port_id': 29417539, 'sub_port_id': 29417545, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044480, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'cartonnette': {'main_port_id': 29417539, 'sub_port_id': 29417546, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044481, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'flou': {'main_port_id': 29417539, 'sub_port_id': 29417547, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044482, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'environnement': {'main_port_id': 29417539, 'sub_port_id': 29417548, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044483, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'kraft': {'main_port_id': 29417539, 'sub_port_id': 29417549, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044484, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'mal_croppe': {'main_port_id': 29417539, 'sub_port_id': 29417550, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044485, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'Carton_brun': {'main_port_id': 29417539, 'sub_port_id': 29417551, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044486, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'autre_refus': {'main_port_id': 29417539, 'sub_port_id': 29417552, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044487, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}, 'Carton_gris': {'main_port_id': 29417539, 'sub_port_id': 29417553, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044488, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29417542 , 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=29417539 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 (29417542) result : ((1399433391,), (1399433533,), (1399433548,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417543 , 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=29417539 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 (29417543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417544 , 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=29417539 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 (29417544) result : ((1399433351,), (1399433380,), (1399433381,), (1399433425,), (1399433440,), (1399433441,), (1399433442,), (1399433474,), (1399433491,), (1399433530,), (1399433531,), (1399433532,), (1399433540,), (1399433541,), (1399433542,), (1399433543,), (1399433544,), (1399433545,), (1399433576,), (1399433577,), (1399433578,), (1399433579,), (1399433580,), (1399433581,), (1399433591,), (1399433592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417545 , 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=29417539 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 (29417545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417546 , 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=29417539 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 (29417546) result : ((1399433353,), (1399433444,), (1399433445,), (1399433447,), (1399433498,), (1399433546,), (1399433593,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417547 , 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=29417539 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 (29417547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417548 , 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=29417539 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 (29417548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417549 , 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=29417539 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 (29417549) result : ((1399433504,), (1399433589,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417550 , 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=29417539 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 (29417550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417551 , 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=29417539 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 (29417551) result : ((1399433382,), (1399433383,), (1399433384,), (1399433385,), (1399433386,), (1399433387,), (1399433388,), (1399433389,), (1399433449,), (1399433500,), (1399433501,), (1399433502,), (1399433547,), (1399433587,), (1399433588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417552 , 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=29417539 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 (29417552) result : ((1399433443,), (1399433493,), (1399433494,), (1399433495,), (1399433496,), (1399433582,), (1399433583,), (1399433584,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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 29417553 , 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=29417539 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 (29417553) result : ((1399433352,), (1399433428,), (1399433429,), (1399433475,), (1399433476,), (1399433477,), (1399433478,), (1399433497,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29417539) result : ((1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) 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`=29417539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','plastique','Carton_brun','cartonnette','kraft','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`=29417539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','metal','plastique','Carton_brun','cartonnette','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29417539, 'sub_port_id': 29417554, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044489, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'metal': {'main_port_id': 29417539, 'sub_port_id': 29417555, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044490, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 29417539, 'sub_port_id': 29417556, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044491, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'papier': {'main_port_id': 29417539, 'sub_port_id': 29417557, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044492, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'cartonnette': {'main_port_id': 29417539, 'sub_port_id': 29417558, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044493, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'flou': {'main_port_id': 29417539, 'sub_port_id': 29417559, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044494, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'environnement': {'main_port_id': 29417539, 'sub_port_id': 29417560, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044495, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'kraft': {'main_port_id': 29417539, 'sub_port_id': 29417561, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044496, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'mal_croppe': {'main_port_id': 29417539, 'sub_port_id': 29417562, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044497, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'Carton_brun': {'main_port_id': 29417539, 'sub_port_id': 29417563, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044498, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'autre_refus': {'main_port_id': 29417539, 'sub_port_id': 29417564, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044499, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}, 'Carton_gris': {'main_port_id': 29417539, 'sub_port_id': 29417565, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20044500, 'last_updated_at': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 5, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 5, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29417565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29417553 lien utilise dans velours : https://marlene.fotonower.com/velours/29417554,29417555,29417556,29417557,29417558,29417559,29417560,29417561,29417562,29417563,29417564,29417565?tags=plastique,metal,Teint_Dans_La_Masse,papier,cartonnette,flou,environnement,kraft,mal_croppe,Carton_brun,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29417539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] map_info['map_portfolio_photo'] : {29417539: [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550, 1399433529, 1399433526, 1399433523, 1399433521, 1399433519, 1399433507, 1399433506, 1399433505, 1399433503, 1399433473, 1399433471, 1399433469, 1399433467, 1399433465, 1399433456, 1399433454, 1399433452, 1399433451, 1399433446, 1399433438, 1399433436, 1399433434, 1399433427, 1399433424, 1399433422, 1399433420, 1399433419, 1399433418, 1399433401, 1399433399, 1399433397, 1399433395, 1399433376, 1399433375, 1399433374, 1399433373, 1399433362, 1399433360, 1399433358, 1399433344, 1399433342, 1399433341, 1399433340, 1399433339, 1399433328, 1399433326, 1399433324, 1399433313]} final : False mtd_id 4302 list_pids : [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] Looping around the photos to save general results len do output : 1 /29417539. 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, '4221177') ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29417539', "{'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553}", None, None, None, None, '4221177'), ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177')] time used for this insertion : 0.01765894889831543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8710627555847168 time spend to save output : 0.01793837547302246 total time spend for step 1 : 1.8890011310577393 step2:final Mon Dec 15 05:44:31 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 (29417539) 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 29417539 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399433313,1399433328,1399433326,1399433324,1399433344,1399433342,1399433341,1399433340,1399433339,1399433362,1399433360,1399433358,1399433376,1399433375,1399433374,1399433373,1399433446,1399433401,1399433438,1399433399,1399433436,1399433397,1399433434,1399433395,1399433427,1399433424,1399433422,1399433420,1399433419,1399433418,1399433456,1399433454,1399433452,1399433451,1399433473,1399433471,1399433469,1399433467,1399433465,1399433507,1399433506,1399433505,1399433503,1399433529,1399433526,1399433523,1399433521,1399433519,1399433557,1399433554,1399433552,1399433550,1399433574,1399433572,1399433570,1399433569,1399433567); 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([29417539]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} new output for save of step final : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] map_info['map_portfolio_photo'] : {29417539: [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550, 1399433529, 1399433526, 1399433523, 1399433521, 1399433519, 1399433507, 1399433506, 1399433505, 1399433503, 1399433473, 1399433471, 1399433469, 1399433467, 1399433465, 1399433456, 1399433454, 1399433452, 1399433451, 1399433446, 1399433438, 1399433436, 1399433434, 1399433427, 1399433424, 1399433422, 1399433420, 1399433419, 1399433418, 1399433401, 1399433399, 1399433397, 1399433395, 1399433376, 1399433375, 1399433374, 1399433373, 1399433362, 1399433360, 1399433358, 1399433344, 1399433342, 1399433341, 1399433340, 1399433339, 1399433328, 1399433326, 1399433324, 1399433313]} final : False mtd_id 4302 list_pids : [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] Looping around the photos to save general results len do output : 9 /1399433574.Didn't retrieve data . /1399433572.Didn't retrieve data . /1399433570.Didn't retrieve data . /1399433569.Didn't retrieve data . /1399433567.Didn't retrieve data . /1399433557.Didn't retrieve data . /1399433554.Didn't retrieve data . /1399433552.Didn't retrieve data . /1399433550.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, '4221177') ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29417539', '1399433574', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433572', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433570', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433569', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433567', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433557', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433554', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433552', '0.06045422618648236', None, None, None, None, '4221177'), ('4302', '29417539', '1399433550', '0.06045422618648236', None, None, None, None, '4221177')] time used for this insertion : 0.01568913459777832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08278059959411621 time spend to save output : 0.016155242919921875 total time spend for step 2 : 0.09893584251403809 step3:velours_tree Mon Dec 15 05:44:32 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 : {29417539: [{'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553}]} input_args_next_step : {29417539: ()} output_args : {29417539: [{'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553}]} args : 29417539 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29417539) 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([29417539]) 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.2687842845916748 time spend to save output : 3.8623809814453125e-05 total time spend for step 3 : 0.26882290840148926 step4:send_mail_cod Mon Dec 15 05:44:32 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 : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} input_args_next_step : {1399433574: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433574 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433572 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433570 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433569 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433567 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433557 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433554 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433552 depend.output_id : 0 input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ()} output_args : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',)} args : 1399433550 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 : {29417539: [{'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553}]} input_args_next_step : {1399433574: ('0.06045422618648236',), 1399433572: ('0.06045422618648236',), 1399433570: ('0.06045422618648236',), 1399433569: ('0.06045422618648236',), 1399433567: ('0.06045422618648236',), 1399433557: ('0.06045422618648236',), 1399433554: ('0.06045422618648236',), 1399433552: ('0.06045422618648236',), 1399433550: ('0.06045422618648236',), 29417539: ()} output_args : {29417539: [{'plastique': 29417542, 'metal': 29417543, 'Teint_Dans_La_Masse': 29417544, 'papier': 29417545, 'cartonnette': 29417546, 'flou': 29417547, 'environnement': 29417548, 'kraft': 29417549, 'mal_croppe': 29417550, 'Carton_brun': 29417551, 'autre_refus': 29417552, 'Carton_gris': 29417553}]} args : 29417539 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.06045422618648236',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29417539) 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 (1399433574,1399433572,1399433570,1399433569,1399433567,1399433557,1399433554,1399433552,1399433550) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399433550 begin to download photo : 1399433554 begin to download photo : 1399433567 begin to download photo : 1399433570 begin to download photo : 1399433574 download finish for photo 1399433554 begin to download photo : 1399433557 download finish for photo 1399433574 download finish for photo 1399433550 begin to download photo : 1399433552 download finish for photo 1399433570 begin to download photo : 1399433572 download finish for photo 1399433567 begin to download photo : 1399433569 download finish for photo 1399433557 download finish for photo 1399433569 download finish for photo 1399433552 download finish for photo 1399433572 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29417539_15-12-2025_05_44_32.pdf 29417542 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=29417542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433391: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309754_0.png', 1399433533: '1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310506_0.png', 1399433548: '1765773687_3845698_1399433469_9d2509ea5e571276b70f8842dd003428_rle_crop_4070310661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/44e1304a79bfe4925f1bcaff5c9b64f6_42036423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ec9d8368c1065792734bbc54a2b7a770_34631106.png change filename to text .imagette294175421765773872/ imagette294175421765773872/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309754_0.png.png imagette294175421765773872/1765773687_3845698_1399433469_9d2509ea5e571276b70f8842dd003428_rle_crop_4070310661_0.png.png imagette294175421765773872/1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310506_0.png.png imagette294175431765773872/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/bc5caf9f173e2f7364dcbdf5f38b537f_89848.png imagette294175421765773872 29417543 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=29417543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294175431765773872 29417546 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=29417546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433353: '1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309414_0.png', 1399433444: '1765773446_3834042_1399433375_2c2677f07602f91f0c1069ab4ae1387a_rle_crop_4070310008_0.png', 1399433445: '1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310026_0.png', 1399433447: '1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310023_0.png', 1399433498: '1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310354_0.png', 1399433546: '1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310666_0.png', 1399433593: '1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4eda155fabb913fead6ca99d8d50470c_83703837.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3a490ff43002c557cf195e45cfd59f12_8430334.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a94de428a303edb2c3b9b32714b77f2f_74931208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/bd82bee5242319c55d00733fa5e8fb50_12144848.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/6fa1f07b8981fa5fbadeffd71f18f97a_50756888.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/d4f1d087cb8a2e9618aadd893d68e664_85156611.png change filename to text .imagette294175461765773872/ imagette294175461765773872/1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309414_0.png.png imagette294175461765773872/1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310666_0.png.png imagette294175461765773872/1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310023_0.png.png imagette294175461765773872/1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310026_0.png.png imagette294175461765773872/1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310964_0.png.png imagette294175461765773872/1765773446_3834042_1399433375_2c2677f07602f91f0c1069ab4ae1387a_rle_crop_4070310008_0.png.png imagette294175461765773872/1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310354_0.png.png imagette294175471765773873/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3c7242dde89a70d90c67a9b2da163857_47150101.png imagette294175461765773872 29417547 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=29417547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294175471765773873 29417549 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=29417549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433504: '1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310372_0.png', 1399433589: '1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310876_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3195b69b1c33833d23b2f09ecf124005_83271898.png change filename to text .imagette294175491765773873/ imagette294175491765773873/1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310372_0.png.png imagette294175491765773873/1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310876_0.png.png imagette294175501765773873/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f73622d98ca55607c15ad8764227894d_24089980.png imagette294175491765773873 29417550 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=29417550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294175501765773873 29417552 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=29417552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433443: '1765773446_3834042_1399433401_441167c007b0131e29ac3316890e4885_rle_crop_4070309996_0.png', 1399433493: '1765773567_3839176_1399433422_4968323746869e08f511ad1f332e1752_rle_crop_4070310322_0.png', 1399433494: '1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310356_0.png', 1399433495: '1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310361_0.png', 1399433496: '1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310374_0.png', 1399433582: '1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310880_0.png', 1399433583: '1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310925_0.png', 1399433584: '1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f351b8b263fea5a428007d316aa9c703_2059866.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/db4de5ec52a5cc49a4943debd1cd9c02_89136433.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/e757e454ec527189c28a5dd2b261baef_91342628.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/d0ffa83a42fa036a9040c17b4509006e_59632263.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4c875c8f7e2f200538117678894a2ea0_2002593.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/82179b87c5d3c344513c2aac880691c5_50834681.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/fcb5ed3060bdcf0af785ca04642e46ca_82036481.png change filename to text .imagette294175521765773873/ imagette294175521765773873/1765773567_3839176_1399433422_4968323746869e08f511ad1f332e1752_rle_crop_4070310322_0.png.png imagette294175521765773873/1765773446_3834042_1399433401_441167c007b0131e29ac3316890e4885_rle_crop_4070309996_0.png.png imagette294175521765773873/1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310356_0.png.png imagette294175521765773873/1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310361_0.png.png imagette294175521765773873/1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310374_0.png.png imagette294175521765773873/1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310910_0.png.png imagette294175521765773873/1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310880_0.png.png imagette294175521765773873/1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310925_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/7024e3bd80ed38504343c5c1106a7157_66180702.png imagette294175521765773873 29417544 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=29417544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433541: '1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310675_0.png', 1399433592: '1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310962_0.png', 1399433591: '1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310968_0.png', 1399433581: '1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310918_0.png', 1399433580: '1765773786_3850853_1399433521_10f3327de48e1a0c18f5bd9c82ce0a49_rle_crop_4070310900_0.png', 1399433579: '1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310888_0.png', 1399433578: '1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310862_0.png', 1399433577: '1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310868_0.png', 1399433576: '1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310869_0.png', 1399433545: '1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310683_0.png', 1399433544: '1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310690_0.png', 1399433543: '1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310685_0.png', 1399433542: '1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310674_0.png', 1399433351: '1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309416_0.png', 1399433540: '1765773687_3845698_1399433507_cfa98146840f92f52675d52d43bd4974_rle_crop_4070310647_0.png', 1399433532: '1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310501_0.png', 1399433531: '1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310507_0.png', 1399433530: '1765773666_3844481_1399433506_f6b332776828c6ef2f4a1f41c491ae17_rle_crop_4070310478_0.png', 1399433491: '1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310360_0.png', 1399433474: '1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310127_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/5c4960f90af6776003c80b39a653d342_71320245.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b5bd24ba4f5dfb4ebb8417d1b931b362_68749403.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/22b91c705160c5762068fa53934c6414_45447326.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/080ec89235c691a937aa3f4da0e6614b_68149760.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/92633a622bee45027f15e596438a3a6d_5729962.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/37072aaf0a7f02934bb6574410429980_40610589.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b14eb82f715a621c9d5688048c58aeb7_87932966.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/84d3c4ccf529725bde144752490cc959_95781298.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/7f46bba77cb00890003247d9109c8211_59538737.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b08cf3f0786a42344358b407b3b78f80_91309133.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/18fd68d5da42d65d42450b7cc0911e34_85827746.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/153e46bad47eea3cc1af99b616b99071_65928375.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/994b56946269bd7d0f19160e2b3b07f6_27012473.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/6b22ffdae11173d614f2961cf85641e7_49245527.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3f42c311272351223d48e83cac7f6ec0_81270717.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b9e498f994984393003217383377434f_26957534.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/91f4579d0b27af6d495464d500dc8221_74935965.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2b71da3bb635024dfdbb761a30ec2a20_17934371.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/6208130eaa677dfa820756c17e636e48_14036010.png change filename to text .imagette294175441765773874/ imagette294175441765773874/1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310360_0.png.png imagette294175441765773874/1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309416_0.png.png imagette294175441765773874/1765773687_3845698_1399433507_cfa98146840f92f52675d52d43bd4974_rle_crop_4070310647_0.png.png imagette294175441765773874/1765773666_3844481_1399433506_f6b332776828c6ef2f4a1f41c491ae17_rle_crop_4070310478_0.png.png imagette294175441765773874/1765773786_3850853_1399433519_87255699e4198be1400c157ee1fa6e15_rle_crop_4070310918_0.png.png imagette294175441765773874/1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310501_0.png.png imagette294175441765773874/1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310968_0.png.png imagette294175441765773874/1765773666_3844481_1399433503_ba9e611b40dd0a9e5c1fe920753fec1e_rle_crop_4070310507_0.png.png imagette294175441765773874/1765773806_3851275_1399433529_b740036e7f2cb3aa682c503e38227601_rle_crop_4070310962_0.png.png imagette294175441765773874/1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310869_0.png.png imagette294175441765773874/1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310868_0.png.png imagette294175441765773874/1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310685_0.png.png imagette294175441765773874/1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310888_0.png.png imagette294175441765773874/1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310674_0.png.png imagette294175441765773874/1765773786_3850853_1399433521_10f3327de48e1a0c18f5bd9c82ce0a49_rle_crop_4070310900_0.png.png imagette294175441765773874/1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310690_0.png.png imagette294175441765773874/1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310127_0.png.png imagette294175441765773874/1765773687_3845698_1399433467_bdf7da679b8116660ddc292f21f98b0b_rle_crop_4070310675_0.png.png imagette294175441765773874/1765773786_3850853_1399433526_0711694946b4efc660623f36199fc078_rle_crop_4070310862_0.png.png imagette294175441765773874/1765773687_3845698_1399433465_d5f69f147ce64505cca1da74a2ac77e2_rle_crop_4070310683_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/c9c72df6422eda4f5191edb4c8cd9113_75871312.png imagette294175441765773874 29417551 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=29417551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433382: '1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309738_0.png', 1399433383: '1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309739_0.png', 1399433384: '1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309740_0.png', 1399433385: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309758_0.png', 1399433386: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309755_0.png', 1399433387: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309753_0.png', 1399433388: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309750_0.png', 1399433389: '1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309752_0.png', 1399433449: '1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310027_0.png', 1399433500: '1765773567_3839176_1399433424_11dd39437bedf9743027afc7662d945c_rle_crop_4070310312_0.png', 1399433501: '1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310378_0.png', 1399433502: '1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310380_0.png', 1399433547: '1765773687_3845698_1399433507_cfa98146840f92f52675d52d43bd4974_rle_crop_4070310643_0.png', 1399433587: '1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310882_0.png', 1399433588: '1765773786_3850853_1399433521_10f3327de48e1a0c18f5bd9c82ce0a49_rle_crop_4070310898_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/92d801633a9e22e953179bb828c0d33a_7108164.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9414973a67460980f78f4b70dbaa3c7d_8452602.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/eecede86f00825176131accd6bb18765_72519647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/fde6235c706287efcd3c6517f5b962ee_94637671.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/889daa7f0ee249959c69b3bc5573a8f7_44289504.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/e0443dd1f7051ef25b3580dcde423294_73452607.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/47799514e421423add29465f67c288ec_49111289.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3ed7c00eefe5f1ff1f4d7731e3166f4e_18037883.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/8406909f3f2bf37da4923f7bd44399a5_82320135.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2a888f3aba27dfc4030fbe5b3f59d78f_22203161.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/067ccd9af475529de4d49a182d2b8f08_18689007.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4dbb4a6ddced66297d9eadf3f820df81_37127171.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/12ffb6d729af22b1af25551a4de70663_89378440.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/913acb799b7cc310a92381fc34325ffd_60983741.png change filename to text .imagette294175511765773875/ imagette294175511765773875/1765773687_3845698_1399433507_cfa98146840f92f52675d52d43bd4974_rle_crop_4070310643_0.png.png imagette294175511765773875/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309750_0.png.png imagette294175511765773875/1765773786_3850853_1399433523_0b49fb7e5becf739a31a8512e72da9be_rle_crop_4070310882_0.png.png imagette294175511765773875/1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310378_0.png.png imagette294175511765773875/1765773567_3839176_1399433418_bf6cb2fc041dd508ef917f92ac867e69_rle_crop_4070310380_0.png.png imagette294175511765773875/1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309740_0.png.png imagette294175511765773875/1765773786_3850853_1399433521_10f3327de48e1a0c18f5bd9c82ce0a49_rle_crop_4070310898_0.png.png imagette294175511765773875/1765773446_3834042_1399433374_cb20512737954de5aad54c81bbff8de1_rle_crop_4070310027_0.png.png imagette294175511765773875/1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309738_0.png.png imagette294175511765773875/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309758_0.png.png imagette294175511765773875/1765773567_3839176_1399433424_11dd39437bedf9743027afc7662d945c_rle_crop_4070310312_0.png.png imagette294175511765773875/1765773307_3827107_1399433360_04be5401debedf97aae62b39ef6495a7_rle_crop_4070309739_0.png.png imagette294175511765773875/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309752_0.png.png imagette294175511765773875/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309753_0.png.png imagette294175511765773875/1765773307_3827107_1399433358_c42c61ffe08442820487f944494b2a76_rle_crop_4070309755_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/381164f7ff06700c21cc5c9955bb1a1e_76251879.png imagette294175511765773875 29417553 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=29417553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399433352: '1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309413_0.png', 1399433428: '1765773426_3833571_1399433395_e1fcb6b1e376041c83e6c3783087d0c7_rle_crop_4070309860_0.png', 1399433429: '1765773426_3833571_1399433395_e1fcb6b1e376041c83e6c3783087d0c7_rle_crop_4070309869_0.png', 1399433475: '1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310120_0.png', 1399433476: '1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310129_0.png', 1399433477: '1765773548_3838821_1399433427_00363d4bd9aa1ece41bd222823da3506_rle_crop_4070310142_0.png', 1399433478: '1765773548_3838821_1399433427_00363d4bd9aa1ece41bd222823da3506_rle_crop_4070310138_0.png', 1399433497: '1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310355_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/6ee1161ea4734bb37c9bba2fe4e58466_56332219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a2406031d71414786de7715a99ed363e_78731714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9b7a0ddc8ef76b280f014565e5e02969_81012621.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a2406031d71414786de7715a99ed363e_99141414.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9b7a0ddc8ef76b280f014565e5e02969_47846482.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/d1d43a043f1e4f79a773e80d0e13f6b1_18861931.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ab80ae973f3a48b16e7ff49b14a1ca04_83580910.png change filename to text .imagette294175531765773876/ imagette294175531765773876/1765773426_3833571_1399433395_e1fcb6b1e376041c83e6c3783087d0c7_rle_crop_4070309860_0.png.png imagette294175531765773876/1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310120_0.png.png imagette294175531765773876/1765773548_3838821_1399433427_00363d4bd9aa1ece41bd222823da3506_rle_crop_4070310138_0.png.png imagette294175531765773876/1765773548_3838821_1399433434_7ccf0d4911cf80f63b184044797da4d8_rle_crop_4070310129_0.png.png imagette294175531765773876/1765773548_3838821_1399433427_00363d4bd9aa1ece41bd222823da3506_rle_crop_4070310142_0.png.png imagette294175531765773876/1765773207_3821986_1399433313_9981299bfd570aa4d5909e8a945c3a4d_rle_crop_4070309413_0.png.png imagette294175531765773876/1765773426_3833571_1399433395_e1fcb6b1e376041c83e6c3783087d0c7_rle_crop_4070309869_0.png.png imagette294175531765773876/1765773567_3839176_1399433419_edff829cae1cc979e8dcc6fd5b7ee457_rle_crop_4070310355_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/694cc1daad92047083f89b35b3234173_25275044.png imagette294175531765773876 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29417539 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29417554,29417555,29417556,29417557,29417558,29417559,29417560,29417561,29417562,29417563,29417564,29417565?tags=plastique,metal,Teint_Dans_La_Masse,papier,cartonnette,flou,environnement,kraft,mal_croppe,Carton_brun,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1399433574] : ('0.06045422618648236',) no score found for photo 1399433574 We are sending mail with results at report@fotonower.com args[1399433572] : ('0.06045422618648236',) no score found for photo 1399433572 We are sending mail with results at report@fotonower.com args[1399433570] : ('0.06045422618648236',) no score found for photo 1399433570 We are sending mail with results at report@fotonower.com args[1399433569] : ('0.06045422618648236',) no score found for photo 1399433569 We are sending mail with results at report@fotonower.com args[1399433567] : ('0.06045422618648236',) no score found for photo 1399433567 We are sending mail with results at report@fotonower.com args[1399433557] : ('0.06045422618648236',) no score found for photo 1399433557 We are sending mail with results at report@fotonower.com args[1399433554] : ('0.06045422618648236',) no score found for photo 1399433554 We are sending mail with results at report@fotonower.com args[1399433552] : ('0.06045422618648236',) no score found for photo 1399433552 We are sending mail with results at report@fotonower.com args[1399433550] : ('0.06045422618648236',) no score found for photo 1399433550 We are sending mail with results at report@fotonower.com refus_total : 0.06045422618648236 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=29417539 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_P29417539_15-12-2025_05_44_32.pdf results_Auto_P29417539_15-12-2025_05_44_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_44_32.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','29417539','results_Auto_P29417539_15-12-2025_05_44_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_44_32.pdf','pdf','','0.25','0.06045422618648236') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29417539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] map_info['map_portfolio_photo'] : {29417539: [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550, 1399433529, 1399433526, 1399433523, 1399433521, 1399433519, 1399433507, 1399433506, 1399433505, 1399433503, 1399433473, 1399433471, 1399433469, 1399433467, 1399433465, 1399433456, 1399433454, 1399433452, 1399433451, 1399433446, 1399433438, 1399433436, 1399433434, 1399433427, 1399433424, 1399433422, 1399433420, 1399433419, 1399433418, 1399433401, 1399433399, 1399433397, 1399433395, 1399433376, 1399433375, 1399433374, 1399433373, 1399433362, 1399433360, 1399433358, 1399433344, 1399433342, 1399433341, 1399433340, 1399433339, 1399433328, 1399433326, 1399433324, 1399433313]} final : False mtd_id 4302 list_pids : [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] 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, '4221177') ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29417539', '1399433574', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177')] time used for this insertion : 0.017678499221801758 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.137523412704468 time spend to save output : 0.017879724502563477 total time spend for step 4 : 6.155403137207031 step5:split_time_score Mon Dec 15 05:44:38 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 : ['29417539'] 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 : [('29417539',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29417539) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399433574: {'path': 'temp/1765773872_845472_1399433574_58088b571693f9292ebbcf5317bf933d.jpg', 'extension': 'jpg'}, 1399433554: {'path': 'temp/1765773872_845472_1399433554_0ce8384f21419507fd9d08c66a9ba2f6.jpg', 'extension': 'jpg'}, 1399433557: {'path': 'temp/1765773872_845472_1399433557_887adeca6c6e6df77c321200d3069b65.jpg', 'extension': 'jpg'}, 1399433567: {'path': 'temp/1765773872_845472_1399433567_00d11f035da2bf272b8b3082bcd323f9.jpg', 'extension': 'jpg'}, 1399433569: {'path': 'temp/1765773872_845472_1399433569_b3514c7329da2c8f14fb3eeb9c69da29.jpg', 'extension': 'jpg'}, 1399433550: {'path': 'temp/1765773872_845472_1399433550_c05a0190e79c6f38e0f79a44f948827d.jpg', 'extension': 'jpg'}, 1399433552: {'path': 'temp/1765773872_845472_1399433552_8bb19e395eb1b63e7ffeebcc64a9a78c.jpg', 'extension': 'jpg'}, 1399433570: {'path': 'temp/1765773872_845472_1399433570_91f59e6f63ceddd28a27162b72d36021.jpg', 'extension': 'jpg'}, 1399433572: {'path': 'temp/1765773872_845472_1399433572_2b2c37a020cac0b972b49e0580fc5616.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 = 29417539; (('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 = 29417539 group by h (('05', 57),) 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=29417539 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 (29417539) 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 (29417539) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15122025 29417539 Nombre de photos uploadées : 57 / 23040 (0%) 15122025 29417539 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 15122025 29417539 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1399433313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9981299bfd570aa4d5909e8a945c3a4d.jpg', 'username': None, 'uploaded_at': 1765773090, 'text': 'image_15122025_05_30_45_010142m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1399433328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/62ad521c41084c0fd0dac4a3b323e38f.jpg', 'username': None, 'uploaded_at': 1765773128, 'text': 'image_15122025_05_30_55_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399433326, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/cefc14b1952bc73c5254628430426abe.jpg', 'username': None, 'uploaded_at': 1765773128, 'text': 'image_15122025_05_31_35_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399433324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/cc0a2ed7f280cd78c99860130c2b032d.jpg', 'username': None, 'uploaded_at': 1765773128, 'text': 'image_15122025_05_31_45_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026116371154785156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29417539, '2025-12-15' ) 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-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2736590,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24501800537109375 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= 2736590 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2736590, 'dashboard_run_id': 2743467, 'mtr_portfolio_id': 29417280, 'dashboard_result_id': 18361080, '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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}"}, {'dashboat_entry_day': 2736590, 'dashboard_run_id': 2743467, 'mtr_portfolio_id': 29417445, 'dashboard_result_id': 18361081, '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_P29417445_15-12-2025_05_26_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417457, 'pht': 3726}}"}, {'dashboat_entry_day': 2736590, 'dashboard_run_id': 2743467, 'mtr_portfolio_id': 29417539, 'dashboard_result_id': 18361082, '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_P29417539_15-12-2025_05_42_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, '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 = 29417280 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': 4221122, 'mtr_portfolio_id': 29417280, 'created_at': datetime.datetime(2025, 12, 15, 5, 33, 1), 'result': '0.08095185877014659', 'result_long': None, 'result_double': None}] Qualite : 0.08095185877014659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417280 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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}" where mtr_portfolio_id = 29417280 and dashboard_run_id = 2743467 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`=29417280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18361080, 0.08095185877014659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, '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 = 29417445 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29417445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29417445 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29417445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29417445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417445_15-12-2025_05_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417445 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_P29417445_15-12-2025_05_26_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417457, 'pht': 3726}}" where mtr_portfolio_id = 29417445 and dashboard_run_id = 2743467 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 = 29417539 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': 4221177, 'mtr_portfolio_id': 29417539, 'created_at': datetime.datetime(2025, 12, 15, 5, 44, 32), 'result': '0.06045422618648236', 'result_long': None, 'result_double': None}] Qualite : 0.06045422618648236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417539 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_P29417539_15-12-2025_05_44_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}" where mtr_portfolio_id = 29417539 and dashboard_run_id = 2743467 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`=29417539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18361082, 0.06045422618648236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_44_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, '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 (29417280,29417445,29417539) result : ((1399431985,), (1399432443,), (1399432911,), (1399432913,), (1399432950,), (1399432963,), (1399432964,), (1399432965,), (1399432976,), (1399433319,), (1399433054,), (1399433206,), (1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15122025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29417539]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] map_info['map_portfolio_photo'] : {29417539: [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550, 1399433529, 1399433526, 1399433523, 1399433521, 1399433519, 1399433507, 1399433506, 1399433505, 1399433503, 1399433473, 1399433471, 1399433469, 1399433467, 1399433465, 1399433456, 1399433454, 1399433452, 1399433451, 1399433446, 1399433438, 1399433436, 1399433434, 1399433427, 1399433424, 1399433422, 1399433420, 1399433419, 1399433418, 1399433401, 1399433399, 1399433397, 1399433395, 1399433376, 1399433375, 1399433374, 1399433373, 1399433362, 1399433360, 1399433358, 1399433344, 1399433342, 1399433341, 1399433340, 1399433339, 1399433328, 1399433326, 1399433324, 1399433313]} final : True mtd_id 4302 list_pids : [1399433574, 1399433572, 1399433570, 1399433569, 1399433567, 1399433557, 1399433554, 1399433552, 1399433550] Looping around the photos to save general results len do output : 1 /29417539Didn'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, '4221177') ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177') ('4302', None, None, None, None, None, None, None, '4221177') ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29417539', 'None', None, None, None, None, '4221177'), ('4302', '29417539', '1399433574', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433572', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433570', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433569', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433567', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433557', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433554', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433552', None, None, None, None, None, '4221177'), ('4302', '29417539', '1399433550', None, None, None, None, None, '4221177')] time used for this insertion : 0.01671886444091797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5285923480987549 time spend to save output : 0.016927242279052734 total time spend for step 5 : 0.5455195903778076 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 (4221177) 2.15user 1.63system 0:12.90elapsed 29%CPU (0avgtext+0avgdata 167964maxresident)k 400inputs+12072outputs (8major+81151minor)pagefaults 0swaps