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 : 2180414 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 (4320178) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4320178) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005785 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4320178'] with mtr_portfolio_ids : ['30005785'] and first list_photo_ids : [] new path : /proc/2180414/ Name: python3 Umask: 0002 State: R (running) Tgid: 2180414 Ngid: 0 Pid: 2180414 PPid: 2180413 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2180414 NSpid: 2180414 NSpgid: 2179068 NSsid: 2179068 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106184 kB VmRSS: 106184 kB RssAnon: 66296 kB RssFile: 39888 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 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: 49 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2180414', 'Ngid': '0', 'Pid': '2180414', 'PPid': '2180413', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2180414', 'NSpid': '2180414', 'NSpgid': '2179068', 'NSsid': '2179068', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106184 kB', 'VmRSS': '106184 kB', 'RssAnon': '66296 kB', 'RssFile': '39888 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 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': '49', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2180414', '1113368', '0', '1113368', '872096', '106184', b'', 'marlene', '4320178') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (30005785) 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 (4320178 ) ) 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 (30005785) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402744062, 'portfolio_id': 30005785}, {'photo_id': 1402744053, 'portfolio_id': 30005785}, {'photo_id': 1402744051, 'portfolio_id': 30005785}, {'photo_id': 1402744049, 'portfolio_id': 30005785}, {'photo_id': 1402744027, 'portfolio_id': 30005785}, {'photo_id': 1402744024, 'portfolio_id': 30005785}, {'photo_id': 1402744020, 'portfolio_id': 30005785}, {'photo_id': 1402744017, 'portfolio_id': 30005785}, {'photo_id': 1402744015, 'portfolio_id': 30005785}, {'photo_id': 1402743995, 'portfolio_id': 30005785}, {'photo_id': 1402743994, 'portfolio_id': 30005785}, {'photo_id': 1402743990, 'portfolio_id': 30005785}, {'photo_id': 1402743987, 'portfolio_id': 30005785}, {'photo_id': 1402743985, 'portfolio_id': 30005785}, {'photo_id': 1402743983, 'portfolio_id': 30005785}, {'photo_id': 1402743946, 'portfolio_id': 30005785}, {'photo_id': 1402743943, 'portfolio_id': 30005785}, {'photo_id': 1402743941, 'portfolio_id': 30005785}, {'photo_id': 1402743939, 'portfolio_id': 30005785}, {'photo_id': 1402743921, 'portfolio_id': 30005785}, {'photo_id': 1402743918, 'portfolio_id': 30005785}, {'photo_id': 1402743915, 'portfolio_id': 30005785}, {'photo_id': 1402743913, 'portfolio_id': 30005785}, {'photo_id': 1402743911, 'portfolio_id': 30005785}, {'photo_id': 1402743891, 'portfolio_id': 30005785}, {'photo_id': 1402743888, 'portfolio_id': 30005785}, {'photo_id': 1402743886, 'portfolio_id': 30005785}, {'photo_id': 1402743884, 'portfolio_id': 30005785}, {'photo_id': 1402743862, 'portfolio_id': 30005785}, {'photo_id': 1402743859, 'portfolio_id': 30005785}, {'photo_id': 1402743849, 'portfolio_id': 30005785}, {'photo_id': 1402743837, 'portfolio_id': 30005785}, {'photo_id': 1402743682, 'portfolio_id': 30005785}, {'photo_id': 1402743648, 'portfolio_id': 30005785}, {'photo_id': 1402743608, 'portfolio_id': 30005785}, {'photo_id': 1402743562, 'portfolio_id': 30005785}, {'photo_id': 1402743546, 'portfolio_id': 30005785}, {'photo_id': 1402743517, 'portfolio_id': 30005785}, {'photo_id': 1402743335, 'portfolio_id': 30005785}, {'photo_id': 1402743334, 'portfolio_id': 30005785}, {'photo_id': 1402743324, 'portfolio_id': 30005785}, {'photo_id': 1402743290, 'portfolio_id': 30005785}, {'photo_id': 1402742793, 'portfolio_id': 30005785}, {'photo_id': 1402742789, 'portfolio_id': 30005785}, {'photo_id': 1402742786, 'portfolio_id': 30005785}, {'photo_id': 1402742774, 'portfolio_id': 30005785}, {'photo_id': 1402742511, 'portfolio_id': 30005785}, {'photo_id': 1402742476, 'portfolio_id': 30005785}, {'photo_id': 1402742432, 'portfolio_id': 30005785}, {'photo_id': 1402742364, 'portfolio_id': 30005785}, {'photo_id': 1402742305, 'portfolio_id': 30005785}, {'photo_id': 1402742243, 'portfolio_id': 30005785}, {'photo_id': 1402741595, 'portfolio_id': 30005785}, {'photo_id': 1402741489, 'portfolio_id': 30005785}, {'photo_id': 1402741414, 'portfolio_id': 30005785}, {'photo_id': 1402741344, 'portfolio_id': 30005785}] map_portfolio_id_photo_id: {30005785: [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983, 1402743946, 1402743943, 1402743941, 1402743939, 1402743921, 1402743918, 1402743915, 1402743913, 1402743911, 1402743891, 1402743888, 1402743886, 1402743884, 1402743862, 1402743859, 1402743849, 1402743837, 1402743682, 1402743648, 1402743608, 1402743562, 1402743546, 1402743517, 1402743335, 1402743334, 1402743324, 1402743290, 1402742793, 1402742789, 1402742786, 1402742774, 1402742511, 1402742476, 1402742432, 1402742364, 1402742305, 1402742243, 1402741595, 1402741489, 1402741414, 1402741344]} ##### 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.018307924270629883 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 04:12:57 2026 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 (30005785) 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 : 30005785 get user id for portfolio 30005785 get sub ptf for main ptf 30005785, type 3726 and hashtags ['mal_croppe', 'kraft', 'cartonnette', 'Carton_brun', 'Carton_gris', 'autre_refus', 'papier', 'metal', 'flou', 'environnement', 'plastique', 'Teint_Dans_La_Masse'] 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`=30005785 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','cartonnette','Carton_brun','Carton_gris','autre_refus','papier','metal','flou','environnement','plastique','Teint_Dans_La_Masse')) 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`=30005785 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','cartonnette','Carton_brun','Carton_gris','autre_refus','papier','metal','flou','environnement','plastique','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 30005785, 'sub_port_id': 30005830, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536249, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'Carton_gris': {'main_port_id': 30005785, 'sub_port_id': 30005831, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536250, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'environnement': {'main_port_id': 30005785, 'sub_port_id': 30005832, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536251, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'mal_croppe': {'main_port_id': 30005785, 'sub_port_id': 30005833, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536252, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'metal': {'main_port_id': 30005785, 'sub_port_id': 30005834, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536253, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'Carton_brun': {'main_port_id': 30005785, 'sub_port_id': 30005835, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536254, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'papier': {'main_port_id': 30005785, 'sub_port_id': 30005836, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536255, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 30005785, 'sub_port_id': 30005837, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536256, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'kraft': {'main_port_id': 30005785, 'sub_port_id': 30005838, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536257, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'autre_refus': {'main_port_id': 30005785, 'sub_port_id': 30005839, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536258, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'plastique': {'main_port_id': 30005785, 'sub_port_id': 30005840, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536259, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}, 'cartonnette': {'main_port_id': 30005785, 'sub_port_id': 30005841, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536260, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30005830 , 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=30005785 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 (30005830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005831 , 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=30005785 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 (30005831) result : ((1402743475,), (1402743973,), (1402744040,), (1402744041,), (1402744058,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005832 , 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=30005785 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 (30005832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005833 , 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=30005785 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 (30005833) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005834 , 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=30005785 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 (30005834) result : ((1402744011,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005835 , 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=30005785 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 (30005835) result : ((1402743489,), (1402743491,), (1402743493,), (1402743975,), (1402743976,), (1402744008,), (1402744009,), (1402744010,), (1402744044,), (1402744045,), (1402744046,), (1402744060,), (1402744061,), (1402744084,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005836 , 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=30005785 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 (30005836) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005837 , 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=30005785 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 (30005837) result : ((1402743471,), (1402743472,), (1402743952,), (1402743953,), (1402743954,), (1402743972,), (1402744054,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005838 , 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=30005785 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 (30005838) result : ((1402743964,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005839 , 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=30005785 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 (30005839) result : ((1402743473,), (1402744005,), (1402744006,), (1402744036,), (1402744037,), (1402744038,), (1402744039,), (1402744056,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005840 , 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=30005785 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 (30005840) result : ((1402743502,), (1402743958,), (1402743959,), (1402743961,), (1402743962,), (1402743978,), (1402743979,), (1402744064,), (1402744065,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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 30005841 , 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=30005785 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 (30005841) result : ((1402743476,), (1402743477,), (1402743478,), (1402743479,), (1402743955,), (1402743956,), (1402743974,), (1402744042,), (1402744059,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30005785) result : ((1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) 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`=30005785 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','cartonnette','Carton_brun','Carton_gris','autre_refus','papier','metal','flou','environnement','plastique','Teint_Dans_La_Masse')) 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`=30005785 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','cartonnette','Carton_brun','Carton_gris','autre_refus','papier','metal','flou','environnement','plastique','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 30005785, 'sub_port_id': 30005843, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536261, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'Carton_gris': {'main_port_id': 30005785, 'sub_port_id': 30005844, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536262, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'environnement': {'main_port_id': 30005785, 'sub_port_id': 30005845, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536263, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'mal_croppe': {'main_port_id': 30005785, 'sub_port_id': 30005846, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536264, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'metal': {'main_port_id': 30005785, 'sub_port_id': 30005847, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536265, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'Carton_brun': {'main_port_id': 30005785, 'sub_port_id': 30005848, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536266, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'papier': {'main_port_id': 30005785, 'sub_port_id': 30005849, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536267, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 30005785, 'sub_port_id': 30005850, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536268, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'kraft': {'main_port_id': 30005785, 'sub_port_id': 30005851, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536269, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'autre_refus': {'main_port_id': 30005785, 'sub_port_id': 30005852, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536270, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'plastique': {'main_port_id': 30005785, 'sub_port_id': 30005853, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536271, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 2, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}, 'cartonnette': {'main_port_id': 30005785, 'sub_port_id': 30005854, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20536272, 'last_updated_at': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 4, 11), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 4, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30005854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30005841 lien utilise dans velours : https://marlene.fotonower.com/velours/30005843,30005844,30005845,30005846,30005847,30005848,30005849,30005850,30005851,30005852,30005853,30005854?tags=flou,Carton_gris,environnement,mal_croppe,metal,Carton_brun,papier,Teint_Dans_La_Masse,kraft,autre_refus,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30005785]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] map_info['map_portfolio_photo'] : {30005785: [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983, 1402743946, 1402743943, 1402743941, 1402743939, 1402743921, 1402743918, 1402743915, 1402743913, 1402743911, 1402743891, 1402743888, 1402743886, 1402743884, 1402743862, 1402743859, 1402743849, 1402743837, 1402743682, 1402743648, 1402743608, 1402743562, 1402743546, 1402743517, 1402743335, 1402743334, 1402743324, 1402743290, 1402742793, 1402742789, 1402742786, 1402742774, 1402742511, 1402742476, 1402742432, 1402742364, 1402742305, 1402742243, 1402741595, 1402741489, 1402741414, 1402741344]} final : False mtd_id 4302 list_pids : [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] Looping around the photos to save general results len do output : 1 /30005785. 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, '4320178') ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '30005785', "{'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841}", None, None, None, None, '4320178'), ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178')] time used for this insertion : 0.025624513626098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9006965160369873 time spend to save output : 0.025960206985473633 total time spend for step 1 : 1.926656723022461 step2:final Wed Jan 7 04:12:59 2026 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 (30005785) 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 30005785 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402741595,1402741489,1402741414,1402741344,1402742511,1402742476,1402742432,1402742364,1402742305,1402742243,1402742793,1402742789,1402742786,1402742774,1402743335,1402743334,1402743324,1402743290,1402743682,1402743648,1402743608,1402743562,1402743546,1402743517,1402743862,1402743859,1402743849,1402743837,1402743891,1402743888,1402743886,1402743884,1402743921,1402743918,1402743915,1402743913,1402743911,1402743946,1402743943,1402743941,1402743939,1402743995,1402743994,1402743990,1402743987,1402743985,1402743983,1402744027,1402744024,1402744020,1402744017,1402744015,1402744062,1402744053,1402744051,1402744049); 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([30005785]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} new output for save of step final : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] map_info['map_portfolio_photo'] : {30005785: [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983, 1402743946, 1402743943, 1402743941, 1402743939, 1402743921, 1402743918, 1402743915, 1402743913, 1402743911, 1402743891, 1402743888, 1402743886, 1402743884, 1402743862, 1402743859, 1402743849, 1402743837, 1402743682, 1402743648, 1402743608, 1402743562, 1402743546, 1402743517, 1402743335, 1402743334, 1402743324, 1402743290, 1402742793, 1402742789, 1402742786, 1402742774, 1402742511, 1402742476, 1402742432, 1402742364, 1402742305, 1402742243, 1402741595, 1402741489, 1402741414, 1402741344]} final : False mtd_id 4302 list_pids : [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] Looping around the photos to save general results len do output : 15 /1402744062.Didn't retrieve data . /1402744053.Didn't retrieve data . /1402744051.Didn't retrieve data . /1402744049.Didn't retrieve data . /1402744027.Didn't retrieve data . /1402744024.Didn't retrieve data . /1402744020.Didn't retrieve data . /1402744017.Didn't retrieve data . /1402744015.Didn't retrieve data . /1402743995.Didn't retrieve data . /1402743994.Didn't retrieve data . /1402743990.Didn't retrieve data . /1402743987.Didn't retrieve data . /1402743985.Didn't retrieve data . /1402743983.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, '4320178') ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '30005785', '1402744062', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744053', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744051', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744049', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744027', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744024', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744020', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744017', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402744015', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743995', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743994', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743990', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743987', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743985', '0.05268972386972631', None, None, None, None, '4320178'), ('4302', '30005785', '1402743983', '0.05268972386972631', None, None, None, None, '4320178')] time used for this insertion : 0.019658565521240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08634281158447266 time spend to save output : 0.020331144332885742 total time spend for step 2 : 0.1066739559173584 step3:velours_tree Wed Jan 7 04:12:59 2026 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 : {30005785: [{'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841}]} input_args_next_step : {30005785: ()} output_args : {30005785: [{'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841}]} args : 30005785 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 : ({'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30005785) 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([30005785]) 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.24056267738342285 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.24061203002929688 step4:send_mail_cod Wed Jan 7 04:13:00 2026 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 : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} input_args_next_step : {1402744062: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744062 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744053 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744051 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744049 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744027 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744024 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744020 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744017 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402744015 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743995 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743994 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743990 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743987 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743985 depend.output_id : 0 input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ()} output_args : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',)} args : 1402743983 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {30005785: [{'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841}]} input_args_next_step : {1402744062: ('0.05268972386972631',), 1402744053: ('0.05268972386972631',), 1402744051: ('0.05268972386972631',), 1402744049: ('0.05268972386972631',), 1402744027: ('0.05268972386972631',), 1402744024: ('0.05268972386972631',), 1402744020: ('0.05268972386972631',), 1402744017: ('0.05268972386972631',), 1402744015: ('0.05268972386972631',), 1402743995: ('0.05268972386972631',), 1402743994: ('0.05268972386972631',), 1402743990: ('0.05268972386972631',), 1402743987: ('0.05268972386972631',), 1402743985: ('0.05268972386972631',), 1402743983: ('0.05268972386972631',), 30005785: ()} output_args : {30005785: [{'flou': 30005830, 'Carton_gris': 30005831, 'environnement': 30005832, 'mal_croppe': 30005833, 'metal': 30005834, 'Carton_brun': 30005835, 'papier': 30005836, 'Teint_Dans_La_Masse': 30005837, 'kraft': 30005838, 'autre_refus': 30005839, 'plastique': 30005840, 'cartonnette': 30005841}]} args : 30005785 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 :16, first value : ('0.05268972386972631',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30005785) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1402744062,1402744053,1402744051,1402744049,1402744027,1402744024,1402744020,1402744017,1402744015,1402743995,1402743994,1402743990,1402743987,1402743985,1402743983) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402743983 begin to download photo : 1402743994 begin to download photo : 1402744020 begin to download photo : 1402744051 download finish for photo 1402743994 begin to download photo : 1402743995 download finish for photo 1402744051 begin to download photo : 1402744053 download finish for photo 1402743983 begin to download photo : 1402743985 download finish for photo 1402744020 begin to download photo : 1402744024 download finish for photo 1402743995 begin to download photo : 1402744015 download finish for photo 1402743985 begin to download photo : 1402743987 download finish for photo 1402744024 begin to download photo : 1402744027 download finish for photo 1402744053 begin to download photo : 1402744062 download finish for photo 1402744015 begin to download photo : 1402744017 download finish for photo 1402744062 download finish for photo 1402744027 begin to download photo : 1402744049 download finish for photo 1402743987 begin to download photo : 1402743990 download finish for photo 1402744017 download finish for photo 1402744049 download finish for photo 1402743990 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette300058301767755580/ imagette300058331767755580/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P30005785_07-01-2026_04_13_00.pdf 30005830 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005830 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300058301767755580 30005833 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300058331767755580 30005834 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402744011: '1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339840_0.png'} change filename to text .imagette300058341767755580/ imagette300058341767755580/1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339840_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6537792959c0b1cc0c4c24d67b8e3dbc_76923131.png imagette300058341767755580 30005838 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743964: '1767755345_2203984_1402743608_50ffca0680ed923e04fe13cc02d7f310_rle_crop_4092339579_0.png'} change filename to text .imagette300058381767755580/ imagette300058381767755580/1767755345_2203984_1402743608_50ffca0680ed923e04fe13cc02d7f310_rle_crop_4092339579_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/edd4e0a21ef0cf61825bac1cf97d5c8b_24970241.png imagette300058381767755580 30005839 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743473: '1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338672_0.png', 1402744005: '1767755427_2210872_1402743913_a35ea7e72a8e3ea55cdc13f904827747_rle_crop_4092339830_0.png', 1402744006: '1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339841_0.png', 1402744036: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339936_0.png', 1402744037: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339947_0.png', 1402744038: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339937_0.png', 1402744039: '1767755466_2212135_1402743886_3239aba50615517d4992f6aa944f56f7_rle_crop_4092339961_0.png', 1402744056: '1767755486_2214068_1402743891_c9c8b393ecb696fabbc27e1fabe90f37_rle_crop_4092340090_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9313dc41e74f4124c82e0176f867fa71_10490018.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8fd6c220ced42aff7692511911bdc882_58842638.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0499ab8df06a6a6f703e5a7eac46aa45_57012599.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e128eb9159610f47592a600519bfbc08_23548823.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/67c5a6d6eaa854163f212ed54ff3ea40_85470670.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/240019d0630c90e90558de2f255850bf_81204046.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/465cc798c65ccee13823e3652cbbdc89_54508861.png change filename to text .imagette300058391767755580/ imagette300058391767755580/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339947_0.png.png imagette300058391767755580/1767755486_2214068_1402743891_c9c8b393ecb696fabbc27e1fabe90f37_rle_crop_4092340090_0.png.png imagette300058391767755580/1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338672_0.png.png imagette300058391767755580/1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339841_0.png.png imagette300058391767755580/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339937_0.png.png imagette300058391767755580/1767755466_2212135_1402743886_3239aba50615517d4992f6aa944f56f7_rle_crop_4092339961_0.png.png imagette300058391767755580/1767755427_2210872_1402743913_a35ea7e72a8e3ea55cdc13f904827747_rle_crop_4092339830_0.png.png imagette300058391767755580/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339936_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1152d6824db67cdbe58a6b777e141a7e_85081225.png imagette300058391767755580 30005840 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743502: '1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338676_0.png', 1402743958: '1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339555_0.png', 1402743959: '1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339564_0.png', 1402743961: '1767755345_2203984_1402743546_291f38e5762f97ba1ab4712d3e8c5df0_rle_crop_4092339602_0.png', 1402743962: '1767755345_2203984_1402743517_1b5f8e2b5fcf15cbb334054b12eebaa8_rle_crop_4092339614_0.png', 1402743978: '1767755367_2205732_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339724_0.png', 1402743979: '1767755367_2205732_1402743849_18992640e2748839362eb7de72e6ec01_rle_crop_4092339732_0.png', 1402744064: '1767755486_2214068_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339724_0.png', 1402744065: '1767755486_2214068_1402743849_18992640e2748839362eb7de72e6ec01_rle_crop_4092339732_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6a4fc4c0ac46190419264189de800630_8883299.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9dfdc79b79718dfa59b8d0a26d760f2f_11344799.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/67c9d36f5719ae14822699ee41ba818e_14177388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/017acd644b3aba9f0ee932dec226e2ff_31747693.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/71fc5927f2ea5c6bcb20cdb95d41dce4_62705286.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b6d319c1b1e74124c40255fd16665a19_49068889.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a050272f27b78ba74d9bf0e1c48a702e_25359611.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b6d319c1b1e74124c40255fd16665a19_72870574.png change filename to text .imagette300058401767755581/ imagette300058401767755581/1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339564_0.png.png imagette300058401767755581/1767755345_2203984_1402743517_1b5f8e2b5fcf15cbb334054b12eebaa8_rle_crop_4092339614_0.png.png imagette300058401767755581/1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339555_0.png.png imagette300058401767755581/1767755486_2214068_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339724_0.png.png imagette300058401767755581/1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338676_0.png.png imagette300058401767755581/1767755367_2205732_1402743849_18992640e2748839362eb7de72e6ec01_rle_crop_4092339732_0.png.png imagette300058401767755581/1767755486_2214068_1402743849_18992640e2748839362eb7de72e6ec01_rle_crop_4092339732_0.png.png imagette300058401767755581/1767755345_2203984_1402743546_291f38e5762f97ba1ab4712d3e8c5df0_rle_crop_4092339602_0.png.png imagette300058401767755581/1767755367_2205732_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339724_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a050272f27b78ba74d9bf0e1c48a702e_92937223.png imagette300058401767755581 30005841 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743476: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338659_0.png', 1402743477: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338654_0.png', 1402743478: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338653_0.png', 1402743479: '1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338681_0.png', 1402743955: '1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339565_0.png', 1402743956: '1767755345_2203984_1402743546_291f38e5762f97ba1ab4712d3e8c5df0_rle_crop_4092339598_0.png', 1402743974: '1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339738_0.png', 1402744042: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339940_0.png', 1402744059: '1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339738_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/187caca4dfab044cfa4c0753ad57075b_94146813.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/516d19987cfab7c37c0112b6172669ce_42837442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b60f6332379fe7888d26afad8445548_50303453.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a09725070f64f3ba24e6ea03c056392c_93507626.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/949b021b4c1dbbea854b1a045915ef3b_84360973.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e984b25732ff8a5d6601d0a889aabe04_82753071.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8a517de033e8b72c48fb1b2bdc752a86_69148163.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8a0b9ef3ed74e34dc0864a58c444b101_85226199.png change filename to text .imagette300058411767755582/ imagette300058411767755582/1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339565_0.png.png imagette300058411767755582/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338654_0.png.png imagette300058411767755582/1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339738_0.png.png imagette300058411767755582/1767755345_2203984_1402743546_291f38e5762f97ba1ab4712d3e8c5df0_rle_crop_4092339598_0.png.png imagette300058411767755582/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338659_0.png.png imagette300058411767755582/1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338681_0.png.png imagette300058411767755582/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339940_0.png.png imagette300058411767755582/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338653_0.png.png imagette300058411767755582/1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339738_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8a517de033e8b72c48fb1b2bdc752a86_23912729.png imagette300058411767755582 30005831 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005831 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743475: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338650_0.png', 1402743973: '1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339742_0.png', 1402744040: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339938_0.png', 1402744041: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339941_0.png', 1402744058: '1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339742_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a6341e8842d8295e2efc442f9ffc4ebb_46102451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3caf4978ca6dd451c9a6cb9cc919565f_72619332.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0c7ea57d578c35e7003694465d51ca18_75196346.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f0dbc290d5f447fb2ad8e68ea6fb1911_17226758.png change filename to text .imagette300058311767755583/ imagette300058311767755583/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339938_0.png.png imagette300058311767755583/1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339742_0.png.png imagette300058311767755583/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338650_0.png.png imagette300058311767755583/1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339742_0.png.png imagette300058311767755583/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339941_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3caf4978ca6dd451c9a6cb9cc919565f_52956598.png imagette300058311767755583 30005835 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743489: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338655_0.png', 1402743491: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338658_0.png', 1402743493: '1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338679_0.png', 1402743975: '1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339750_0.png', 1402743976: '1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339741_0.png', 1402744008: '1767755427_2210872_1402743915_cd227c54484356b626ad4478c08ea26f_rle_crop_4092339824_0.png', 1402744009: '1767755427_2210872_1402743913_a35ea7e72a8e3ea55cdc13f904827747_rle_crop_4092339832_0.png', 1402744010: '1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339843_0.png', 1402744044: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339946_0.png', 1402744045: '1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339945_0.png', 1402744046: '1767755466_2212135_1402743886_3239aba50615517d4992f6aa944f56f7_rle_crop_4092339954_0.png', 1402744060: '1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339750_0.png', 1402744061: '1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339741_0.png', 1402744084: '1767755546_2217405_1402743943_d1b47f676856f18975d0974f285b12dc_rle_crop_4092340208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/aa0210555c51d23a3ea28b714f015252_83414222.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6fbfb620a3d1a11144e2d9c346818282_42592749.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6f0c906d236ba75a7962d70fe2b0cc73_16932459.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/06e88a5018df479ef65edfd8bada065f_29697688.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/86e537a44c48aeae52d2e73349f48857_66459564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2de51e51902b583555ae99a8c645db0a_43656504.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e4fcdddde9e5822e44cdf9476723c33c_69948032.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/90cf89cbdd567c570c0b99f8fb8b452b_63822360.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e829dcbb9ca5683e232d5b42c221b5e0_3499391.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/33c25eee5103ed4d2f98b12464c9f0b3_88340805.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/59f8c97737a089ffb097bc58603c3019_13562698.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/06e88a5018df479ef65edfd8bada065f_29527165.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/86e537a44c48aeae52d2e73349f48857_84934177.png change filename to text .imagette300058351767755583/ imagette300058351767755583/1767755067_2188876_1402741344_07defbffea859a8b8109fc86d547558a_rle_crop_4092338679_0.png.png imagette300058351767755583/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339946_0.png.png imagette300058351767755583/1767755466_2212135_1402743886_3239aba50615517d4992f6aa944f56f7_rle_crop_4092339954_0.png.png imagette300058351767755583/1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339750_0.png.png imagette300058351767755583/1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339750_0.png.png imagette300058351767755583/1767755546_2217405_1402743943_d1b47f676856f18975d0974f285b12dc_rle_crop_4092340208_0.png.png imagette300058351767755583/1767755427_2210872_1402743913_a35ea7e72a8e3ea55cdc13f904827747_rle_crop_4092339832_0.png.png imagette300058351767755583/1767755427_2210872_1402743915_cd227c54484356b626ad4478c08ea26f_rle_crop_4092339824_0.png.png imagette300058351767755583/1767755466_2212135_1402743888_d480c503b452868d7ee0a0d2e0845fc0_rle_crop_4092339945_0.png.png imagette300058351767755583/1767755486_2214068_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339741_0.png.png imagette300058351767755583/1767755427_2210872_1402743911_82e838bad8e8b4bbb689b9603ad45818_rle_crop_4092339843_0.png.png imagette300058351767755583/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338658_0.png.png imagette300058351767755583/1767755367_2205732_1402743837_622e174b357296bb1d484908585b19e4_rle_crop_4092339741_0.png.png imagette300058351767755583/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338655_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b396389b8b3981f3fc3373c78070dad_3771110.png imagette300058351767755583 30005837 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402743471: '1767755067_2188876_1402741489_e5ffc5bb1e66615230eba0036aeb02b3_rle_crop_4092338644_0.png', 1402743472: '1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338660_0.png', 1402743952: '1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339551_0.png', 1402743953: '1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339549_0.png', 1402743954: '1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339571_0.png', 1402743972: '1767755367_2205732_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339719_0.png', 1402744054: '1767755486_2214068_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339719_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f32574c3ffb59581e03850f04dee1e53_13431992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d13668bdf3060792491c089f60d818d1_97274775.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c7a7b5fd490767f41930910e0d64de7a_95453272.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1fccd4f53d248f88cfddb0bab346ae1e_5615996.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7d408466a5c0011cb7daf0522a983788_80133630.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e0572444e2b54a47770bbf4655f63125_59200921.png change filename to text .imagette300058371767755584/ imagette300058371767755584/1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339549_0.png.png imagette300058371767755584/1767755486_2214068_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339719_0.png.png imagette300058371767755584/1767755367_2205732_1402743859_d39f6d63ef33edd0fc588de1a88f7132_rle_crop_4092339719_0.png.png imagette300058371767755584/1767755345_2203984_1402743648_4a501aa1f71f08c03ffa4f674c1289b6_rle_crop_4092339571_0.png.png imagette300058371767755584/1767755345_2203984_1402743862_923671f1f286aa9250660a1083d2d81b_rle_crop_4092339551_0.png.png imagette300058371767755584/1767755067_2188876_1402741489_e5ffc5bb1e66615230eba0036aeb02b3_rle_crop_4092338644_0.png.png imagette300058371767755584/1767755067_2188876_1402741414_991265715bd76ec4b6ba5ce86aa7f652_rle_crop_4092338660_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e0572444e2b54a47770bbf4655f63125_3434374.png imagette300058371767755584 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30005785 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30005843,30005844,30005845,30005846,30005847,30005848,30005849,30005850,30005851,30005852,30005853,30005854?tags=flou,Carton_gris,environnement,mal_croppe,metal,Carton_brun,papier,Teint_Dans_La_Masse,kraft,autre_refus,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1402744062] : ('0.05268972386972631',) no score found for photo 1402744062 We are sending mail with results at report@fotonower.com args[1402744053] : ('0.05268972386972631',) no score found for photo 1402744053 We are sending mail with results at report@fotonower.com args[1402744051] : ('0.05268972386972631',) no score found for photo 1402744051 We are sending mail with results at report@fotonower.com args[1402744049] : ('0.05268972386972631',) no score found for photo 1402744049 We are sending mail with results at report@fotonower.com args[1402744027] : ('0.05268972386972631',) no score found for photo 1402744027 We are sending mail with results at report@fotonower.com args[1402744024] : ('0.05268972386972631',) no score found for photo 1402744024 We are sending mail with results at report@fotonower.com args[1402744020] : ('0.05268972386972631',) no score found for photo 1402744020 We are sending mail with results at report@fotonower.com args[1402744017] : ('0.05268972386972631',) no score found for photo 1402744017 We are sending mail with results at report@fotonower.com args[1402744015] : ('0.05268972386972631',) no score found for photo 1402744015 We are sending mail with results at report@fotonower.com args[1402743995] : ('0.05268972386972631',) no score found for photo 1402743995 We are sending mail with results at report@fotonower.com args[1402743994] : ('0.05268972386972631',) no score found for photo 1402743994 We are sending mail with results at report@fotonower.com args[1402743990] : ('0.05268972386972631',) no score found for photo 1402743990 We are sending mail with results at report@fotonower.com args[1402743987] : ('0.05268972386972631',) no score found for photo 1402743987 We are sending mail with results at report@fotonower.com args[1402743985] : ('0.05268972386972631',) no score found for photo 1402743985 We are sending mail with results at report@fotonower.com args[1402743983] : ('0.05268972386972631',) no score found for photo 1402743983 We are sending mail with results at report@fotonower.com refus_total : 0.05268972386972631 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005785 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_P30005785_07-01-2026_04_13_00.pdf results_Auto_P30005785_07-01-2026_04_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_04_13_00.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','30005785','results_Auto_P30005785_07-01-2026_04_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_04_13_00.pdf','pdf','','0.26','0.05268972386972631') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30005785]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] map_info['map_portfolio_photo'] : {30005785: [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983, 1402743946, 1402743943, 1402743941, 1402743939, 1402743921, 1402743918, 1402743915, 1402743913, 1402743911, 1402743891, 1402743888, 1402743886, 1402743884, 1402743862, 1402743859, 1402743849, 1402743837, 1402743682, 1402743648, 1402743608, 1402743562, 1402743546, 1402743517, 1402743335, 1402743334, 1402743324, 1402743290, 1402742793, 1402742789, 1402742786, 1402742774, 1402742511, 1402742476, 1402742432, 1402742364, 1402742305, 1402742243, 1402741595, 1402741489, 1402741414, 1402741344]} final : False mtd_id 4302 list_pids : [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] 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, '4320178') ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '30005785', '1402744062', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178')] time used for this insertion : 0.01569843292236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.450421571731567 time spend to save output : 0.01596355438232422 total time spend for step 4 : 6.466385126113892 step5:split_time_score Wed Jan 7 04:13:06 2026 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 : ['30005785'] 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 : [('30005785',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30005785) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402744051: {'path': 'temp/1767755580_2180414_1402744051_31c54779fc90f3e5819d10aa5ab70f3f.jpg', 'extension': 'jpg'}, 1402744053: {'path': 'temp/1767755580_2180414_1402744053_a2d108052e02d665e8aad4351098af74.jpg', 'extension': 'jpg'}, 1402744062: {'path': 'temp/1767755580_2180414_1402744062_43eb8869247bf5cd6915da7b35d31234.jpg', 'extension': 'jpg'}, 1402743994: {'path': 'temp/1767755580_2180414_1402743994_8696e3f2327ac93bc3a86d8101524264.jpg', 'extension': 'jpg'}, 1402743995: {'path': 'temp/1767755580_2180414_1402743995_dbd93c7c83ac775e9957d0c7e60077ed.jpg', 'extension': 'jpg'}, 1402744015: {'path': 'temp/1767755580_2180414_1402744015_ac68cba54b0f53a69a80b5db8c77c290.jpg', 'extension': 'jpg'}, 1402744017: {'path': 'temp/1767755580_2180414_1402744017_99b33a50587c3d7826bc4a40beb1e290.jpg', 'extension': 'jpg'}, 1402744020: {'path': 'temp/1767755580_2180414_1402744020_72fc14159c49d384f0184996af1c47ad.jpg', 'extension': 'jpg'}, 1402744024: {'path': 'temp/1767755580_2180414_1402744024_644e4e903b2362de6f29e6e277e02170.jpg', 'extension': 'jpg'}, 1402744027: {'path': 'temp/1767755580_2180414_1402744027_117e720ae9793e74d07559332c586d57.jpg', 'extension': 'jpg'}, 1402744049: {'path': 'temp/1767755580_2180414_1402744049_a58b087aa493bc3472b98d46d24f2c56.jpg', 'extension': 'jpg'}, 1402743983: {'path': 'temp/1767755580_2180414_1402743983_b7eba1b7a478e0fbcc908f431a18e15e.jpg', 'extension': 'jpg'}, 1402743985: {'path': 'temp/1767755580_2180414_1402743985_4b343e4d9c05f7a018ab55aded6f50f8.jpg', 'extension': 'jpg'}, 1402743987: {'path': 'temp/1767755580_2180414_1402743987_5fdfeeb33078ff3febe66278ce6c2c03.jpg', 'extension': 'jpg'}, 1402743990: {'path': 'temp/1767755580_2180414_1402743990_b18c0e1c4a7b321730c28ec1e189096d.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 = 30005785; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 30005785 group by h (('04', 56),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30005785 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 (30005785) 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 (30005785) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07012026 30005785 Nombre de photos uploadées : 56 / 23040 (0%) 07012026 30005785 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 07012026 30005785 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1402741595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/dbee6af0d7ce298207673439305df6f8.jpg', 'username': None, 'uploaded_at': 1767754867, 'text': 'image_07012026_04_00_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402741489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e5ffc5bb1e66615230eba0036aeb02b3.jpg', 'username': None, 'uploaded_at': 1767754867, 'text': 'image_07012026_04_00_14_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402741414, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/991265715bd76ec4b6ba5ce86aa7f652.jpg', 'username': None, 'uploaded_at': 1767754867, 'text': 'image_07012026_04_00_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402741344, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/07defbffea859a8b8109fc86d547558a.jpg', 'username': None, 'uploaded_at': 1767754867, 'text': 'image_07012026_04_00_43_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023932456970214844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 30005785, '2026-01-07' ) 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 = '2026-01-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2854728,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24829387664794922 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= 2854728 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 29999365, 'dashboard_result_id': 19090483, '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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 29999670, 'dashboard_result_id': 19090484, '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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30000240, 'dashboard_result_id': 19090485, '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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30000381, 'dashboard_result_id': 19090486, '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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30001385, 'dashboard_result_id': 19090487, '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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30001625, 'dashboard_result_id': 19090488, '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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30001993, 'dashboard_result_id': 19090489, '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_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30002683, 'dashboard_result_id': 19090490, '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_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30003176, 'dashboard_result_id': 19090491, '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_P30003176_07-01-2026_02_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30003654, 'dashboard_result_id': 19090492, '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_P30003654_07-01-2026_03_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30004058, 'dashboard_result_id': 19090493, '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_P30004058_07-01-2026_03_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30004504, 'dashboard_result_id': 19090494, '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_P30004504_07-01-2026_03_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30005091, 'dashboard_result_id': 19090495, '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_P30005091_07-01-2026_03_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30005616, 'dashboard_result_id': 19090496, '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_P30005616_07-01-2026_04_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861860, 'mtr_portfolio_id': 30005785, 'dashboard_result_id': 19090497, '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_P30005785_07-01-2026_04_11_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, '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 = 29999365 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': 4319217, 'mtr_portfolio_id': 29999365, 'created_at': datetime.datetime(2026, 1, 7, 0, 16, 58), 'result': '0.03556487967171043', 'result_long': None, 'result_double': None}] Qualite : 0.03556487967171043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999365 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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}" where mtr_portfolio_id = 29999365 and dashboard_run_id = 2861860 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`=29999365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090483, 0.03556487967171043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, '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 = 29999670 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': 4319241, 'mtr_portfolio_id': 29999670, 'created_at': datetime.datetime(2026, 1, 7, 0, 35), 'result': '0.07220360950194565', 'result_long': None, 'result_double': None}] Qualite : 0.07220360950194565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999670 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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}" where mtr_portfolio_id = 29999670 and dashboard_run_id = 2861860 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`=29999670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090484, 0.07220360950194565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, '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 = 30000240 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': 4319321, 'mtr_portfolio_id': 30000240, 'created_at': datetime.datetime(2026, 1, 7, 0, 48, 59), 'result': '0.08740129110559802', 'result_long': None, 'result_double': None}] Qualite : 0.08740129110559802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000240 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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}" where mtr_portfolio_id = 30000240 and dashboard_run_id = 2861860 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`=30000240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090485, 0.08740129110559802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, '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 = 30000381 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': 4319352, 'mtr_portfolio_id': 30000381, 'created_at': datetime.datetime(2026, 1, 7, 1, 2, 31), 'result': '0.03941804582502747', 'result_long': None, 'result_double': None}] Qualite : 0.03941804582502747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000381 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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}" where mtr_portfolio_id = 30000381 and dashboard_run_id = 2861860 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`=30000381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090486, 0.03941804582502747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 = 30001385 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': 4319516, 'mtr_portfolio_id': 30001385, 'created_at': datetime.datetime(2026, 1, 7, 1, 47), 'result': '0.03810687232726498', 'result_long': None, 'result_double': None}] Qualite : 0.03810687232726498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001385 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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}" where mtr_portfolio_id = 30001385 and dashboard_run_id = 2861860 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`=30001385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090487, 0.03810687232726498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, '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 = 30001625 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': 4319549, 'mtr_portfolio_id': 30001625, 'created_at': datetime.datetime(2026, 1, 7, 2, 3), 'result': '0.07216863145607044', 'result_long': None, 'result_double': None}] Qualite : 0.07216863145607044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001625 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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}" where mtr_portfolio_id = 30001625 and dashboard_run_id = 2861860 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`=30001625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090488, 0.07216863145607044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, '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 = 30001993 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': 4319642, 'mtr_portfolio_id': 30001993, 'created_at': datetime.datetime(2026, 1, 7, 2, 17, 1), 'result': '0.06528625286761691', 'result_long': None, 'result_double': None}] Qualite : 0.06528625286761691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001993 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_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}" where mtr_portfolio_id = 30001993 and dashboard_run_id = 2861860 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`=30001993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090489, 0.06528625286761691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, '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 = 30002683 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': 4319707, 'mtr_portfolio_id': 30002683, 'created_at': datetime.datetime(2026, 1, 7, 2, 33, 29), 'result': '0.07765632558480265', 'result_long': None, 'result_double': None}] Qualite : 0.07765632558480265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30002683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30002683 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_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}" where mtr_portfolio_id = 30002683 and dashboard_run_id = 2861860 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`=30002683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090490, 0.07765632558480265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, '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 = 30003176 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': 4319777, 'mtr_portfolio_id': 30003176, 'created_at': datetime.datetime(2026, 1, 7, 2, 47), 'result': '0.044114730773132466', 'result_long': None, 'result_double': None}] Qualite : 0.044114730773132466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30003176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30003176 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_P30003176_07-01-2026_02_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, 'pht': 3726}}" where mtr_portfolio_id = 30003176 and dashboard_run_id = 2861860 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`=30003176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090491, 0.044114730773132466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, '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 = 30003654 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': 4319843, 'mtr_portfolio_id': 30003654, 'created_at': datetime.datetime(2026, 1, 7, 3, 2, 58), 'result': '0.06394247453701923', 'result_long': None, 'result_double': None}] Qualite : 0.06394247453701923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30003654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003654_07-01-2026_03_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30003654 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_P30003654_07-01-2026_03_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, 'pht': 3726}}" where mtr_portfolio_id = 30003654 and dashboard_run_id = 2861860 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`=30003654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090492, 0.06394247453701923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003654_07-01-2026_03_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, '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 = 30004058 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': 4319913, 'mtr_portfolio_id': 30004058, 'created_at': datetime.datetime(2026, 1, 7, 3, 17), 'result': '0.09987282248169799', 'result_long': None, 'result_double': None}] Qualite : 0.09987282248169799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30004058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004058_07-01-2026_03_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30004058 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_P30004058_07-01-2026_03_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, 'pht': 3726}}" where mtr_portfolio_id = 30004058 and dashboard_run_id = 2861860 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`=30004058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090493, 0.09987282248169799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004058_07-01-2026_03_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, '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 = 30004504 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': 4319960, 'mtr_portfolio_id': 30004504, 'created_at': datetime.datetime(2026, 1, 7, 3, 33), 'result': '0.046834477536035035', 'result_long': None, 'result_double': None}] Qualite : 0.046834477536035035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30004504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004504_07-01-2026_03_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30004504 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_P30004504_07-01-2026_03_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, 'pht': 3726}}" where mtr_portfolio_id = 30004504 and dashboard_run_id = 2861860 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`=30004504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090494, 0.046834477536035035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004504_07-01-2026_03_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, '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 = 30005091 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': 4320058, 'mtr_portfolio_id': 30005091, 'created_at': datetime.datetime(2026, 1, 7, 3, 51, 1), 'result': '0.0946171304832479', 'result_long': None, 'result_double': None}] Qualite : 0.0946171304832479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005091_07-01-2026_03_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005091 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_P30005091_07-01-2026_03_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, 'pht': 3726}}" where mtr_portfolio_id = 30005091 and dashboard_run_id = 2861860 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`=30005091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090495, 0.0946171304832479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005091_07-01-2026_03_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, '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 = 30005616 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': 4320123, 'mtr_portfolio_id': 30005616, 'created_at': datetime.datetime(2026, 1, 7, 4, 3, 32), 'result': '0.035495190939393295', 'result_long': None, 'result_double': None}] Qualite : 0.035495190939393295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005616_07-01-2026_04_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005616 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_P30005616_07-01-2026_04_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, 'pht': 3726}}" where mtr_portfolio_id = 30005616 and dashboard_run_id = 2861860 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`=30005616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090496, 0.035495190939393295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005616_07-01-2026_04_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, '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 = 30005785 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': 4320178, 'mtr_portfolio_id': 30005785, 'created_at': datetime.datetime(2026, 1, 7, 4, 12, 59), 'result': '0.05268972386972631', 'result_long': None, 'result_double': None}] Qualite : 0.05268972386972631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_04_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005785 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_P30005785_07-01-2026_04_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, 'pht': 3726}}" where mtr_portfolio_id = 30005785 and dashboard_run_id = 2861860 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`=30005785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19090497, 0.05268972386972631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_04_13_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, '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 (29999365,29999670,30000240,30000381,30001385,30001625,30001993,30002683,30003176,30003654,30004058,30004504,30005091,30005616,30005785) result : ((1402725806,), (1402725885,), (1402725888,), (1402725954,), (1402725956,), (1402725957,), (1402725959,), (1402726002,), (1402726004,), (1402726006,), (1402726033,), (1402726034,), (1402726036,), (1402726038,), (1402726054,), (1402726055,), (1402726058,), (1402726060,), (1402726064,), (1402726067,), (1402726080,), (1402726081,), (1402726086,), (1402726091,), (1402726189,), (1402726205,), (1402726236,), (1402726249,), (1402726250,), (1402726251,), (1402726261,), (1402726451,), (1402726452,), (1402726482,), (1402726520,), (1402726557,), (1402726579,), (1402726590,), (1402726591,), (1402726592,), (1402726656,), (1402726658,), (1402726661,), (1402726663,), (1402726666,), (1402726670,), (1402726677,), (1402726679,), (1402726680,), (1402726682,), (1402726683,), (1402726684,), (1402726686,), (1402726688,), (1402726692,), (1402726695,), (1402726734,), (1402726726,), (1402726727,), (1402726728,), (1402726730,), (1402726746,), (1402726747,), (1402726748,), (1402726790,), (1402726791,), (1402726793,), (1402726794,), (1402726837,), (1402726838,), (1402726839,), (1402726841,), (1402726844,), (1402726927,), (1402726931,), (1402726933,), (1402726935,), (1402726948,), (1402726949,), (1402726950,), (1402727047,), (1402727048,), (1402727049,), (1402727052,), (1402727055,), (1402727058,), (1402727061,), (1402727062,), (1402727063,), (1402727084,), (1402727085,), (1402727087,), (1402727104,), (1402727105,), (1402727129,), (1402727140,), (1402727149,), (1402727152,), (1402727156,), (1402727227,), (1402727229,), (1402727363,), (1402727462,), (1402727384,), (1402727476,), (1402727537,), (1402727538,), (1402727555,), (1402727556,), (1402727558,), (1402727562,), (1402727565,), (1402727568,), (1402727571,), (1402727572,), (1402727574,), (1402727575,), (1402727583,), (1402727584,), (1402727585,), (1402727601,), (1402727602,), (1402727603,), (1402727604,), (1402727607,), (1402727620,), (1402727621,), (1402727623,), (1402727624,), (1402727625,), (1402727626,), (1402727639,), (1402727640,), (1402727641,), (1402727677,), (1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,), (1402728536,), (1402728539,), (1402728542,), (1402728546,), (1402728549,), (1402728557,), (1402732292,), (1402732293,), (1402732328,), (1402732356,), (1402732359,), (1402732365,), (1402732369,), (1402732374,), (1402732548,), (1402732549,), (1402732550,), (1402732552,), (1402732556,), (1402732572,), (1402732582,), (1402732593,), (1402732594,), (1402732596,), (1402732597,), (1402732627,), (1402732628,), (1402732629,), (1402732653,), (1402732682,), (1402732711,), (1402732712,), (1402732713,), (1402732716,), (1402732719,), (1402732722,), (1402732731,), (1402732732,), (1402732733,), (1402732734,), (1402732751,), (1402732752,), (1402732754,), (1402732765,), (1402732766,), (1402732770,), (1402732771,), (1402732774,), (1402732776,), (1402732803,), (1402732793,), (1402732795,), (1402732798,), (1402732800,), (1402732809,), (1402732811,), (1402732814,), (1402732839,), (1402732845,), (1402732847,), (1402732850,), (1402732853,), (1402732865,), (1402732866,), (1402732867,), (1402732868,), (1402732872,), (1402732900,), (1402732901,), (1402732903,), (1402732916,), (1402732917,), (1402732919,), (1402732920,), (1402732923,), (1402732925,), (1402732957,), (1402732958,), (1402732959,), (1402732960,), (1402732963,), (1402732966,), (1402732976,), (1402732978,), (1402732997,), (1402732999,), (1402733001,), (1402733002,), (1402733005,), (1402733008,), (1402733019,), (1402733021,), (1402733023,), (1402733036,), (1402733038,), (1402733040,), (1402733044,), (1402733046,), (1402733079,), (1402733081,), (1402733101,), (1402733105,), (1402733110,), (1402733118,), (1402733119,), (1402733122,), (1402733123,), (1402733125,), (1402733126,), (1402733129,), (1402733131,), (1402733177,), (1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,), (1402737458,), (1402737460,), (1402737462,), (1402737464,), (1402737467,), (1402737489,), (1402737496,), (1402737510,), (1402737511,), (1402737513,), (1402737514,), (1402737547,), (1402737539,), (1402737540,), (1402737542,), (1402737544,), (1402737569,), (1402737571,), (1402737572,), (1402737573,), (1402737577,), (1402737581,), (1402737602,), (1402737603,), (1402737624,), (1402737625,), (1402737626,), (1402737628,), (1402737665,), (1402737696,), (1402737697,), (1402737698,), (1402737713,), (1402737714,), (1402737716,), (1402737718,), (1402737721,), (1402737740,), (1402737758,), (1402737759,), (1402737760,), (1402737761,), (1402737785,), (1402737786,), (1402737797,), (1402737799,), (1402737802,), (1402737806,), (1402737811,), (1402737816,), (1402737827,), (1402737828,), (1402737829,), (1402737831,), (1402737835,), (1402737854,), (1402737855,), (1402737856,), (1402737857,), (1402737887,), (1402737890,), (1402737891,), (1402737893,), (1402737917,), (1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,), (1402738224,), (1402738226,), (1402738227,), (1402738230,), (1402738245,), (1402738247,), (1402738249,), (1402738252,), (1402738256,), (1402738263,), (1402738266,), (1402738268,), (1402738271,), (1402738275,), (1402738277,), (1402738298,), (1402738295,), (1402738297,), (1402738308,), (1402738309,), (1402738310,), (1402738311,), (1402738315,), (1402738318,), (1402738328,), (1402738330,), (1402738332,), (1402738335,), (1402738350,), (1402738353,), (1402738357,), (1402738388,), (1402738389,), (1402738391,), (1402738393,), (1402738403,), (1402738405,), (1402738409,), (1402738414,), (1402738418,), (1402738423,), (1402738436,), (1402738437,), (1402738438,), (1402738439,), (1402738441,), (1402738444,), (1402738447,), (1402738451,), (1402738456,), (1402738470,), (1402738471,), (1402738497,), (1402738498,), (1402738499,), (1402738501,), (1402738505,), (1402738507,), (1402738520,), (1402738521,), (1402738523,), (1402738525,), (1402738528,), (1402738541,), (1402738542,), (1402738544,), (1402738555,), (1402738557,), (1402738558,), (1402738562,), (1402738565,), (1402738592,), (1402738593,), (1402738595,), (1402738597,), (1402738613,), (1402738617,), (1402738621,), (1402738625,), (1402738628,), (1402738630,), (1402738662,), (1402738648,), (1402738651,), (1402738654,), (1402738658,), (1402738672,), (1402738674,), (1402738677,), (1402738680,), (1402738683,), (1402738686,), (1402738705,), (1402738714,), (1402738715,), (1402738717,), (1402738749,), (1402738751,), (1402738752,), (1402738755,), (1402738766,), (1402738767,), (1402738768,), (1402738769,), (1402738772,), (1402738785,), (1402738786,), (1402738787,), (1402738788,), (1402738813,), (1402738814,), (1402738815,), (1402738816,), (1402738819,), (1402738850,), (1402738851,), (1402738852,), (1402738854,), (1402738857,), (1402738859,), (1402738873,), (1402738874,), (1402738876,), (1402738878,), (1402738890,), (1402738892,), (1402738893,), (1402738907,), (1402738909,), (1402738911,), (1402738913,), (1402738915,), (1402738938,), (1402738940,), (1402738943,), (1402738945,), (1402738948,), (1402738950,), (1402738960,), (1402738962,), (1402738986,), (1402738988,), (1402738990,), (1402738992,), (1402739017,), (1402739019,), (1402739021,), (1402739054,), (1402739051,), (1402739052,), (1402739053,), (1402739064,), (1402739065,), (1402739094,), (1402739095,), (1402739097,), (1402739099,), (1402739101,), (1402739134,), (1402739135,), (1402739136,), (1402739138,), (1402739142,), (1402739170,), (1402739171,), (1402739172,), (1402739174,), (1402739178,), (1402739195,), (1402739196,), (1402739198,), (1402739199,), (1402739203,), (1402739232,), (1402739233,), (1402739235,), (1402739237,), (1402739240,), (1402739255,), (1402739256,), (1402739257,), (1402739259,), (1402739284,), (1402739291,), (1402739292,), (1402739294,), (1402739312,), (1402739326,), (1402739327,), (1402739331,), (1402739334,), (1402739357,), (1402739358,), (1402739359,), (1402739361,), (1402739365,), (1402739368,), (1402739378,), (1402739379,), (1402739380,), (1402739381,), (1402739385,), (1402739389,), (1402739414,), (1402739417,), (1402739419,), (1402739430,), (1402739431,), (1402739432,), (1402739433,), (1402739460,), (1402739463,), (1402739465,), (1402739467,), (1402739501,), (1402739491,), (1402739493,), (1402739494,), (1402739497,), (1402739519,), (1402739523,), (1402739525,), (1402739526,), (1402739540,), (1402739541,), (1402739542,), (1402739544,), (1402739547,), (1402739566,), (1402739568,), (1402739570,), (1402739573,), (1402739576,), (1402739579,), (1402739586,), (1402739587,), (1402739589,), (1402739606,), (1402739607,), (1402739609,), (1402739610,), (1402739614,), (1402739643,), (1402739646,), (1402739648,), (1402739653,), (1402739657,), (1402739672,), (1402739673,), (1402739675,), (1402739685,), (1402739686,), (1402739687,), (1402739688,), (1402739690,), (1402739692,), (1402739719,), (1402739720,), (1402739722,), (1402739724,), (1402739727,), (1402739729,), (1402739748,), (1402739751,), (1402739752,), (1402739754,), (1402739757,), (1402739759,), (1402739788,), (1402739789,), (1402739790,), (1402739793,), (1402739796,), (1402739798,), (1402739808,), (1402739972,), (1402739971,), (1402739994,), (1402740019,), (1402740020,), (1402740040,), (1402740041,), (1402740042,), (1402740045,), (1402740048,), (1402740051,), (1402740056,), (1402740057,), (1402740058,), (1402740059,), (1402740060,), (1402740061,), (1402740064,), (1402740083,), (1402740084,), (1402740086,), (1402740087,), (1402740102,), (1402740103,), (1402740104,), (1402740105,), (1402740116,), (1402740117,), (1402740118,), (1402740119,), (1402740128,), (1402740130,), (1402740132,), (1402740136,), (1402740140,), (1402740157,), (1402740158,), (1402740159,), (1402740160,), (1402740163,), (1402740645,), (1402740648,), (1402740651,), (1402740674,), (1402740709,), (1402740763,), (1402741047,), (1402741093,), (1402741125,), (1402741664,), (1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07012026': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30005785]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] map_info['map_portfolio_photo'] : {30005785: [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983, 1402743946, 1402743943, 1402743941, 1402743939, 1402743921, 1402743918, 1402743915, 1402743913, 1402743911, 1402743891, 1402743888, 1402743886, 1402743884, 1402743862, 1402743859, 1402743849, 1402743837, 1402743682, 1402743648, 1402743608, 1402743562, 1402743546, 1402743517, 1402743335, 1402743334, 1402743324, 1402743290, 1402742793, 1402742789, 1402742786, 1402742774, 1402742511, 1402742476, 1402742432, 1402742364, 1402742305, 1402742243, 1402741595, 1402741489, 1402741414, 1402741344]} final : True mtd_id 4302 list_pids : [1402744062, 1402744053, 1402744051, 1402744049, 1402744027, 1402744024, 1402744020, 1402744017, 1402744015, 1402743995, 1402743994, 1402743990, 1402743987, 1402743985, 1402743983] Looping around the photos to save general results len do output : 1 /30005785Didn'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, '4320178') ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178') ('4302', None, None, None, None, None, None, None, '4320178') ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '30005785', 'None', None, None, None, None, '4320178'), ('4302', '30005785', '1402744062', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744053', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744051', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744049', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744027', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744024', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744020', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744017', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402744015', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743995', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743994', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743990', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743987', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743985', None, None, None, None, None, '4320178'), ('4302', '30005785', '1402743983', None, None, None, None, None, '4320178')] time used for this insertion : 0.016366958618164062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.346247673034668 time spend to save output : 0.01664280891418457 total time spend for step 5 : 1.3628904819488525 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 (4320178) 2.31user 2.51system 0:12.35elapsed 39%CPU (0avgtext+0avgdata 168032maxresident)k 24inputs+16608outputs (0major+80425minor)pagefaults 0swaps