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 : 2726406 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 (3719836) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3719836) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836300 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3719836'] with mtr_portfolio_ids : ['26836300'] and first list_photo_ids : [] new path : /proc/2726406/ Name: python3 Umask: 0002 State: R (running) Tgid: 2726406 Ngid: 0 Pid: 2726406 PPid: 2726405 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2726406 NSpid: 2726406 NSpgid: 2725216 NSsid: 2725216 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99896 kB VmRSS: 99896 kB RssAnon: 60164 kB RssFile: 39732 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 52 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2726406', 'Ngid': '0', 'Pid': '2726406', 'PPid': '2726405', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2726406', 'NSpid': '2726406', 'NSpgid': '2725216', 'NSsid': '2725216', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99896 kB', 'VmRSS': '99896 kB', 'RssAnon': '60164 kB', 'RssFile': '39732 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '52', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '2726406', '1107252', '0', '1107252', '866004', '99896', b'', 'marlene', '3719836') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26836300) 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 (3719836 ) ) 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 (26836300) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383699999, 'portfolio_id': 26836300}, {'photo_id': 1383699988, 'portfolio_id': 26836300}, {'photo_id': 1383699986, 'portfolio_id': 26836300}, {'photo_id': 1383699980, 'portfolio_id': 26836300}, {'photo_id': 1383699975, 'portfolio_id': 26836300}, {'photo_id': 1383699947, 'portfolio_id': 26836300}, {'photo_id': 1383699945, 'portfolio_id': 26836300}, {'photo_id': 1383699944, 'portfolio_id': 26836300}, {'photo_id': 1383699943, 'portfolio_id': 26836300}, {'photo_id': 1383699942, 'portfolio_id': 26836300}, {'photo_id': 1383699936, 'portfolio_id': 26836300}, {'photo_id': 1383699934, 'portfolio_id': 26836300}, {'photo_id': 1383699929, 'portfolio_id': 26836300}, {'photo_id': 1383699926, 'portfolio_id': 26836300}, {'photo_id': 1383699923, 'portfolio_id': 26836300}, {'photo_id': 1383699921, 'portfolio_id': 26836300}, {'photo_id': 1383699920, 'portfolio_id': 26836300}, {'photo_id': 1383699919, 'portfolio_id': 26836300}, {'photo_id': 1383699909, 'portfolio_id': 26836300}, {'photo_id': 1383699908, 'portfolio_id': 26836300}, {'photo_id': 1383699907, 'portfolio_id': 26836300}, {'photo_id': 1383699906, 'portfolio_id': 26836300}, {'photo_id': 1383699891, 'portfolio_id': 26836300}, {'photo_id': 1383699888, 'portfolio_id': 26836300}, {'photo_id': 1383699887, 'portfolio_id': 26836300}, {'photo_id': 1383699885, 'portfolio_id': 26836300}, {'photo_id': 1383699880, 'portfolio_id': 26836300}, {'photo_id': 1383699878, 'portfolio_id': 26836300}, {'photo_id': 1383699875, 'portfolio_id': 26836300}, {'photo_id': 1383699874, 'portfolio_id': 26836300}, {'photo_id': 1383699873, 'portfolio_id': 26836300}, {'photo_id': 1383699872, 'portfolio_id': 26836300}, {'photo_id': 1383699859, 'portfolio_id': 26836300}, {'photo_id': 1383699857, 'portfolio_id': 26836300}, {'photo_id': 1383699855, 'portfolio_id': 26836300}, {'photo_id': 1383699853, 'portfolio_id': 26836300}, {'photo_id': 1383699848, 'portfolio_id': 26836300}, {'photo_id': 1383699846, 'portfolio_id': 26836300}, {'photo_id': 1383699844, 'portfolio_id': 26836300}, {'photo_id': 1383699842, 'portfolio_id': 26836300}, {'photo_id': 1383699840, 'portfolio_id': 26836300}, {'photo_id': 1383699825, 'portfolio_id': 26836300}, {'photo_id': 1383699823, 'portfolio_id': 26836300}, {'photo_id': 1383699796, 'portfolio_id': 26836300}, {'photo_id': 1383699795, 'portfolio_id': 26836300}, {'photo_id': 1383699794, 'portfolio_id': 26836300}, {'photo_id': 1383699792, 'portfolio_id': 26836300}, {'photo_id': 1383699789, 'portfolio_id': 26836300}, {'photo_id': 1383699787, 'portfolio_id': 26836300}, {'photo_id': 1383699784, 'portfolio_id': 26836300}, {'photo_id': 1383699783, 'portfolio_id': 26836300}, {'photo_id': 1383699782, 'portfolio_id': 26836300}, {'photo_id': 1383699781, 'portfolio_id': 26836300}, {'photo_id': 1383699768, 'portfolio_id': 26836300}, {'photo_id': 1383699765, 'portfolio_id': 26836300}, {'photo_id': 1383699763, 'portfolio_id': 26836300}, {'photo_id': 1383699761, 'portfolio_id': 26836300}, {'photo_id': 1383699744, 'portfolio_id': 26836300}] map_portfolio_id_photo_id: {26836300: [1383699999, 1383699988, 1383699986, 1383699980, 1383699975, 1383699947, 1383699945, 1383699944, 1383699943, 1383699942, 1383699936, 1383699934, 1383699929, 1383699926, 1383699923, 1383699921, 1383699920, 1383699919, 1383699909, 1383699908, 1383699907, 1383699906, 1383699891, 1383699888, 1383699887, 1383699885, 1383699880, 1383699878, 1383699875, 1383699874, 1383699873, 1383699872, 1383699859, 1383699857, 1383699855, 1383699853, 1383699848, 1383699846, 1383699844, 1383699842, 1383699840, 1383699825, 1383699823, 1383699796, 1383699795, 1383699794, 1383699792, 1383699789, 1383699787, 1383699784, 1383699783, 1383699782, 1383699781, 1383699768, 1383699765, 1383699763, 1383699761, 1383699744]} ##### 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.016101360321044922 #### 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 Sep 15 06:02:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26836300) 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 : 26836300 get user id for portfolio 26836300 get sub ptf for main ptf 26836300, type 3726 and hashtags ['metal', 'kraft', 'papier', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'Carton_brun', 'environnement', 'Carton_gris', 'plastique', 'mal_croppe'] 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`=26836300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','papier','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_brun','environnement','Carton_gris','plastique','mal_croppe')) 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`=26836300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','papier','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_brun','environnement','Carton_gris','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26836300, 'sub_port_id': 26836303, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090321, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'Carton_brun': {'main_port_id': 26836300, 'sub_port_id': 26836304, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090322, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'environnement': {'main_port_id': 26836300, 'sub_port_id': 26836305, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090323, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 26836300, 'sub_port_id': 26836306, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090324, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'plastique': {'main_port_id': 26836300, 'sub_port_id': 26836307, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090325, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'flou': {'main_port_id': 26836300, 'sub_port_id': 26836308, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090326, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'cartonnette': {'main_port_id': 26836300, 'sub_port_id': 26836309, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090327, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'papier': {'main_port_id': 26836300, 'sub_port_id': 26836310, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090328, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'mal_croppe': {'main_port_id': 26836300, 'sub_port_id': 26836311, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090329, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'metal': {'main_port_id': 26836300, 'sub_port_id': 26836312, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090330, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'autre_refus': {'main_port_id': 26836300, 'sub_port_id': 26836313, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090331, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}, 'Carton_gris': {'main_port_id': 26836300, 'sub_port_id': 26836314, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090332, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26836303 , 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=26836300 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 (26836303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836304 , 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=26836300 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 (26836304) result : ((1383699800,), (1383699810,), (1383699811,), (1383699835,), (1383699868,), (1383699899,), (1383699901,), (1383699905,), (1383699931,), (1383700007,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836305 , 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=26836300 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 (26836305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836306 , 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=26836300 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 (26836306) result : ((1383699829,), (1383699830,), (1383699895,), (1383699896,), (1383699897,), (1383699928,), (1383699938,), (1383699957,), (1383699958,), (1383699959,), (1383699960,), (1383699961,), (1383699962,), (1383699963,), (1383699964,), (1383699965,), (1383699966,), (1383699967,), (1383699968,), (1383699969,), (1383699977,), (1383699978,), (1383699979,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836307 , 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=26836300 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 (26836307) result : ((1383699833,), (1383699941,), (1383699985,), (1383700008,), (1383700010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836308 , 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=26836300 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 (26836308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836309 , 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=26836300 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 (26836309) result : ((1383699832,), (1383699898,), (1383699904,), (1383699973,), (1383699974,), (1383699983,), (1383699984,), (1383700006,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836310 , 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=26836300 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 (26836310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836311 , 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=26836300 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 (26836311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836312 , 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=26836300 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 (26836312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836313 , 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=26836300 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 (26836313) result : ((1383699806,), (1383699807,), (1383699808,), (1383699809,), (1383699831,), (1383699834,), (1383699939,), (1383699970,), (1383699971,), (1383699972,), (1383699982,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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 26836314 , 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=26836300 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 (26836314) result : ((1383699930,), (1383699940,), (1383700005,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26836300) result : ((1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) 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`=26836300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','papier','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_brun','environnement','Carton_gris','plastique','mal_croppe')) 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`=26836300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','papier','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','Carton_brun','environnement','Carton_gris','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26836300, 'sub_port_id': 26836315, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090333, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'Carton_brun': {'main_port_id': 26836300, 'sub_port_id': 26836316, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090334, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'environnement': {'main_port_id': 26836300, 'sub_port_id': 26836317, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090335, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 26836300, 'sub_port_id': 26836318, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090336, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'plastique': {'main_port_id': 26836300, 'sub_port_id': 26836319, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090337, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'flou': {'main_port_id': 26836300, 'sub_port_id': 26836320, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090338, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'cartonnette': {'main_port_id': 26836300, 'sub_port_id': 26836321, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090339, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'papier': {'main_port_id': 26836300, 'sub_port_id': 26836322, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090340, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'mal_croppe': {'main_port_id': 26836300, 'sub_port_id': 26836323, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090341, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'metal': {'main_port_id': 26836300, 'sub_port_id': 26836324, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090342, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'autre_refus': {'main_port_id': 26836300, 'sub_port_id': 26836325, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090343, 'last_updated_at': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 5, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}, 'Carton_gris': {'main_port_id': 26836300, 'sub_port_id': 26836326, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18090344, 'last_updated_at': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 15, 6, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 15, 5, 50, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26836326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26836314 lien utilise dans velours : https://marlene.fotonower.com/velours/26836315,26836316,26836317,26836318,26836319,26836320,26836321,26836322,26836323,26836324,26836325,26836326?tags=kraft,Carton_brun,environnement,Teint_Dans_La_Masse,plastique,flou,cartonnette,papier,mal_croppe,metal,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26836300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383699999] map_info['map_portfolio_photo'] : {26836300: [1383699999, 1383699988, 1383699986, 1383699980, 1383699975, 1383699947, 1383699945, 1383699944, 1383699943, 1383699942, 1383699936, 1383699934, 1383699929, 1383699926, 1383699923, 1383699921, 1383699920, 1383699919, 1383699909, 1383699908, 1383699907, 1383699906, 1383699891, 1383699888, 1383699887, 1383699885, 1383699880, 1383699878, 1383699875, 1383699874, 1383699873, 1383699872, 1383699859, 1383699857, 1383699855, 1383699853, 1383699848, 1383699846, 1383699844, 1383699842, 1383699840, 1383699825, 1383699823, 1383699796, 1383699795, 1383699794, 1383699792, 1383699789, 1383699787, 1383699784, 1383699783, 1383699782, 1383699781, 1383699768, 1383699765, 1383699763, 1383699761, 1383699744]} final : False mtd_id 4302 list_pids : [1383699999] Looping around the photos to save general results len do output : 1 /26836300. 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, '3719836') ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26836300', "{'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314}", None, None, None, None, '3719836'), ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836')] time used for this insertion : 0.048825740814208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6246991157531738 time spend to save output : 0.04904341697692871 total time spend for step 1 : 1.6737425327301025 step2:final Mon Sep 15 06:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (26836300) 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 26836300 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383699744,1383699768,1383699765,1383699763,1383699761,1383699789,1383699787,1383699784,1383699783,1383699782,1383699781,1383699796,1383699795,1383699794,1383699792,1383699825,1383699823,1383699848,1383699846,1383699844,1383699842,1383699840,1383699859,1383699857,1383699855,1383699853,1383699880,1383699878,1383699875,1383699874,1383699873,1383699872,1383699891,1383699888,1383699887,1383699885,1383699909,1383699936,1383699908,1383699934,1383699907,1383699929,1383699906,1383699926,1383699923,1383699921,1383699920,1383699919,1383699947,1383699945,1383699944,1383699943,1383699942,1383699988,1383699986,1383699980,1383699975,1383699999); 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([26836300]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383699999: ('0.09459732304082115',)} new output for save of step final : {1383699999: ('0.09459732304082115',)} [1383699999] map_info['map_portfolio_photo'] : {26836300: [1383699999, 1383699988, 1383699986, 1383699980, 1383699975, 1383699947, 1383699945, 1383699944, 1383699943, 1383699942, 1383699936, 1383699934, 1383699929, 1383699926, 1383699923, 1383699921, 1383699920, 1383699919, 1383699909, 1383699908, 1383699907, 1383699906, 1383699891, 1383699888, 1383699887, 1383699885, 1383699880, 1383699878, 1383699875, 1383699874, 1383699873, 1383699872, 1383699859, 1383699857, 1383699855, 1383699853, 1383699848, 1383699846, 1383699844, 1383699842, 1383699840, 1383699825, 1383699823, 1383699796, 1383699795, 1383699794, 1383699792, 1383699789, 1383699787, 1383699784, 1383699783, 1383699782, 1383699781, 1383699768, 1383699765, 1383699763, 1383699761, 1383699744]} final : False mtd_id 4302 list_pids : [1383699999] Looping around the photos to save general results len do output : 1 /1383699999.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, '3719836') ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26836300', '1383699999', '0.09459732304082115', None, None, None, None, '3719836')] time used for this insertion : 0.016089200973510742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.39786267280578613 time spend to save output : 0.016259193420410156 total time spend for step 2 : 0.4141218662261963 step3:velours_tree Mon Sep 15 06:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26836300: [{'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314}]} input_args_next_step : {26836300: ()} output_args : {26836300: [{'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314}]} args : 26836300 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 : ({'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26836300) 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([26836300]) 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.26803040504455566 time spend to save output : 4.744529724121094e-05 total time spend for step 3 : 0.2680778503417969 step4:send_mail_cod Mon Sep 15 06:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1383699999: ('0.09459732304082115',)} input_args_next_step : {1383699999: ()} output_args : {1383699999: ('0.09459732304082115',)} args : 1383699999 depend.output_id : 0 complete output_args for input 3 : {26836300: [{'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314}]} input_args_next_step : {1383699999: ('0.09459732304082115',), 26836300: ()} output_args : {26836300: [{'kraft': 26836303, 'Carton_brun': 26836304, 'environnement': 26836305, 'Teint_Dans_La_Masse': 26836306, 'plastique': 26836307, 'flou': 26836308, 'cartonnette': 26836309, 'papier': 26836310, 'mal_croppe': 26836311, 'metal': 26836312, 'autre_refus': 26836313, 'Carton_gris': 26836314}]} args : 26836300 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.09459732304082115',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26836300) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1383699999) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383699999 download finish for photo 1383699999 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette268363031757908979/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P26836300_15-09-2025_06_02_59.pdf 26836303 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268363031757908979 26836307 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699833: '1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205962_0.png', 1383699941: '1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206429_0.png', 1383699985: '1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206925_0.png', 1383700008: '1757908865_3979966_1383699986_c6638da95ba5cab526f1637e06d457e2_rle_crop_3958207050_0.png', 1383700010: '1757908865_3979966_1383699980_2f03d9455141fe9261a7154d2cb4d5d0_rle_crop_3958207067_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b54202ec9f60b75f824fad7f560cd090_84493413.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/ff6fe72d4588586f7ec41c65fe478728_36158284.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/f51a56f931cbfebfacbbbd23752b38d0_56997633.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/fb32e1fc64463fb4f8f91096deafc164_69258171.png change filename to text .imagette268363071757908979/ imagette268363071757908979/1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205962_0.png.png imagette268363071757908979/1757908865_3979966_1383699986_c6638da95ba5cab526f1637e06d457e2_rle_crop_3958207050_0.png.png imagette268363071757908979/1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206925_0.png.png imagette268363071757908979/1757908865_3979966_1383699980_2f03d9455141fe9261a7154d2cb4d5d0_rle_crop_3958207067_0.png.png imagette268363071757908979/1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206429_0.png.png imagette268363081757908980/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/e24c682c24d88b319c5c593475cb40d1_11053377.png imagette268363071757908979 26836308 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268363081757908980 26836309 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699832: '1757908266_3950127_1383699794_cba35efafbf27228a4e945af8ae04467_rle_crop_3958205978_0.png', 1383699898: '1757908506_3961602_1383699857_e94206b99448432d9ebeb52ca6f3bd75_rle_crop_3958206215_0.png', 1383699904: '1757908526_3961999_1383699859_3544aa72ac6dca7ed03f3dc3ce13af84_rle_crop_3958206265_0.png', 1383699973: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206643_0.png', 1383699974: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206825_0.png', 1383699983: '1757908767_3973320_1383699921_a369936caac001b112763d58052940aa_rle_crop_3958206887_0.png', 1383699984: '1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206922_0.png', 1383700006: '1757908865_3979966_1383699980_2f03d9455141fe9261a7154d2cb4d5d0_rle_crop_3958207069_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/8c6754d00d955b587b22119e2b3b27d8_46935074.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b93272a6660a00770a7355a178ce1d1a_87353992.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2c7616d2d2dc417d70ee41896f14eae9_8634726.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b56f91d67e4122506cc1ef38175c4090_56796631.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/6acc222285bb1fc1b08248c4d6de273d_38572264.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/65b149dd19f7e0655ad37962a460daca_5038601.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/bf981e1d0fecdd597a1f0e903f4e6a48_60135214.png change filename to text .imagette268363091757908980/ imagette268363091757908980/1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206922_0.png.png imagette268363091757908980/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206825_0.png.png imagette268363091757908980/1757908506_3961602_1383699857_e94206b99448432d9ebeb52ca6f3bd75_rle_crop_3958206215_0.png.png imagette268363091757908980/1757908865_3979966_1383699980_2f03d9455141fe9261a7154d2cb4d5d0_rle_crop_3958207069_0.png.png imagette268363091757908980/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206643_0.png.png imagette268363091757908980/1757908767_3973320_1383699921_a369936caac001b112763d58052940aa_rle_crop_3958206887_0.png.png imagette268363091757908980/1757908526_3961999_1383699859_3544aa72ac6dca7ed03f3dc3ce13af84_rle_crop_3958206265_0.png.png imagette268363091757908980/1757908266_3950127_1383699794_cba35efafbf27228a4e945af8ae04467_rle_crop_3958205978_0.png.png imagette268363111757908980/ imagette268363121757908980/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/62dabfcdbd8093b6c41ba84b0d37b985_27323438.png imagette268363091757908980 26836311 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268363111757908980 26836312 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268363121757908980 26836313 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699806: '1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205814_0.png', 1383699807: '1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205815_0.png', 1383699808: '1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205828_0.png', 1383699809: '1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205829_0.png', 1383699831: '1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205960_0.png', 1383699834: '1757908287_3950710_1383699789_8873dc4e27a13616afb59ea73302cfd9_rle_crop_3958206043_0.png', 1383699939: '1757908647_3968138_1383699887_bdd4bce3c1b0395cdb83f12ccd304d84_rle_crop_3958206453_0.png', 1383699970: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206644_0.png', 1383699971: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206654_0.png', 1383699972: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206834_0.png', 1383699982: '1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206919_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/07378fa4d7249bf6fa9734b05a81fc61_3372187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/332d55c9e73d70192d9ca96f9e51180f_10487416.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/07378fa4d7249bf6fa9734b05a81fc61_28246809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/332d55c9e73d70192d9ca96f9e51180f_49461684.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/7ca31cef20c2cc81713d812b4b2c77e0_41783788.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/6174743279a053d847b531b548fc44bf_28218765.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/52c65f160f9d953cc6a99e3b77649cdc_29867471.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/abdf79153dc217c776c8d6fb7a3bd409_7546816.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/5afd7c1a19db22a0687f26df745081e3_34606530.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/6bc418d72d4c1a36d439b1d849254f19_52153000.png change filename to text .imagette268363131757908980/ imagette268363131757908980/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206834_0.png.png imagette268363131757908980/1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205814_0.png.png imagette268363131757908980/1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205815_0.png.png imagette268363131757908980/1757908767_3973320_1383699919_e84b3a35e0770d179d2f0d353841f6d2_rle_crop_3958206919_0.png.png imagette268363131757908980/1757908647_3968138_1383699887_bdd4bce3c1b0395cdb83f12ccd304d84_rle_crop_3958206453_0.png.png imagette268363131757908980/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206644_0.png.png imagette268363131757908980/1757908287_3950710_1383699789_8873dc4e27a13616afb59ea73302cfd9_rle_crop_3958206043_0.png.png imagette268363131757908980/1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205829_0.png.png imagette268363131757908980/1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205960_0.png.png imagette268363131757908980/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206654_0.png.png imagette268363131757908980/1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205828_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/7467c7a8b1b5b8b973297792c4fbb973_44245861.png imagette268363131757908980 26836304 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699800: '1757908145_3944789_1383699761_54554811ceaab0d05f47c9a136bf81e5_rle_crop_3958205762_0.png', 1383699810: '1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205816_0.png', 1383699811: '1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205830_0.png', 1383699835: '1757908287_3950710_1383699789_8873dc4e27a13616afb59ea73302cfd9_rle_crop_3958206041_0.png', 1383699868: '1757908406_3956717_1383699840_51b9327a7e6e7a972431fbd83c861371_rle_crop_3958206147_0.png', 1383699899: '1757908506_3961602_1383699857_e94206b99448432d9ebeb52ca6f3bd75_rle_crop_3958206217_0.png', 1383699901: '1757908506_3961602_1383699855_08fda7fcae65c01cb22850f910abd707_rle_crop_3958206226_0.png', 1383699905: '1757908526_3961999_1383699859_3544aa72ac6dca7ed03f3dc3ce13af84_rle_crop_3958206266_0.png', 1383699931: '1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206317_0.png', 1383700007: '1757908865_3979966_1383699986_c6638da95ba5cab526f1637e06d457e2_rle_crop_3958207049_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/1597a4b6d6d7b8a81a4ce5c859e3a350_63542200.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/af1fb6d8dd2aa62b961d681fd6ac447f_97300796.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/af1fb6d8dd2aa62b961d681fd6ac447f_22956389.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/666771e6014357e3c3b496108e1b3efe_90823386.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/5627c34600b36e6e00229b80c3901b6a_63439841.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/f1f337ac0d97e638bfa866a4f6e49960_73658395.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2bd6a022f0857de4423535757e22b260_60789867.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/6e49a8141b0e3e449c2939b45646b6af_55217293.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3a6f4422373f18386669993435fcfd7d_21538545.png change filename to text .imagette268363041757908981/ imagette268363041757908981/1757908167_3945219_1383699768_198d5854ab63c794d66d7e4b3203697e_rle_crop_3958205816_0.png.png imagette268363041757908981/1757908145_3944789_1383699761_54554811ceaab0d05f47c9a136bf81e5_rle_crop_3958205762_0.png.png imagette268363041757908981/1757908506_3961602_1383699855_08fda7fcae65c01cb22850f910abd707_rle_crop_3958206226_0.png.png imagette268363041757908981/1757908506_3961602_1383699857_e94206b99448432d9ebeb52ca6f3bd75_rle_crop_3958206217_0.png.png imagette268363041757908981/1757908865_3979966_1383699986_c6638da95ba5cab526f1637e06d457e2_rle_crop_3958207049_0.png.png imagette268363041757908981/1757908526_3961999_1383699859_3544aa72ac6dca7ed03f3dc3ce13af84_rle_crop_3958206266_0.png.png imagette268363041757908981/1757908406_3956717_1383699840_51b9327a7e6e7a972431fbd83c861371_rle_crop_3958206147_0.png.png imagette268363041757908981/1757908287_3950710_1383699789_8873dc4e27a13616afb59ea73302cfd9_rle_crop_3958206041_0.png.png imagette268363041757908981/1757908167_3945219_1383699744_74eb7b054c5e885e0bc5664b31c3ec88_rle_crop_3958205830_0.png.png imagette268363041757908981/1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206317_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2a6f5897cd0c8edb0d07666224babd92_12844103.png imagette268363041757908981 26836306 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699961: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206661_0.png', 1383699979: '1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206869_0.png', 1383699978: '1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206865_0.png', 1383699977: '1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206880_0.png', 1383699969: '1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206852_0.png', 1383699968: '1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206853_0.png', 1383699967: '1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206855_0.png', 1383699966: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206838_0.png', 1383699965: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206841_0.png', 1383699964: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206842_0.png', 1383699963: '1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206835_0.png', 1383699962: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206658_0.png', 1383699829: '1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205964_0.png', 1383699960: '1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206660_0.png', 1383699959: '1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206631_0.png', 1383699958: '1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206638_0.png', 1383699957: '1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206630_0.png', 1383699938: '1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206425_0.png', 1383699928: '1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206325_0.png', 1383699897: '1757908506_3961602_1383699853_f31e4f3f778ba321fd085287f82802d7_rle_crop_3958206240_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/039ff431c521209ee880dfd73b53e054_13808899.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/70f37450b0dcdc4cf461edd7fbbb2769_68485137.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/2d7ae9f23b4fc05342cd104187d9038d_14270320.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/884a2b99e3c4a30fb66cd148dacb7eca_3223222.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/06335ac943cea2b877b0d3249ee15a0b_49810267.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/884bfba50c66a01bb04ac2538eb7967e_83701549.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/663fba29192a3a673a556adfacc53567_11687451.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/966a8a23ad2094cbdde33c2a2447e008_48619244.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/5a06fbe0e2fde47d52f9dba74cbe7af0_5128450.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/dd9ec2e1b5e9a62e6e5ba64919d671b7_11001085.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/e355fc3f0da9ef56dfead397be56d55f_30464112.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/7fb924ad2b1757add680c96f2e20f793_46059669.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/69ce625620a21f0589d74dc7a7a28545_70275159.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3dea8923395261000ec09dc7cadb1bf1_25689611.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/10921ac9b2495ea701a2b7356985ef46_70170258.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/0577ebcb90ef67a90047430b397c7822_38147914.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3285f7bb073ece49a392a2bd5b47c1dc_20784006.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/3a7c4ff01ba8f6f785c688aefb6f3add_8398466.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/49017aed3d0b061d781cd603371ff278_59480198.png change filename to text .imagette268363061757908982/ imagette268363061757908982/1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206855_0.png.png imagette268363061757908982/1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206865_0.png.png imagette268363061757908982/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206841_0.png.png imagette268363061757908982/1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206630_0.png.png imagette268363061757908982/1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206852_0.png.png imagette268363061757908982/1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206325_0.png.png imagette268363061757908982/1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206425_0.png.png imagette268363061757908982/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206661_0.png.png imagette268363061757908982/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206660_0.png.png imagette268363061757908982/1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206880_0.png.png imagette268363061757908982/1757908747_3972984_1383699942_ad614f09c1c9d63d7c3018ad144ed79a_rle_crop_3958206853_0.png.png imagette268363061757908982/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206838_0.png.png imagette268363061757908982/1757908747_3972984_1383699944_09a9c1f8c1b960df7dbd2eb0f638b956_rle_crop_3958206658_0.png.png imagette268363061757908982/1757908767_3973320_1383699947_87c7531d1be5929008a00c6f57c9ab1f_rle_crop_3958206869_0.png.png imagette268363061757908982/1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206638_0.png.png imagette268363061757908982/1757908266_3950127_1383699795_c40b834dd3e5df10b60ddd693bc97598_rle_crop_3958205964_0.png.png imagette268363061757908982/1757908747_3972984_1383699945_b16914f60391f7094e26fd4d7b2b7d59_rle_crop_3958206631_0.png.png imagette268363061757908982/1757908506_3961602_1383699853_f31e4f3f778ba321fd085287f82802d7_rle_crop_3958206240_0.png.png imagette268363061757908982/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206835_0.png.png imagette268363061757908982/1757908747_3972984_1383699943_a0a825940da9a27c99cba90e3ae7cb9a_rle_crop_3958206842_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/88da6180f3cb691604e4aa66fd6f679a_29801106.png imagette268363061757908982 26836314 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383699930: '1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206324_0.png', 1383699940: '1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206422_0.png', 1383700005: '1757908865_3979966_1383699975_eb1df34166a867b4b69e7feb9225a61a_rle_crop_3958207086_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/51a4766f505a6177098909df16f7b583_41450912.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/fdcabe0001dfdd4f8c50cfb8bdce1063_74676636.png change filename to text .imagette268363141757908983/ imagette268363141757908983/1757908647_3968138_1383699909_317a4082342fa63f96fd29665456bed8_rle_crop_3958206422_0.png.png imagette268363141757908983/1757908625_3967733_1383699908_74538118d4b764a4a4f8e22d508712d4_rle_crop_3958206324_0.png.png imagette268363141757908983/1757908865_3979966_1383699975_eb1df34166a867b4b69e7feb9225a61a_rle_crop_3958207086_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/b5fdca645d359010a449df56bb659ef2_12138212.png imagette268363141757908983 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26836300 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26836315,26836316,26836317,26836318,26836319,26836320,26836321,26836322,26836323,26836324,26836325,26836326?tags=kraft,Carton_brun,environnement,Teint_Dans_La_Masse,plastique,flou,cartonnette,papier,mal_croppe,metal,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1383699999] : ('0.09459732304082115',) no score found for photo 1383699999 We are sending mail with results at report@fotonower.com refus_total : 0.09459732304082115 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836300 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_P26836300_15-09-2025_06_02_59.pdf results_Auto_P26836300_15-09-2025_06_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26836300','results_Auto_P26836300_15-09-2025_06_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf','pdf','','0.25','0.09459732304082115') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26836300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383699999] map_info['map_portfolio_photo'] : {26836300: [1383699999, 1383699988, 1383699986, 1383699980, 1383699975, 1383699947, 1383699945, 1383699944, 1383699943, 1383699942, 1383699936, 1383699934, 1383699929, 1383699926, 1383699923, 1383699921, 1383699920, 1383699919, 1383699909, 1383699908, 1383699907, 1383699906, 1383699891, 1383699888, 1383699887, 1383699885, 1383699880, 1383699878, 1383699875, 1383699874, 1383699873, 1383699872, 1383699859, 1383699857, 1383699855, 1383699853, 1383699848, 1383699846, 1383699844, 1383699842, 1383699840, 1383699825, 1383699823, 1383699796, 1383699795, 1383699794, 1383699792, 1383699789, 1383699787, 1383699784, 1383699783, 1383699782, 1383699781, 1383699768, 1383699765, 1383699763, 1383699761, 1383699744]} final : False mtd_id 4302 list_pids : [1383699999] 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, '3719836') ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26836300', '1383699999', None, None, None, None, None, '3719836')] time used for this insertion : 0.012924432754516602 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.011330842971802 time spend to save output : 0.013100147247314453 total time spend for step 4 : 5.024430990219116 step5:split_time_score Mon Sep 15 06:03:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26836300'] 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 : [('26836300',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26836300) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383699999: {'path': 'temp/1757908979_2726406_1383699999_f922164993cb1ccfe185f4bc421af2df.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 = 26836300; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26836300 group by h (('05', 58),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26836300 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 (26836300) 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 (26836300) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15092025 26836300 Nombre de photos uploadées : 58 / 23040 (0%) 15092025 26836300 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 15092025 26836300 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1383699744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/74eb7b054c5e885e0bc5664b31c3ec88.jpg', 'username': None, 'uploaded_at': 1757907967, 'text': 'image_15092025_05_45_04_010159m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383699768, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/198d5854ab63c794d66d7e4b3203697e.jpg', 'username': None, 'uploaded_at': 1757908037, 'text': 'image_15092025_05_45_04_010159m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383699765, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/8ee948879f6a5deea51359f297c7d4f5.jpg', 'username': None, 'uploaded_at': 1757908037, 'text': 'image_15092025_05_45_13_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383699763, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/15/c6304970b644aa1dbdc5468876564482.jpg', 'username': None, 'uploaded_at': 1757908037, 'text': 'image_15092025_05_46_24_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022001266479492188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26836300, '2025-09-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2286127,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22158026695251465 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= 2286127 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293569, 'mtr_portfolio_id': 26835709, 'dashboard_result_id': 15143348, '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_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293569, 'mtr_portfolio_id': 26835864, 'dashboard_result_id': 15143349, '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_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293569, 'mtr_portfolio_id': 26836097, 'dashboard_result_id': 15143350, '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_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, 'pht': 3726}}"}, {'dashboat_entry_day': 2286127, 'dashboard_run_id': 2293569, 'mtr_portfolio_id': 26836300, 'dashboard_result_id': 15143351, '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_P26836300_15-09-2025_05_59_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, '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 = 26835709 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': 3719743, 'mtr_portfolio_id': 26835709, 'created_at': datetime.datetime(2025, 9, 15, 5, 23), 'result': '0.06109873043356822', 'result_long': None, 'result_double': None}] Qualite : 0.06109873043356822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26835709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835709_15-09-2025_05_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26835709 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_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, 'pht': 3726}}" where mtr_portfolio_id = 26835709 and dashboard_run_id = 2293569 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`=26835709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15143348, 0.06109873043356822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835709_15-09-2025_05_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835722, '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 = 26835864 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': 3719776, 'mtr_portfolio_id': 26835864, 'created_at': datetime.datetime(2025, 9, 15, 5, 33), 'result': '0.04115374835945433', 'result_long': None, 'result_double': None}] Qualite : 0.04115374835945433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26835864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835864_15-09-2025_05_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26835864 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_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, 'pht': 3726}}" where mtr_portfolio_id = 26835864 and dashboard_run_id = 2293571 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`=26835864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15143349, 0.04115374835945433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26835864_15-09-2025_05_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26835868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26835869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26835870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26835871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26835872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26835873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26835874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26835875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26835876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26835877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26835878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26835879, '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 = 26836097 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': 3719813, 'mtr_portfolio_id': 26836097, 'created_at': datetime.datetime(2025, 9, 15, 5, 48, 57), 'result': '0.047495906117340385', 'result_long': None, 'result_double': None}] Qualite : 0.047495906117340385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836097_15-09-2025_05_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836097 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_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, 'pht': 3726}}" where mtr_portfolio_id = 26836097 and dashboard_run_id = 2293571 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`=26836097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15143350, 0.047495906117340385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836097_15-09-2025_05_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26836099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836110, '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 = 26836300 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': 3719836, 'mtr_portfolio_id': 26836300, 'created_at': datetime.datetime(2025, 9, 15, 6, 2, 59), 'result': '0.09459732304082115', 'result_long': None, 'result_double': None}] Qualite : 0.09459732304082115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26836300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26836300 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_P26836300_15-09-2025_06_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, 'pht': 3726}}" where mtr_portfolio_id = 26836300 and dashboard_run_id = 2293571 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`=26836300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15143351, 0.09459732304082115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26836300_15-09-2025_06_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26836303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26836304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26836305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26836306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26836307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26836308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26836309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26836310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26836311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26836312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26836313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26836314, '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 (26835709,26835864,26836097,26836300) result : ((1383699153,), (1383699155,), (1383699166,), (1383699169,), (1383699172,), (1383699179,), (1383699181,), (1383699184,), (1383699186,), (1383699197,), (1383699199,), (1383699202,), (1383699205,), (1383699208,), (1383699215,), (1383699217,), (1383699218,), (1383699222,), (1383699226,), (1383699242,), (1383699244,), (1383699246,), (1383699427,), (1383699374,), (1383699425,), (1383699436,), (1383699438,), (1383699440,), (1383699441,), (1383699443,), (1383699452,), (1383699478,), (1383699480,), (1383699482,), (1383699483,), (1383699491,), (1383699493,), (1383699494,), (1383699495,), (1383699510,), (1383699511,), (1383699512,), (1383699513,), (1383699522,), (1383699524,), (1383699525,), (1383699527,), (1383699529,), (1383699531,), (1383699556,), (1383699558,), (1383699569,), (1383699571,), (1383699573,), (1383699574,), (1383699581,), (1383699619,), (1383699657,), (1383699658,), (1383699659,), (1383699668,), (1383699670,), (1383699683,), (1383699697,), (1383699699,), (1383699700,), (1383699701,), (1383699713,), (1383699717,), (1383699719,), (1383699721,), (1383699723,), (1383699726,), (1383699729,), (1383699731,), (1383699745,), (1383699771,), (1383699744,), (1383699761,), (1383699763,), (1383699765,), (1383699768,), (1383699781,), (1383699782,), (1383699783,), (1383699784,), (1383699787,), (1383699789,), (1383699792,), (1383699794,), (1383699795,), (1383699796,), (1383699823,), (1383699825,), (1383699840,), (1383699842,), (1383699844,), (1383699846,), (1383699848,), (1383699853,), (1383699855,), (1383699857,), (1383699859,), (1383699872,), (1383699873,), (1383699874,), (1383699875,), (1383699878,), (1383699880,), (1383699885,), (1383699887,), (1383699888,), (1383699891,), (1383699906,), (1383699907,), (1383699908,), (1383699909,), (1383699919,), (1383699920,), (1383699921,), (1383699923,), (1383699926,), (1383699929,), (1383699934,), (1383699936,), (1383699942,), (1383699943,), (1383699944,), (1383699945,), (1383699947,), (1383699975,), (1383699980,), (1383699986,), (1383699988,), (1383699999,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15092025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26836300]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383699999] map_info['map_portfolio_photo'] : {26836300: [1383699999, 1383699988, 1383699986, 1383699980, 1383699975, 1383699947, 1383699945, 1383699944, 1383699943, 1383699942, 1383699936, 1383699934, 1383699929, 1383699926, 1383699923, 1383699921, 1383699920, 1383699919, 1383699909, 1383699908, 1383699907, 1383699906, 1383699891, 1383699888, 1383699887, 1383699885, 1383699880, 1383699878, 1383699875, 1383699874, 1383699873, 1383699872, 1383699859, 1383699857, 1383699855, 1383699853, 1383699848, 1383699846, 1383699844, 1383699842, 1383699840, 1383699825, 1383699823, 1383699796, 1383699795, 1383699794, 1383699792, 1383699789, 1383699787, 1383699784, 1383699783, 1383699782, 1383699781, 1383699768, 1383699765, 1383699763, 1383699761, 1383699744]} final : True mtd_id 4302 list_pids : [1383699999] Looping around the photos to save general results len do output : 1 /26836300Didn'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, '3719836') ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26836300', 'None', None, None, None, None, '3719836'), ('4302', '26836300', '1383699999', None, None, None, None, None, '3719836')] time used for this insertion : 0.014735937118530273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5532903671264648 time spend to save output : 0.014905929565429688 total time spend for step 5 : 0.5681962966918945 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 (3719836) 1.91user 2.42system 0:09.54elapsed 45%CPU (0avgtext+0avgdata 158000maxresident)k 320inputs+10728outputs (0major+63650minor)pagefaults 0swaps