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 : 1876183 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 (4303647) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4303647) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894441 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4303647'] with mtr_portfolio_ids : ['29894441'] and first list_photo_ids : [] new path : /proc/1876183/ Name: python3 Umask: 0002 State: R (running) Tgid: 1876183 Ngid: 0 Pid: 1876183 PPid: 1876182 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1876183 NSpid: 1876183 NSpgid: 1872930 NSsid: 1872930 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103948 kB VmRSS: 103948 kB RssAnon: 66304 kB RssFile: 37644 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 61 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1876183', 'Ngid': '0', 'Pid': '1876183', 'PPid': '1876182', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1876183', 'NSpid': '1876183', 'NSpgid': '1872930', 'NSsid': '1872930', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103948 kB', 'VmRSS': '103948 kB', 'RssAnon': '66304 kB', 'RssFile': '37644 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '61'} ('datou_batch_current', '1876183', '1113360', '0', '1113360', '872088', '103948', b'', 'marlene', '4303647') 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 (29894441) 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 (4303647 ) ) 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 (29894441) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402164792, 'portfolio_id': 29894441}, {'photo_id': 1402164789, 'portfolio_id': 29894441}, {'photo_id': 1402164787, 'portfolio_id': 29894441}, {'photo_id': 1402164785, 'portfolio_id': 29894441}, {'photo_id': 1402164783, 'portfolio_id': 29894441}, {'photo_id': 1402164767, 'portfolio_id': 29894441}, {'photo_id': 1402164765, 'portfolio_id': 29894441}, {'photo_id': 1402164762, 'portfolio_id': 29894441}, {'photo_id': 1402164761, 'portfolio_id': 29894441}, {'photo_id': 1402164759, 'portfolio_id': 29894441}, {'photo_id': 1402164758, 'portfolio_id': 29894441}, {'photo_id': 1402164715, 'portfolio_id': 29894441}, {'photo_id': 1402164714, 'portfolio_id': 29894441}, {'photo_id': 1402164712, 'portfolio_id': 29894441}, {'photo_id': 1402164697, 'portfolio_id': 29894441}, {'photo_id': 1402164695, 'portfolio_id': 29894441}, {'photo_id': 1402164692, 'portfolio_id': 29894441}, {'photo_id': 1402164690, 'portfolio_id': 29894441}, {'photo_id': 1402164628, 'portfolio_id': 29894441}, {'photo_id': 1402164623, 'portfolio_id': 29894441}, {'photo_id': 1402164622, 'portfolio_id': 29894441}, {'photo_id': 1402164621, 'portfolio_id': 29894441}, {'photo_id': 1402164581, 'portfolio_id': 29894441}, {'photo_id': 1402164579, 'portfolio_id': 29894441}, {'photo_id': 1402164576, 'portfolio_id': 29894441}, {'photo_id': 1402164575, 'portfolio_id': 29894441}, {'photo_id': 1402164553, 'portfolio_id': 29894441}, {'photo_id': 1402164550, 'portfolio_id': 29894441}, {'photo_id': 1402164526, 'portfolio_id': 29894441}, {'photo_id': 1402164524, 'portfolio_id': 29894441}, {'photo_id': 1402164522, 'portfolio_id': 29894441}, {'photo_id': 1402164521, 'portfolio_id': 29894441}, {'photo_id': 1402164515, 'portfolio_id': 29894441}, {'photo_id': 1402164409, 'portfolio_id': 29894441}, {'photo_id': 1402164372, 'portfolio_id': 29894441}, {'photo_id': 1402164360, 'portfolio_id': 29894441}, {'photo_id': 1402164359, 'portfolio_id': 29894441}, {'photo_id': 1402164358, 'portfolio_id': 29894441}, {'photo_id': 1402164323, 'portfolio_id': 29894441}, {'photo_id': 1402164321, 'portfolio_id': 29894441}, {'photo_id': 1402164319, 'portfolio_id': 29894441}, {'photo_id': 1402164317, 'portfolio_id': 29894441}, {'photo_id': 1402164292, 'portfolio_id': 29894441}, {'photo_id': 1402164290, 'portfolio_id': 29894441}, {'photo_id': 1402164289, 'portfolio_id': 29894441}, {'photo_id': 1402164288, 'portfolio_id': 29894441}, {'photo_id': 1402164254, 'portfolio_id': 29894441}, {'photo_id': 1402164250, 'portfolio_id': 29894441}, {'photo_id': 1402164248, 'portfolio_id': 29894441}, {'photo_id': 1402164245, 'portfolio_id': 29894441}, {'photo_id': 1402164243, 'portfolio_id': 29894441}, {'photo_id': 1402164191, 'portfolio_id': 29894441}, {'photo_id': 1402164181, 'portfolio_id': 29894441}, {'photo_id': 1402164178, 'portfolio_id': 29894441}, {'photo_id': 1402164174, 'portfolio_id': 29894441}, {'photo_id': 1402164172, 'portfolio_id': 29894441}, {'photo_id': 1402164152, 'portfolio_id': 29894441}, {'photo_id': 1402164149, 'portfolio_id': 29894441}, {'photo_id': 1402164147, 'portfolio_id': 29894441}, {'photo_id': 1402164145, 'portfolio_id': 29894441}, {'photo_id': 1402164144, 'portfolio_id': 29894441}] map_portfolio_id_photo_id: {29894441: [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758, 1402164715, 1402164714, 1402164712, 1402164697, 1402164695, 1402164692, 1402164690, 1402164628, 1402164623, 1402164622, 1402164621, 1402164581, 1402164579, 1402164576, 1402164575, 1402164553, 1402164550, 1402164526, 1402164524, 1402164522, 1402164521, 1402164515, 1402164409, 1402164372, 1402164360, 1402164359, 1402164358, 1402164323, 1402164321, 1402164319, 1402164317, 1402164292, 1402164290, 1402164289, 1402164288, 1402164254, 1402164250, 1402164248, 1402164245, 1402164243, 1402164191, 1402164181, 1402164178, 1402164174, 1402164172, 1402164152, 1402164149, 1402164147, 1402164145, 1402164144]} ##### 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.019750356674194336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jan 2 15:31: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29894441) 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 : 29894441 get user id for portfolio 29894441 get sub ptf for main ptf 29894441, type 3726 and hashtags ['Carton_gris', 'papier', 'metal', 'autre_refus', 'Carton_brun', 'flou', 'kraft', 'Teint_Dans_La_Masse', 'plastique', 'environnement', 'mal_croppe', 'cartonnette'] 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`=29894441 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','autre_refus','Carton_brun','flou','kraft','Teint_Dans_La_Masse','plastique','environnement','mal_croppe','cartonnette')) 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`=29894441 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','autre_refus','Carton_brun','flou','kraft','Teint_Dans_La_Masse','plastique','environnement','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29894441, 'sub_port_id': 29894449, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451316, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'environnement': {'main_port_id': 29894441, 'sub_port_id': 29894450, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451317, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'autre_refus': {'main_port_id': 29894441, 'sub_port_id': 29894451, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451318, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'plastique': {'main_port_id': 29894441, 'sub_port_id': 29894452, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451319, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29894441, 'sub_port_id': 29894453, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451320, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'mal_croppe': {'main_port_id': 29894441, 'sub_port_id': 29894454, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451321, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'flou': {'main_port_id': 29894441, 'sub_port_id': 29894455, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451322, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'Carton_brun': {'main_port_id': 29894441, 'sub_port_id': 29894456, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451323, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'kraft': {'main_port_id': 29894441, 'sub_port_id': 29894457, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451324, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'Carton_gris': {'main_port_id': 29894441, 'sub_port_id': 29894458, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451325, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'metal': {'main_port_id': 29894441, 'sub_port_id': 29894459, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451326, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}, 'cartonnette': {'main_port_id': 29894441, 'sub_port_id': 29894460, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451327, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29894449 , 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=29894441 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 (29894449) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894450 , 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=29894441 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 (29894450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894451 , 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=29894441 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 (29894451) result : ((1402164440,), (1402164511,), (1402164512,), (1402164513,), (1402164514,), (1402164608,), (1402164664,), (1402164665,), (1402164725,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894452 , 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=29894441 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 (29894452) result : ((1402164450,), (1402164451,), (1402164452,), (1402164520,), (1402164563,), (1402164564,), (1402164616,), (1402164617,), (1402164618,), (1402164682,), (1402164744,), (1402164746,), (1402164804,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894453 , 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=29894441 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 (29894453) result : ((1402164438,), (1402164509,), (1402164510,), (1402164605,), (1402164606,), (1402164607,), (1402164662,), (1402164683,), (1402164777,), (1402164796,), (1402164797,), (1402164799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894454 , 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=29894441 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 (29894454) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894455 , 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=29894441 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 (29894455) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894456 , 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=29894441 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 (29894456) result : ((1402164614,), (1402164615,), (1402164677,), (1402164678,), (1402164679,), (1402164680,), (1402164681,), (1402164687,), (1402164688,), (1402164736,), (1402164778,), (1402164779,), (1402164780,), (1402164781,), (1402164802,), (1402164803,), (1402164816,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894457 , 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=29894441 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 (29894457) result : ((1402164620,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894458 , 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=29894441 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 (29894458) result : ((1402164445,), (1402164561,), (1402164667,), (1402164668,), (1402164669,), (1402164670,), (1402164671,), (1402164672,), (1402164684,), (1402164729,), (1402164730,), (1402164731,), (1402164732,), (1402164733,), (1402164800,), (1402164813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894459 , 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=29894441 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 (29894459) result : ((1402164751,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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 29894460 , 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=29894441 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 (29894460) result : ((1402164447,), (1402164516,), (1402164517,), (1402164518,), (1402164519,), (1402164609,), (1402164610,), (1402164611,), (1402164612,), (1402164673,), (1402164674,), (1402164675,), (1402164685,), (1402164686,), (1402164734,), (1402164801,), (1402164814,), (1402164815,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29894441) result : ((1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) 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`=29894441 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','autre_refus','Carton_brun','flou','kraft','Teint_Dans_La_Masse','plastique','environnement','mal_croppe','cartonnette')) 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`=29894441 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','autre_refus','Carton_brun','flou','kraft','Teint_Dans_La_Masse','plastique','environnement','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29894441, 'sub_port_id': 29894462, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451328, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'environnement': {'main_port_id': 29894441, 'sub_port_id': 29894463, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451329, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'autre_refus': {'main_port_id': 29894441, 'sub_port_id': 29894464, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451330, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'plastique': {'main_port_id': 29894441, 'sub_port_id': 29894465, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451331, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29894441, 'sub_port_id': 29894466, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451332, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'mal_croppe': {'main_port_id': 29894441, 'sub_port_id': 29894467, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451333, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'flou': {'main_port_id': 29894441, 'sub_port_id': 29894468, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451334, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'Carton_brun': {'main_port_id': 29894441, 'sub_port_id': 29894469, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451335, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'kraft': {'main_port_id': 29894441, 'sub_port_id': 29894470, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451336, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'Carton_gris': {'main_port_id': 29894441, 'sub_port_id': 29894471, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451337, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'metal': {'main_port_id': 29894441, 'sub_port_id': 29894472, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451338, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}, 'cartonnette': {'main_port_id': 29894441, 'sub_port_id': 29894473, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20451339, 'last_updated_at': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 15, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 15, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894463,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29894473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29894460 lien utilise dans velours : https://marlene.fotonower.com/velours/29894462,29894463,29894464,29894465,29894466,29894467,29894468,29894469,29894470,29894471,29894472,29894473?tags=papier,environnement,autre_refus,plastique,Teint_Dans_La_Masse,mal_croppe,flou,Carton_brun,kraft,Carton_gris,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29894441]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] map_info['map_portfolio_photo'] : {29894441: [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758, 1402164715, 1402164714, 1402164712, 1402164697, 1402164695, 1402164692, 1402164690, 1402164628, 1402164623, 1402164622, 1402164621, 1402164581, 1402164579, 1402164576, 1402164575, 1402164553, 1402164550, 1402164526, 1402164524, 1402164522, 1402164521, 1402164515, 1402164409, 1402164372, 1402164360, 1402164359, 1402164358, 1402164323, 1402164321, 1402164319, 1402164317, 1402164292, 1402164290, 1402164289, 1402164288, 1402164254, 1402164250, 1402164248, 1402164245, 1402164243, 1402164191, 1402164181, 1402164178, 1402164174, 1402164172, 1402164152, 1402164149, 1402164147, 1402164145, 1402164144]} final : False mtd_id 4302 list_pids : [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] Looping around the photos to save general results len do output : 1 /29894441. 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, '4303647') ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29894441', "{'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460}", None, None, None, None, '4303647'), ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647')] time used for this insertion : 0.01591658592224121 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.938218355178833 time spend to save output : 0.01621389389038086 total time spend for step 1 : 1.9544322490692139 step2:final Fri Jan 2 15:31:01 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 (29894441) 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 29894441 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402164152,1402164149,1402164147,1402164145,1402164144,1402164191,1402164181,1402164178,1402164174,1402164172,1402164254,1402164250,1402164248,1402164245,1402164243,1402164292,1402164290,1402164289,1402164288,1402164323,1402164321,1402164319,1402164317,1402164409,1402164372,1402164360,1402164359,1402164358,1402164526,1402164524,1402164522,1402164521,1402164515,1402164553,1402164550,1402164581,1402164579,1402164576,1402164575,1402164628,1402164623,1402164622,1402164621,1402164697,1402164695,1402164692,1402164690,1402164715,1402164714,1402164712,1402164767,1402164765,1402164762,1402164761,1402164759,1402164758,1402164792,1402164789,1402164787,1402164785,1402164783); 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([29894441]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} new output for save of step final : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] map_info['map_portfolio_photo'] : {29894441: [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758, 1402164715, 1402164714, 1402164712, 1402164697, 1402164695, 1402164692, 1402164690, 1402164628, 1402164623, 1402164622, 1402164621, 1402164581, 1402164579, 1402164576, 1402164575, 1402164553, 1402164550, 1402164526, 1402164524, 1402164522, 1402164521, 1402164515, 1402164409, 1402164372, 1402164360, 1402164359, 1402164358, 1402164323, 1402164321, 1402164319, 1402164317, 1402164292, 1402164290, 1402164289, 1402164288, 1402164254, 1402164250, 1402164248, 1402164245, 1402164243, 1402164191, 1402164181, 1402164178, 1402164174, 1402164172, 1402164152, 1402164149, 1402164147, 1402164145, 1402164144]} final : False mtd_id 4302 list_pids : [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] Looping around the photos to save general results len do output : 11 /1402164792.Didn't retrieve data . /1402164789.Didn't retrieve data . /1402164787.Didn't retrieve data . /1402164785.Didn't retrieve data . /1402164783.Didn't retrieve data . /1402164767.Didn't retrieve data . /1402164765.Didn't retrieve data . /1402164762.Didn't retrieve data . /1402164761.Didn't retrieve data . /1402164759.Didn't retrieve data . /1402164758.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, '4303647') ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '29894441', '1402164792', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164789', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164787', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164785', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164783', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164767', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164765', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164762', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164761', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164759', '0.07457480738462076', None, None, None, None, '4303647'), ('4302', '29894441', '1402164758', '0.07457480738462076', None, None, None, None, '4303647')] time used for this insertion : 0.015405654907226562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0856785774230957 time spend to save output : 0.01595139503479004 total time spend for step 2 : 0.10162997245788574 step3:velours_tree Fri Jan 2 15:31:02 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 : {29894441: [{'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460}]} input_args_next_step : {29894441: ()} output_args : {29894441: [{'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460}]} args : 29894441 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 : ({'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29894441) 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([29894441]) 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.28554630279541016 time spend to save output : 7.009506225585938e-05 total time spend for step 3 : 0.285616397857666 step4:send_mail_cod Fri Jan 2 15:31:02 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 : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} input_args_next_step : {1402164792: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164792 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164789 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164787 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164785 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164783 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164767 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164765 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164762 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164761 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164759 depend.output_id : 0 input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ()} output_args : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',)} args : 1402164758 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 : {29894441: [{'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460}]} input_args_next_step : {1402164792: ('0.07457480738462076',), 1402164789: ('0.07457480738462076',), 1402164787: ('0.07457480738462076',), 1402164785: ('0.07457480738462076',), 1402164783: ('0.07457480738462076',), 1402164767: ('0.07457480738462076',), 1402164765: ('0.07457480738462076',), 1402164762: ('0.07457480738462076',), 1402164761: ('0.07457480738462076',), 1402164759: ('0.07457480738462076',), 1402164758: ('0.07457480738462076',), 29894441: ()} output_args : {29894441: [{'papier': 29894449, 'environnement': 29894450, 'autre_refus': 29894451, 'plastique': 29894452, 'Teint_Dans_La_Masse': 29894453, 'mal_croppe': 29894454, 'flou': 29894455, 'Carton_brun': 29894456, 'kraft': 29894457, 'Carton_gris': 29894458, 'metal': 29894459, 'cartonnette': 29894460}]} args : 29894441 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 :12, first value : ('0.07457480738462076',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29894441) 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 (1402164792,1402164789,1402164787,1402164785,1402164783,1402164767,1402164765,1402164762,1402164761,1402164759,1402164758) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402164758 begin to download photo : 1402164762 begin to download photo : 1402164783 begin to download photo : 1402164789 download finish for photo 1402164783 begin to download photo : 1402164785 download finish for photo 1402164762 begin to download photo : 1402164765 download finish for photo 1402164789 begin to download photo : 1402164792 download finish for photo 1402164758 begin to download photo : 1402164759 download finish for photo 1402164785 begin to download photo : 1402164787 download finish for photo 1402164765 begin to download photo : 1402164767 download finish for photo 1402164759 begin to download photo : 1402164761 download finish for photo 1402164792 download finish for photo 1402164761 download finish for photo 1402164787 download finish for photo 1402164767 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29894441_02-01-2026_15_31_02.pdf 29894451 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=29894451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164440: '1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651950_0.png', 1402164511: '1767363687_3333655_1402164149_bf9ac38a8d9f114afb9554f1bc666666_rle_crop_4088652130_0.png', 1402164512: '1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652140_0.png', 1402164513: '1767363687_3333655_1402164145_d00549c7867e3ea3efd33b16d4fa18f3_rle_crop_4088652156_0.png', 1402164514: '1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652170_0.png', 1402164608: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652724_0.png', 1402164664: '1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652956_0.png', 1402164665: '1767363905_3342464_1402164358_b6e641e1be5332ce0cec5e0c7e859db7_rle_crop_4088653065_0.png', 1402164725: '1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653739_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f33575ab22fb9008bf44880e74582335_66568894.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/77e22fc5d1647f6aebbfe2f2c4b29832_61173226.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/9d7d0cb6f51fb5a443359e7f86dc2aa7_26002179.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/60c59e32b6fcf985477e3fecd85ba024_53127240.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/7aced8963b469a747f811e7da7ca752d_81362143.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/1fc978b86fdc9014cc6b2399cf8d0219_92603759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/27ad47ec2b5145dd38a7814377e1cf0b_59119465.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/605c323733995e721e8a10a56f66bbe5_68202129.png change filename to text .imagette298944511767364262/ imagette298944511767364262/1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652170_0.png.png imagette298944511767364262/1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652140_0.png.png imagette298944511767364262/1767363687_3333655_1402164149_bf9ac38a8d9f114afb9554f1bc666666_rle_crop_4088652130_0.png.png imagette298944511767364262/1767363687_3333655_1402164145_d00549c7867e3ea3efd33b16d4fa18f3_rle_crop_4088652156_0.png.png imagette298944511767364262/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652724_0.png.png imagette298944511767364262/1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653739_0.png.png imagette298944511767364262/1767363905_3342464_1402164358_b6e641e1be5332ce0cec5e0c7e859db7_rle_crop_4088653065_0.png.png imagette298944511767364262/1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651950_0.png.png imagette298944511767364262/1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652956_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e0044f17cce84cab7706c110c5e47257_992262.png imagette298944511767364262 29894452 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=29894452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164450: '1767363665_3332527_1402164174_de2a090ffafebdbcbbdbc557e85cea4e_rle_crop_4088651934_0.png', 1402164451: '1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651948_0.png', 1402164452: '1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651951_0.png', 1402164520: '1767363687_3333655_1402164145_d00549c7867e3ea3efd33b16d4fa18f3_rle_crop_4088652159_0.png', 1402164563: '1767363785_3338556_1402164321_26673164c962a0b5cb5e6800926cfa46_rle_crop_4088652452_0.png', 1402164564: '1767363785_3338556_1402164317_d8615576c0a26e84f5e27dfaa0c336a7_rle_crop_4088652464_0.png', 1402164616: '1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652714_0.png', 1402164617: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652736_0.png', 1402164618: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652732_0.png', 1402164682: '1767363905_3342464_1402164358_b6e641e1be5332ce0cec5e0c7e859db7_rle_crop_4088653063_0.png', 1402164744: '1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653755_0.png', 1402164746: '1767364027_3350286_1402164245_39a28f20cecd6887e9eeb7e28fe75919_rle_crop_4088654345_0.png', 1402164804: '1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654682_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/4bdf5bae4945ddad59c9a9131328b132_31859065.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/91980746688a18ce4cdaf91735bc9c1a_86244422.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/11d74024c7449e0091c842a521b1ae36_28730624.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/a6ac4dee28becb341368dfc3d7efab71_11737578.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e531bbc54292456979ba360c2f12bb0a_36288362.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/5946720b65a5f4431d2a7040009fe72a_84723795.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/925f1ba339efdf88f338d600f032cfb0_71519838.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/abd4ab98f742403ffe9aaf01a3190bec_3496507.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e4f9f5b4fb196422c2e3344bb20aafc0_90425297.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/3d46a1472f04a9905b4ea270119bfab6_16367468.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/2fd613de8ef8b435aa04b7bf06f26c63_46438650.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d05ca4b405f4a77b779c9aab899b99a1_44979419.png change filename to text .imagette298944521767364263/ imagette298944521767364263/1767363687_3333655_1402164145_d00549c7867e3ea3efd33b16d4fa18f3_rle_crop_4088652159_0.png.png imagette298944521767364263/1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654682_0.png.png imagette298944521767364263/1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651948_0.png.png imagette298944521767364263/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652736_0.png.png imagette298944521767364263/1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653755_0.png.png imagette298944521767364263/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652732_0.png.png imagette298944521767364263/1767364027_3350286_1402164245_39a28f20cecd6887e9eeb7e28fe75919_rle_crop_4088654345_0.png.png imagette298944521767364263/1767363785_3338556_1402164321_26673164c962a0b5cb5e6800926cfa46_rle_crop_4088652452_0.png.png imagette298944521767364263/1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652714_0.png.png imagette298944521767364263/1767363665_3332527_1402164174_de2a090ffafebdbcbbdbc557e85cea4e_rle_crop_4088651934_0.png.png imagette298944521767364263/1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651951_0.png.png imagette298944521767364263/1767363905_3342464_1402164358_b6e641e1be5332ce0cec5e0c7e859db7_rle_crop_4088653063_0.png.png imagette298944521767364263/1767363785_3338556_1402164317_d8615576c0a26e84f5e27dfaa0c336a7_rle_crop_4088652464_0.png.png imagette298944541767364264/ imagette298944551767364264/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/04779f2715f9ec01c5fd287726097911_32246269.png imagette298944521767364263 29894454 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=29894454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298944541767364264 29894455 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=29894455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298944551767364264 29894457 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=29894457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164620: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652735_0.png'} change filename to text .imagette298944571767364264/ imagette298944571767364264/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652735_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/876d4bdc2589bfa0e758ac87c29a4ef8_63599806.png imagette298944571767364264 29894459 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=29894459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164751: '1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653763_0.png'} change filename to text .imagette298944591767364264/ imagette298944591767364264/1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653763_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/3eb77e5a7cd2808a6d2aaf3db74fc035_72935427.png imagette298944591767364264 29894460 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=29894460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164673: '1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652971_0.png', 1402164815: '1767364167_3358996_1402164575_c1d6980b6218c3292f3ab468f4ea2d30_rle_crop_4088654982_0.png', 1402164814: '1767364167_3358996_1402164628_19ed7ebd41dd923404416d89d874ae47_rle_crop_4088654949_0.png', 1402164801: '1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654683_0.png', 1402164734: '1767364027_3350286_1402164243_99015c9570ea56de2f103d3c6e32cd28_rle_crop_4088654367_0.png', 1402164686: '1767363925_3343585_1402164289_675f8604fc7d2c59dc1826a73fca4429_rle_crop_4088653142_0.png', 1402164685: '1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653128_0.png', 1402164675: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653008_0.png', 1402164674: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653005_0.png', 1402164447: '1767363665_3332527_1402164181_274bdee7b168d3ac6072aaa64b6b879d_rle_crop_4088651909_0.png', 1402164612: '1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652740_0.png', 1402164611: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652729_0.png', 1402164610: '1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652706_0.png', 1402164609: '1767363866_3341161_1402164524_fad676a78907a36aa9e1485d16d36bec_rle_crop_4088652695_0.png', 1402164519: '1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652162_0.png', 1402164518: '1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652161_0.png', 1402164517: '1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652167_0.png', 1402164516: '1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652141_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b4a616514a858467ced5722d7b41ed7a_76053626.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b10e506ced6c00557f2047d7d4c8da0e_53329911.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/aaaf755232ade45ecf3237f77866eae6_69520488.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e7e68eec0f60a81e732e580158263a6d_70617930.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/da2f3cf6f4dbc8b8afa1471d0216143b_44101335.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c3829155bfbe1c9af4af1f7ee86de762_12877554.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/2b94b9aa93c20eb26195faf4ddd2d5e1_12848043.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/7fd473c5b984be9a5a395c42528c2b0c_661745.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/af00392a9ead94ed34654c8b0b618ab9_51329893.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/30d5ad719d57e35c911b53c98383a965_86090160.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f3b714c6597bc0d071d3b0b032f81c1d_79571788.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/5e9d5573ec07c9d06b6f0e315f443fc1_7447989.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/3b5979c89af9f078d6cc11b0920fd675_88286566.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/cbe7ed5aa8c7a34c8a4e00766ec197a3_8790325.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/164e30c94ea0a3ca74913afb63e1a2f7_13785824.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/2991beb1f197e728949e42d4d6afa243_72021064.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/58a11c011d32f35f12c5ecbe20d9768b_51568315.png change filename to text .imagette298944601767364264/ imagette298944601767364264/1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652706_0.png.png imagette298944601767364264/1767364167_3358996_1402164628_19ed7ebd41dd923404416d89d874ae47_rle_crop_4088654949_0.png.png imagette298944601767364264/1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652971_0.png.png imagette298944601767364264/1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652167_0.png.png imagette298944601767364264/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653005_0.png.png imagette298944601767364264/1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654683_0.png.png imagette298944601767364264/1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652141_0.png.png imagette298944601767364264/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653008_0.png.png imagette298944601767364264/1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652740_0.png.png imagette298944601767364264/1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653128_0.png.png imagette298944601767364264/1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652161_0.png.png imagette298944601767364264/1767363665_3332527_1402164181_274bdee7b168d3ac6072aaa64b6b879d_rle_crop_4088651909_0.png.png imagette298944601767364264/1767363687_3333655_1402164144_61dda3f80cee9a62f34dc7d658f7f04f_rle_crop_4088652162_0.png.png imagette298944601767364264/1767363866_3341161_1402164524_fad676a78907a36aa9e1485d16d36bec_rle_crop_4088652695_0.png.png imagette298944601767364264/1767364027_3350286_1402164243_99015c9570ea56de2f103d3c6e32cd28_rle_crop_4088654367_0.png.png imagette298944601767364264/1767364167_3358996_1402164575_c1d6980b6218c3292f3ab468f4ea2d30_rle_crop_4088654982_0.png.png imagette298944601767364264/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652729_0.png.png imagette298944601767364264/1767363925_3343585_1402164289_675f8604fc7d2c59dc1826a73fca4429_rle_crop_4088653142_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/5717218305fa756715e1aa79c2422eb1_85113953.png imagette298944601767364264 29894453 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=29894453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164438: '1767363665_3332527_1402164181_274bdee7b168d3ac6072aaa64b6b879d_rle_crop_4088651911_0.png', 1402164509: '1767363687_3333655_1402164152_91032d0bc93490d17b6c839c1d951f90_rle_crop_4088652125_0.png', 1402164510: '1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652144_0.png', 1402164605: '1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652734_0.png', 1402164606: '1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652752_0.png', 1402164607: '1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652745_0.png', 1402164662: '1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652958_0.png', 1402164683: '1767363925_3343585_1402164288_2d3ec1b00ab017eec15cd5a2e62975a9_rle_crop_4088653153_0.png', 1402164777: '1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654487_0.png', 1402164796: '1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654687_0.png', 1402164797: '1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654686_0.png', 1402164799: '1767364145_3356623_1402164622_783bf754beb1635a4816d13bf9b96974_rle_crop_4088654711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8bc6ed982323442761ac0c6f01fd7903_37457022.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/462015cd84e1478ef72339c171b6f00f_6586732.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/2de3d28cc262c0b92b878207ab85a15e_26664329.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c1b0963116d7e64464914d4228a7741b_38755818.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b2f03f9ec795800b8927823cb540a380_14247875.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d5a8c1b663f0a54195d21a11ef1c5d7b_3652547.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c5312a347cb2ff139d40188bf782a934_92361827.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8916981f185ee07b74802b87a4a9c8b2_6879519.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c395524c084432d5d84be467afc98638_53904158.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c836da5db2f8f5b10a3c49158ac285a5_49573129.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/45a533cab6e21a06a3383aa643efb654_80544151.png change filename to text .imagette298944531767364266/ imagette298944531767364266/1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654686_0.png.png imagette298944531767364266/1767363866_3341161_1402164521_b5c390c245ac6944458601e68b41f905_rle_crop_4088652734_0.png.png imagette298944531767364266/1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652745_0.png.png imagette298944531767364266/1767363866_3341161_1402164515_c9f00d65adf9c780928f7d40535229dc_rle_crop_4088652752_0.png.png imagette298944531767364266/1767364145_3356623_1402164622_783bf754beb1635a4816d13bf9b96974_rle_crop_4088654711_0.png.png imagette298944531767364266/1767363687_3333655_1402164147_7862e0662508e4f1464dc14b15b716a1_rle_crop_4088652144_0.png.png imagette298944531767364266/1767363665_3332527_1402164181_274bdee7b168d3ac6072aaa64b6b879d_rle_crop_4088651911_0.png.png imagette298944531767364266/1767364145_3356623_1402164697_63a218bb5dab82434051287dd76e531f_rle_crop_4088654687_0.png.png imagette298944531767364266/1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654487_0.png.png imagette298944531767364266/1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652958_0.png.png imagette298944531767364266/1767363925_3343585_1402164288_2d3ec1b00ab017eec15cd5a2e62975a9_rle_crop_4088653153_0.png.png imagette298944531767364266/1767363687_3333655_1402164152_91032d0bc93490d17b6c839c1d951f90_rle_crop_4088652125_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ed96001b1bbac09202369c4162d58e03_2293181.png imagette298944531767364266 29894456 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=29894456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164688: '1767363925_3343585_1402164289_675f8604fc7d2c59dc1826a73fca4429_rle_crop_4088653138_0.png', 1402164816: '1767364167_3358996_1402164628_19ed7ebd41dd923404416d89d874ae47_rle_crop_4088654952_0.png', 1402164803: '1767364145_3356623_1402164622_783bf754beb1635a4816d13bf9b96974_rle_crop_4088654714_0.png', 1402164802: '1767364145_3356623_1402164623_f1a6805bfd3a5513b67816abaa621dd3_rle_crop_4088654700_0.png', 1402164781: '1767364106_3355917_1402164692_5ef903322f475e16d2ebc00669fb2f14_rle_crop_4088654506_0.png', 1402164780: '1767364106_3355917_1402164692_5ef903322f475e16d2ebc00669fb2f14_rle_crop_4088654510_0.png', 1402164779: '1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654493_0.png', 1402164778: '1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654492_0.png', 1402164736: '1767364027_3350286_1402164248_1ddb950116a7e82a1852afabde6c70a2_rle_crop_4088654293_0.png', 1402164614: '1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652715_0.png', 1402164687: '1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653125_0.png', 1402164681: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653007_0.png', 1402164680: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653009_0.png', 1402164679: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653006_0.png', 1402164678: '1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652991_0.png', 1402164677: '1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652995_0.png', 1402164615: '1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652717_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/6f00305bc7f3496ef19b5aa1880fef5f_54765989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f8b1856fd6a035172aee6ab03ee63daa_55890170.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/7104a7f27fa28ecdc8057e192be959a1_4793604.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d62e8c6810c402a71c014adfbd1a5f9f_52335291.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e30a0a2a578b5f7fd760ad99b7fec04f_57749463.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/4ce53b62ab245a6599510f33e7462b67_96066896.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b55a1362a5f312023461377d30e6d2f6_4564837.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/9d922c25bb56e3f9169591393ed80ca1_74507743.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8108d430340ef906ad31e9f1b44f9c2c_4239268.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d51037d194725043b547411092ff9b47_31703711.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/e7eddce8b315612090863fee1323ece5_83253730.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b656589de1dcd7e1644a959ce028841b_10167313.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/131a48969191cdbd18a5a10ac45c8429_55015332.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/1830cc6a0380ffdc8048e111e4e6b293_49630127.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c416b7e609ffba2bac63f04052551b4d_74137129.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/cc0ec05a4c25ee6bbad188650d7594ed_27489397.png change filename to text .imagette298944561767364267/ imagette298944561767364267/1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652715_0.png.png imagette298944561767364267/1767364106_3355917_1402164692_5ef903322f475e16d2ebc00669fb2f14_rle_crop_4088654510_0.png.png imagette298944561767364267/1767364145_3356623_1402164623_f1a6805bfd3a5513b67816abaa621dd3_rle_crop_4088654700_0.png.png imagette298944561767364267/1767364027_3350286_1402164248_1ddb950116a7e82a1852afabde6c70a2_rle_crop_4088654293_0.png.png imagette298944561767364267/1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654492_0.png.png imagette298944561767364267/1767364145_3356623_1402164622_783bf754beb1635a4816d13bf9b96974_rle_crop_4088654714_0.png.png imagette298944561767364267/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653007_0.png.png imagette298944561767364267/1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652995_0.png.png imagette298944561767364267/1767364167_3358996_1402164628_19ed7ebd41dd923404416d89d874ae47_rle_crop_4088654952_0.png.png imagette298944561767364267/1767363925_3343585_1402164289_675f8604fc7d2c59dc1826a73fca4429_rle_crop_4088653138_0.png.png imagette298944561767364267/1767364106_3355917_1402164695_621adc9408262d7b4f652d1cf00f9deb_rle_crop_4088654493_0.png.png imagette298944561767364267/1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653125_0.png.png imagette298944561767364267/1767363866_3341161_1402164522_400a44b6493a3f3ff491be6ff81de384_rle_crop_4088652717_0.png.png imagette298944561767364267/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653009_0.png.png imagette298944561767364267/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653006_0.png.png imagette298944561767364267/1767364106_3355917_1402164692_5ef903322f475e16d2ebc00669fb2f14_rle_crop_4088654506_0.png.png imagette298944561767364267/1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652991_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ffce8240b36253fef43171154e520916_19275604.png imagette298944561767364267 29894458 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=29894458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402164445: '1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651942_0.png', 1402164561: '1767363785_3338556_1402164317_d8615576c0a26e84f5e27dfaa0c336a7_rle_crop_4088652468_0.png', 1402164667: '1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652955_0.png', 1402164668: '1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652959_0.png', 1402164669: '1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652974_0.png', 1402164670: '1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652976_0.png', 1402164671: '1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652986_0.png', 1402164672: '1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653003_0.png', 1402164684: '1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653122_0.png', 1402164729: '1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653738_0.png', 1402164730: '1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653744_0.png', 1402164731: '1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653757_0.png', 1402164732: '1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653761_0.png', 1402164733: '1767364027_3350286_1402164245_39a28f20cecd6887e9eeb7e28fe75919_rle_crop_4088654354_0.png', 1402164800: '1767364145_3356623_1402164621_420a0fafb1355b749ce454f508f4f544_rle_crop_4088654775_0.png', 1402164813: '1767364167_3358996_1402164579_e08564da32e3e59f737dcf48394abb23_rle_crop_4088654961_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b04553fa44a1ffbf913355b9b8ceafac_97353349.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/76d3ac70300b4c4f6989b80934c65748_72809141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/6ba9ee04829f48baa2c0440f0aeb9b1d_29257584.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/fb599b3d58818aad533e7b4ffd1098f9_69519078.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/793fa9243fc45e953008bbbba55bee7d_32238985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/61f9595e9909f8f3f5418c2af1bd17d3_36652557.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/45cc9bc40313294d2043d6fc3842dbe2_52689370.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/2662ce08ee0dab1785933b2047db01ab_30690140.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/6853ec56d1cd04a93e39c3fe3776e23a_56066220.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/a641fbf15d8e00776bc15bb6454632b6_18910412.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/b6192365a81969a02284840d7c934612_9308837.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/dd5e617187a326eff1c040066467a45c_83957052.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/65ddaf5ef206823e1ae5111eaecdab23_19243115.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/9701c8046446929d3605bf0b23ab2911_50211236.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/4b06d7d8274741e7fbd6261e4fdb9e13_62882828.png change filename to text .imagette298944581767364268/ imagette298944581767364268/1767363665_3332527_1402164172_1b292915706c798e0e6f013321709ccd_rle_crop_4088651942_0.png.png imagette298944581767364268/1767363905_3342464_1402164360_213ff83822a9ed87222038eb2f53f0cb_rle_crop_4088652986_0.png.png imagette298944581767364268/1767363785_3338556_1402164317_d8615576c0a26e84f5e27dfaa0c336a7_rle_crop_4088652468_0.png.png imagette298944581767364268/1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653738_0.png.png imagette298944581767364268/1767364027_3350286_1402164292_35faf39a40828df33b1a202410e36c38_rle_crop_4088653744_0.png.png imagette298944581767364268/1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652974_0.png.png imagette298944581767364268/1767363925_3343585_1402164290_f5822324b7ed39298d748a7451f961c6_rle_crop_4088653122_0.png.png imagette298944581767364268/1767364145_3356623_1402164621_420a0fafb1355b749ce454f508f4f544_rle_crop_4088654775_0.png.png imagette298944581767364268/1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653761_0.png.png imagette298944581767364268/1767364167_3358996_1402164579_e08564da32e3e59f737dcf48394abb23_rle_crop_4088654961_0.png.png imagette298944581767364268/1767363905_3342464_1402164359_70a18c01841bdfa9e58c0393ea850455_rle_crop_4088653003_0.png.png imagette298944581767364268/1767363905_3342464_1402164372_09f3d5d8ebb9eb1301ccebd5c14d9ef0_rle_crop_4088652976_0.png.png imagette298944581767364268/1767364027_3350286_1402164250_365b41c78d30940110c141ada242df14_rle_crop_4088653757_0.png.png imagette298944581767364268/1767364027_3350286_1402164245_39a28f20cecd6887e9eeb7e28fe75919_rle_crop_4088654354_0.png.png imagette298944581767364268/1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652959_0.png.png imagette298944581767364268/1767363905_3342464_1402164526_bcaa4b94d52b94ef849ccb99d39defcc_rle_crop_4088652955_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/1db92343d4887812db26c3bc9e0feab1_8526256.png imagette298944581767364268 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29894441 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29894462,29894463,29894464,29894465,29894466,29894467,29894468,29894469,29894470,29894471,29894472,29894473?tags=papier,environnement,autre_refus,plastique,Teint_Dans_La_Masse,mal_croppe,flou,Carton_brun,kraft,Carton_gris,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1402164792] : ('0.07457480738462076',) no score found for photo 1402164792 We are sending mail with results at report@fotonower.com args[1402164789] : ('0.07457480738462076',) no score found for photo 1402164789 We are sending mail with results at report@fotonower.com args[1402164787] : ('0.07457480738462076',) no score found for photo 1402164787 We are sending mail with results at report@fotonower.com args[1402164785] : ('0.07457480738462076',) no score found for photo 1402164785 We are sending mail with results at report@fotonower.com args[1402164783] : ('0.07457480738462076',) no score found for photo 1402164783 We are sending mail with results at report@fotonower.com args[1402164767] : ('0.07457480738462076',) no score found for photo 1402164767 We are sending mail with results at report@fotonower.com args[1402164765] : ('0.07457480738462076',) no score found for photo 1402164765 We are sending mail with results at report@fotonower.com args[1402164762] : ('0.07457480738462076',) no score found for photo 1402164762 We are sending mail with results at report@fotonower.com args[1402164761] : ('0.07457480738462076',) no score found for photo 1402164761 We are sending mail with results at report@fotonower.com args[1402164759] : ('0.07457480738462076',) no score found for photo 1402164759 We are sending mail with results at report@fotonower.com args[1402164758] : ('0.07457480738462076',) no score found for photo 1402164758 We are sending mail with results at report@fotonower.com refus_total : 0.07457480738462076 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=29894441 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_P29894441_02-01-2026_15_31_02.pdf results_Auto_P29894441_02-01-2026_15_31_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29894441_02-01-2026_15_31_02.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','29894441','results_Auto_P29894441_02-01-2026_15_31_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29894441_02-01-2026_15_31_02.pdf','pdf','','0.35','0.07457480738462076') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29894441]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] map_info['map_portfolio_photo'] : {29894441: [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758, 1402164715, 1402164714, 1402164712, 1402164697, 1402164695, 1402164692, 1402164690, 1402164628, 1402164623, 1402164622, 1402164621, 1402164581, 1402164579, 1402164576, 1402164575, 1402164553, 1402164550, 1402164526, 1402164524, 1402164522, 1402164521, 1402164515, 1402164409, 1402164372, 1402164360, 1402164359, 1402164358, 1402164323, 1402164321, 1402164319, 1402164317, 1402164292, 1402164290, 1402164289, 1402164288, 1402164254, 1402164250, 1402164248, 1402164245, 1402164243, 1402164191, 1402164181, 1402164178, 1402164174, 1402164172, 1402164152, 1402164149, 1402164147, 1402164145, 1402164144]} final : False mtd_id 4302 list_pids : [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] 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, '4303647') ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '29894441', '1402164792', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647')] time used for this insertion : 0.015266656875610352 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.53095293045044 time spend to save output : 0.015489578247070312 total time spend for step 4 : 8.54644250869751 step5:split_time_score Fri Jan 2 15:31:10 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 : ['29894441'] 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 : [('29894441',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29894441) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402164789: {'path': 'temp/1767364262_1876183_1402164789_130441f46b92461ab7f968a60d9775c8.jpg', 'extension': 'jpg'}, 1402164792: {'path': 'temp/1767364262_1876183_1402164792_d228d4fdb2919fedb68f09ca15ccc751.jpg', 'extension': 'jpg'}, 1402164758: {'path': 'temp/1767364262_1876183_1402164758_9ffa5bded3067d20170f61a23f673fad.jpg', 'extension': 'jpg'}, 1402164759: {'path': 'temp/1767364262_1876183_1402164759_1bfe0d19e9d8602149a9a71405b91975.jpg', 'extension': 'jpg'}, 1402164761: {'path': 'temp/1767364262_1876183_1402164761_728ae32c66e9f5fb064775f14358c430.jpg', 'extension': 'jpg'}, 1402164783: {'path': 'temp/1767364262_1876183_1402164783_cba3e55357977a1b2f00b615a3b399f1.jpg', 'extension': 'jpg'}, 1402164785: {'path': 'temp/1767364262_1876183_1402164785_13772d64eabd3ff818bc243feeb05e69.jpg', 'extension': 'jpg'}, 1402164787: {'path': 'temp/1767364262_1876183_1402164787_083ee86153a6a0ae9491be0110afa388.jpg', 'extension': 'jpg'}, 1402164762: {'path': 'temp/1767364262_1876183_1402164762_9ea9a606ce6cb70e184f4cb96ad99aec.jpg', 'extension': 'jpg'}, 1402164765: {'path': 'temp/1767364262_1876183_1402164765_7c4f973ea7d1c49cde9b6ece3050d9f9.jpg', 'extension': 'jpg'}, 1402164767: {'path': 'temp/1767364262_1876183_1402164767_b67c16897fb6706a49131dbe54445e3d.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 = 29894441; (('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 = 29894441 group by h (('15', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29894441 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 (29894441) 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 (29894441) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02012026 29894441 Nombre de photos uploadées : 61 / 23040 (0%) 02012026 29894441 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 02012026 29894441 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1402164152, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/91032d0bc93490d17b6c839c1d951f90.jpg', 'username': None, 'uploaded_at': 1767363367, 'text': 'image_02012026_15_15_04_009129m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402164149, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/bf9ac38a8d9f114afb9554f1bc666666.jpg', 'username': None, 'uploaded_at': 1767363367, 'text': 'image_02012026_15_15_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402164147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/7862e0662508e4f1464dc14b15b716a1.jpg', 'username': None, 'uploaded_at': 1767363367, 'text': 'image_02012026_15_15_24_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1402164145, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d00549c7867e3ea3efd33b16d4fa18f3.jpg', 'username': None, 'uploaded_at': 1767363367, 'text': 'image_02012026_15_15_34_010139m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022318363189697266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29894441, '2026-01-02' ) 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-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2829505,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2435917854309082 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= 2829505 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29875698, 'dashboard_result_id': 18947683, '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_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29875852, 'dashboard_result_id': 18947684, '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_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29876194, 'dashboard_result_id': 18947685, '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_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29876652, 'dashboard_result_id': 18947686, '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_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29876801, 'dashboard_result_id': 18947687, '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_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29877372, 'dashboard_result_id': 18947688, '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_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29878166, 'dashboard_result_id': 18947689, '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_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29879046, 'dashboard_result_id': 18947690, '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_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29879603, 'dashboard_result_id': 18947691, '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_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29880964, 'dashboard_result_id': 18947692, '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_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29882264, 'dashboard_result_id': 18947693, '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_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29882750, 'dashboard_result_id': 18947694, '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_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29883285, 'dashboard_result_id': 18947695, '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_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29883844, 'dashboard_result_id': 18947696, '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_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29885052, 'dashboard_result_id': 18947697, '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_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29885399, 'dashboard_result_id': 18947698, '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_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29886087, 'dashboard_result_id': 18947699, '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_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29886560, 'dashboard_result_id': 18947700, '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_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29887236, 'dashboard_result_id': 18947701, '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_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29887673, 'dashboard_result_id': 18947702, '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_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29888232, 'dashboard_result_id': 18947703, '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_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29888770, 'dashboard_result_id': 18947704, '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_P29888770_02-01-2026_13_08_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29889878, 'dashboard_result_id': 18947705, '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_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29890060, 'dashboard_result_id': 18947706, '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_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29890504, 'dashboard_result_id': 18947707, '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_P29890504_02-01-2026_13_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29890924, 'dashboard_result_id': 18947708, '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_P29890924_02-01-2026_14_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29890934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890945, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29891424, 'dashboard_result_id': 18947709, '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_P29891424_02-01-2026_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29891433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29891434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29891435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29891437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29891438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29891439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29891440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29891441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29891442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29891443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29891444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29891445, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29892105, 'dashboard_result_id': 18947710, '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_P29892105_02-01-2026_14_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892117, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29892650, 'dashboard_result_id': 18947711, '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_P29892650_02-01-2026_14_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892700, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29893171, 'dashboard_result_id': 18947712, '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_P29893171_02-01-2026_15_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893183, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29893776, 'dashboard_result_id': 18947713, '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_P29893776_02-01-2026_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893828, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2840083, 'mtr_portfolio_id': 29894441, 'dashboard_result_id': 18947714, '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_P29894441_02-01-2026_15_29_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29894449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29894450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29894451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29894452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29894453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29894454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29894455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29894456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29894457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29894458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29894459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29894460, '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 = 29875698 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': 4301255, 'mtr_portfolio_id': 29875698, 'created_at': datetime.datetime(2026, 1, 2, 6, 16, 59), 'result': '0.07492098906161705', 'result_long': None, 'result_double': None}] Qualite : 0.07492098906161705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29875698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875698_02-01-2026_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29875698 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_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, 'pht': 3726}}" where mtr_portfolio_id = 29875698 and dashboard_run_id = 2840083 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`=29875698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947683, 0.07492098906161705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, '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 = 29875852 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': 4301270, 'mtr_portfolio_id': 29875852, 'created_at': datetime.datetime(2026, 1, 2, 6, 33), 'result': '0.04900243563743138', 'result_long': None, 'result_double': None}] Qualite : 0.04900243563743138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29875852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875852_02-01-2026_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29875852 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_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, 'pht': 3726}}" where mtr_portfolio_id = 29875852 and dashboard_run_id = 2840083 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`=29875852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947684, 0.04900243563743138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, '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 = 29876194 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': 4301315, 'mtr_portfolio_id': 29876194, 'created_at': datetime.datetime(2026, 1, 2, 6, 52, 31), 'result': '0.05190981045133743', 'result_long': None, 'result_double': None}] Qualite : 0.05190981045133743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876194_02-01-2026_06_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876194 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_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, 'pht': 3726}}" where mtr_portfolio_id = 29876194 and dashboard_run_id = 2840083 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`=29876194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947685, 0.05190981045133743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, '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 = 29876652 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': 4301388, 'mtr_portfolio_id': 29876652, 'created_at': datetime.datetime(2026, 1, 2, 7, 2, 59), 'result': '0.05348336988569866', 'result_long': None, 'result_double': None}] Qualite : 0.05348336988569866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876652_02-01-2026_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876652 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_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, 'pht': 3726}}" where mtr_portfolio_id = 29876652 and dashboard_run_id = 2840083 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`=29876652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947686, 0.05348336988569866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, '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 = 29876801 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': 4301433, 'mtr_portfolio_id': 29876801, 'created_at': datetime.datetime(2026, 1, 2, 7, 16, 58), 'result': '0.04076281109278468', 'result_long': None, 'result_double': None}] Qualite : 0.04076281109278468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876801_02-01-2026_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876801 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_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, 'pht': 3726}}" where mtr_portfolio_id = 29876801 and dashboard_run_id = 2840083 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`=29876801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947687, 0.04076281109278468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, '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 = 29877372 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': 4301509, 'mtr_portfolio_id': 29877372, 'created_at': datetime.datetime(2026, 1, 2, 7, 33, 34), 'result': '0.07603382662942415', 'result_long': None, 'result_double': None}] Qualite : 0.07603382662942415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29877372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29877372_02-01-2026_07_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29877372 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_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, 'pht': 3726}}" where mtr_portfolio_id = 29877372 and dashboard_run_id = 2840083 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`=29877372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947688, 0.07603382662942415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, '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 = 29878166 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': 4301599, 'mtr_portfolio_id': 29878166, 'created_at': datetime.datetime(2026, 1, 2, 7, 48, 59), 'result': '0.05564820976051616', 'result_long': None, 'result_double': None}] Qualite : 0.05564820976051616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29878166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29878166_02-01-2026_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29878166 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_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, 'pht': 3726}}" where mtr_portfolio_id = 29878166 and dashboard_run_id = 2840083 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`=29878166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947689, 0.05564820976051616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, '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 = 29879046 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': 4301685, 'mtr_portfolio_id': 29879046, 'created_at': datetime.datetime(2026, 1, 2, 8, 2, 59), 'result': '0.07583762117707248', 'result_long': None, 'result_double': None}] Qualite : 0.07583762117707248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29879046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879046_02-01-2026_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29879046 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_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, 'pht': 3726}}" where mtr_portfolio_id = 29879046 and dashboard_run_id = 2840083 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`=29879046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947690, 0.07583762117707248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, '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 = 29879603 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': 4301764, 'mtr_portfolio_id': 29879603, 'created_at': datetime.datetime(2026, 1, 2, 8, 20, 59), 'result': '0.08415306723980351', 'result_long': None, 'result_double': None}] Qualite : 0.08415306723980351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29879603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879603_02-01-2026_08_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29879603 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_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, 'pht': 3726}}" where mtr_portfolio_id = 29879603 and dashboard_run_id = 2840083 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`=29879603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947691, 0.08415306723980351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, '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 = 29880964 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': 4301941, 'mtr_portfolio_id': 29880964, 'created_at': datetime.datetime(2026, 1, 2, 9, 32, 58), 'result': '0.034355635543217904', 'result_long': None, 'result_double': None}] Qualite : 0.034355635543217904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29880964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29880964_02-01-2026_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29880964 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_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, 'pht': 3726}}" where mtr_portfolio_id = 29880964 and dashboard_run_id = 2840083 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`=29880964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947692, 0.034355635543217904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, '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 = 29882264 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': 4302074, 'mtr_portfolio_id': 29882264, 'created_at': datetime.datetime(2026, 1, 2, 9, 46, 58), 'result': '0.055925634359195155', 'result_long': None, 'result_double': None}] Qualite : 0.055925634359195155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29882264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882264_02-01-2026_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29882264 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_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, 'pht': 3726}}" where mtr_portfolio_id = 29882264 and dashboard_run_id = 2840083 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`=29882264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947693, 0.055925634359195155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, '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 = 29882750 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': 4302114, 'mtr_portfolio_id': 29882750, 'created_at': datetime.datetime(2026, 1, 2, 10, 3), 'result': '0.04812454678514593', 'result_long': None, 'result_double': None}] Qualite : 0.04812454678514593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29882750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882750_02-01-2026_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29882750 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_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, 'pht': 3726}}" where mtr_portfolio_id = 29882750 and dashboard_run_id = 2840083 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`=29882750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947694, 0.04812454678514593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, '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 = 29883285 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': 4302179, 'mtr_portfolio_id': 29883285, 'created_at': datetime.datetime(2026, 1, 2, 10, 16, 59), 'result': '0.05391099478832504', 'result_long': None, 'result_double': None}] Qualite : 0.05391099478832504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29883285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883285_02-01-2026_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29883285 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_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, 'pht': 3726}}" where mtr_portfolio_id = 29883285 and dashboard_run_id = 2840083 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`=29883285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947695, 0.05391099478832504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, '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 = 29883844 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': 4302271, 'mtr_portfolio_id': 29883844, 'created_at': datetime.datetime(2026, 1, 2, 10, 32, 57), 'result': '0.05451822525507153', 'result_long': None, 'result_double': None}] Qualite : 0.05451822525507153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29883844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883844_02-01-2026_10_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29883844 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_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, 'pht': 3726}}" where mtr_portfolio_id = 29883844 and dashboard_run_id = 2840083 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`=29883844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947696, 0.05451822525507153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, '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 = 29885052 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': 4302410, 'mtr_portfolio_id': 29885052, 'created_at': datetime.datetime(2026, 1, 2, 11, 3), 'result': '0.04917771762162418', 'result_long': None, 'result_double': None}] Qualite : 0.04917771762162418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29885052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885052_02-01-2026_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29885052 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_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, 'pht': 3726}}" where mtr_portfolio_id = 29885052 and dashboard_run_id = 2840083 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`=29885052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947697, 0.04917771762162418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, '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 = 29885399 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': 4302470, 'mtr_portfolio_id': 29885399, 'created_at': datetime.datetime(2026, 1, 2, 11, 19, 29), 'result': '0.05354351654812283', 'result_long': None, 'result_double': None}] Qualite : 0.05354351654812283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29885399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885399_02-01-2026_11_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29885399 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_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, 'pht': 3726}}" where mtr_portfolio_id = 29885399 and dashboard_run_id = 2840083 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`=29885399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947698, 0.05354351654812283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, '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 = 29886087 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': 4302556, 'mtr_portfolio_id': 29886087, 'created_at': datetime.datetime(2026, 1, 2, 11, 33, 1), 'result': '0.08963982782625529', 'result_long': None, 'result_double': None}] Qualite : 0.08963982782625529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29886087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886087_02-01-2026_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29886087 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_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, 'pht': 3726}}" where mtr_portfolio_id = 29886087 and dashboard_run_id = 2840083 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`=29886087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947699, 0.08963982782625529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, '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 = 29886560 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': 4302616, 'mtr_portfolio_id': 29886560, 'created_at': datetime.datetime(2026, 1, 2, 11, 46, 58), 'result': '0.09058900617271963', 'result_long': None, 'result_double': None}] Qualite : 0.09058900617271963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29886560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886560_02-01-2026_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29886560 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_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, 'pht': 3726}}" where mtr_portfolio_id = 29886560 and dashboard_run_id = 2840083 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`=29886560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947700, 0.09058900617271963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, '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 = 29887236 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': 4302693, 'mtr_portfolio_id': 29887236, 'created_at': datetime.datetime(2026, 1, 2, 12, 2, 57), 'result': '0.04614894091967786', 'result_long': None, 'result_double': None}] Qualite : 0.04614894091967786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29887236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887236_02-01-2026_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29887236 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_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, 'pht': 3726}}" where mtr_portfolio_id = 29887236 and dashboard_run_id = 2840083 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`=29887236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947701, 0.04614894091967786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, '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 = 29887673 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': 4302771, 'mtr_portfolio_id': 29887673, 'created_at': datetime.datetime(2026, 1, 2, 12, 17), 'result': '0.053007170289858296', 'result_long': None, 'result_double': None}] Qualite : 0.053007170289858296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29887673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887673_02-01-2026_12_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29887673 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_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, 'pht': 3726}}" where mtr_portfolio_id = 29887673 and dashboard_run_id = 2840083 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`=29887673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947702, 0.053007170289858296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, '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 = 29888232 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': 4302831, 'mtr_portfolio_id': 29888232, 'created_at': datetime.datetime(2026, 1, 2, 12, 33, 1), 'result': '0.03582819108119962', 'result_long': None, 'result_double': None}] Qualite : 0.03582819108119962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29888232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888232_02-01-2026_12_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29888232 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_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, 'pht': 3726}}" where mtr_portfolio_id = 29888232 and dashboard_run_id = 2840083 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`=29888232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947703, 0.03582819108119962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, '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 = 29888770 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': 4302916, 'mtr_portfolio_id': 29888770, 'created_at': datetime.datetime(2026, 1, 2, 13, 8, 58), 'result': '0.05506664571258238', 'result_long': None, 'result_double': None}] Qualite : 0.05506664571258238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29888770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888770_02-01-2026_13_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29888770 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_P29888770_02-01-2026_13_08_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, 'pht': 3726}}" where mtr_portfolio_id = 29888770 and dashboard_run_id = 2840083 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`=29888770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947704, 0.05506664571258238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888770_02-01-2026_13_08_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, '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 = 29889878 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': 4303076, 'mtr_portfolio_id': 29889878, 'created_at': datetime.datetime(2026, 1, 2, 13, 17), 'result': '0.09911732814472843', 'result_long': None, 'result_double': None}] Qualite : 0.09911732814472843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29889878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29889878_02-01-2026_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29889878 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_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, 'pht': 3726}}" where mtr_portfolio_id = 29889878 and dashboard_run_id = 2840083 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`=29889878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947705, 0.09911732814472843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, '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 = 29890060 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': 4303090, 'mtr_portfolio_id': 29890060, 'created_at': datetime.datetime(2026, 1, 2, 13, 33, 58), 'result': '0.07105733348894742', 'result_long': None, 'result_double': None}] Qualite : 0.07105733348894742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29890060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890060_02-01-2026_13_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29890060 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_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, 'pht': 3726}}" where mtr_portfolio_id = 29890060 and dashboard_run_id = 2840083 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`=29890060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947706, 0.07105733348894742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, '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 = 29890504 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': 4303142, 'mtr_portfolio_id': 29890504, 'created_at': datetime.datetime(2026, 1, 2, 13, 46, 56), 'result': '0.056420807414961145', 'result_long': None, 'result_double': None}] Qualite : 0.056420807414961145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29890504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29890504 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_P29890504_02-01-2026_13_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, 'pht': 3726}}" where mtr_portfolio_id = 29890504 and dashboard_run_id = 2840083 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`=29890504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947707, 0.056420807414961145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, '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 = 29890924 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': 4303188, 'mtr_portfolio_id': 29890924, 'created_at': datetime.datetime(2026, 1, 2, 14, 2, 58), 'result': '0.079831616121379', 'result_long': None, 'result_double': None}] Qualite : 0.079831616121379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29890924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890924_02-01-2026_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29890924 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_P29890924_02-01-2026_14_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29890934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890945, 'pht': 3726}}" where mtr_portfolio_id = 29890924 and dashboard_run_id = 2840083 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`=29890924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947708, 0.079831616121379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890924_02-01-2026_14_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29890934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890945, '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 = 29891424 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': 4303285, 'mtr_portfolio_id': 29891424, 'created_at': datetime.datetime(2026, 1, 2, 14, 16, 58), 'result': '0.046792705370101925', 'result_long': None, 'result_double': None}] Qualite : 0.046792705370101925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29891424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29891424_02-01-2026_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29891424 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_P29891424_02-01-2026_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29891433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29891434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29891435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29891437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29891438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29891439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29891440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29891441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29891442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29891443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29891444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29891445, 'pht': 3726}}" where mtr_portfolio_id = 29891424 and dashboard_run_id = 2840083 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`=29891424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947709, 0.046792705370101925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29891424_02-01-2026_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29891433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29891434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29891435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29891437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29891438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29891439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29891440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29891441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29891442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29891443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29891444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29891445, '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 = 29892105 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': 4303352, 'mtr_portfolio_id': 29892105, 'created_at': datetime.datetime(2026, 1, 2, 14, 35), 'result': '0.06105726088478828', 'result_long': None, 'result_double': None}] Qualite : 0.06105726088478828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29892105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29892105_02-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29892105 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_P29892105_02-01-2026_14_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892117, 'pht': 3726}}" where mtr_portfolio_id = 29892105 and dashboard_run_id = 2840083 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`=29892105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947710, 0.06105726088478828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29892105_02-01-2026_14_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892117, '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 = 29892650 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': 4303427, 'mtr_portfolio_id': 29892650, 'created_at': datetime.datetime(2026, 1, 2, 14, 47, 1), 'result': '0.03527696537591814', 'result_long': None, 'result_double': None}] Qualite : 0.03527696537591814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29892650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29892650_02-01-2026_14_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29892650 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_P29892650_02-01-2026_14_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892700, 'pht': 3726}}" where mtr_portfolio_id = 29892650 and dashboard_run_id = 2840083 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`=29892650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947711, 0.03527696537591814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29892650_02-01-2026_14_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29892689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29892690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29892691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29892692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29892693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29892694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29892695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29892696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29892697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29892698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29892699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29892700, '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 = 29893171 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': 4303493, 'mtr_portfolio_id': 29893171, 'created_at': datetime.datetime(2026, 1, 2, 15, 3), 'result': '0.045061703716999746', 'result_long': None, 'result_double': None}] Qualite : 0.045061703716999746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29893171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29893171_02-01-2026_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29893171 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_P29893171_02-01-2026_15_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893183, 'pht': 3726}}" where mtr_portfolio_id = 29893171 and dashboard_run_id = 2840087 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`=29893171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947712, 0.045061703716999746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29893171_02-01-2026_15_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893183, '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 = 29893776 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': 4303574, 'mtr_portfolio_id': 29893776, 'created_at': datetime.datetime(2026, 1, 2, 15, 18, 58), 'result': '0.07794110649306499', 'result_long': None, 'result_double': None}] Qualite : 0.07794110649306499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29893776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29893776_02-01-2026_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29893776 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_P29893776_02-01-2026_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893828, 'pht': 3726}}" where mtr_portfolio_id = 29893776 and dashboard_run_id = 2840087 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`=29893776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947713, 0.07794110649306499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29893776_02-01-2026_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29893817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29893818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29893819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29893820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29893821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29893822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29893823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29893824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29893825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29893826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29893827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29893828, '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 = 29894441 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': 4303647, 'mtr_portfolio_id': 29894441, 'created_at': datetime.datetime(2026, 1, 2, 15, 31, 2), 'result': '0.07457480738462076', 'result_long': None, 'result_double': None}] Qualite : 0.07457480738462076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29894441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29894441_02-01-2026_15_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29894441 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_P29894441_02-01-2026_15_31_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29894449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29894450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29894451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29894452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29894453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29894454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29894455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29894456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29894457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29894458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29894459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29894460, 'pht': 3726}}" where mtr_portfolio_id = 29894441 and dashboard_run_id = 2840087 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`=29894441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18947714, 0.07457480738462076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29894441_02-01-2026_15_31_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29894449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29894450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29894451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29894452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29894453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29894454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29894455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29894456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29894457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29894458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29894459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29894460, '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 (29875698,29875852,29876194,29876652,29876801,29877372,29878166,29879046,29879603,29880964,29882264,29882750,29883285,29883844,29885052,29885399,29886087,29886560,29887236,29887673,29888232,29888770,29889878,29890060,29890504,29890924,29891424,29892105,29892650,29893171,29893776,29894441) result : ((1402107997,), (1402108121,), (1402108122,), (1402108136,), (1402108137,), (1402108139,), (1402108157,), (1402108158,), (1402108174,), (1402108176,), (1402108178,), (1402108195,), (1402108197,), (1402108198,), (1402108199,), (1402108223,), (1402108221,), (1402108243,), (1402108244,), (1402108245,), (1402108246,), (1402108250,), (1402108280,), (1402108282,), (1402108284,), (1402108309,), (1402108310,), (1402108311,), (1402108312,), (1402108316,), (1402108342,), (1402108344,), (1402108346,), (1402108349,), (1402108352,), (1402108355,), (1402108362,), (1402108363,), (1402108364,), (1402108369,), (1402108371,), (1402108372,), (1402108396,), (1402108397,), (1402108398,), (1402108399,), (1402108417,), (1402108419,), (1402108440,), (1402108441,), (1402108442,), (1402108464,), (1402108466,), (1402108489,), (1402108491,), (1402108493,), (1402108495,), (1402108499,), (1402108515,), (1402108517,), (1402108518,), (1402108519,), (1402108546,), (1402108547,), (1402108549,), (1402108552,), (1402108555,), (1402108568,), (1402108570,), (1402108572,), (1402108601,), (1402108603,), (1402108628,), (1402108625,), (1402108626,), (1402108646,), (1402108648,), (1402108665,), (1402108666,), (1402108690,), (1402108691,), (1402108693,), (1402108717,), (1402108718,), (1402108719,), (1402108744,), (1402108746,), (1402108769,), (1402108771,), (1402108774,), (1402108794,), (1402108798,), (1402108801,), (1402108805,), (1402108809,), (1402108819,), (1402108821,), (1402108823,), (1402108846,), (1402108847,), (1402108848,), (1402108849,), (1402108851,), (1402108853,), (1402108872,), (1402108874,), (1402108876,), (1402108897,), (1402108899,), (1402108900,), (1402108902,), (1402108924,), (1402109147,), (1402109145,), (1402109179,), (1402109180,), (1402109198,), (1402109199,), (1402109200,), (1402109221,), (1402109223,), (1402109224,), (1402109237,), (1402109239,), (1402109242,), (1402109245,), (1402109261,), (1402109264,), (1402109268,), (1402109273,), (1402109277,), (1402109308,), (1402109344,), (1402109388,), (1402110195,), (1402110146,), (1402110174,), (1402110184,), (1402110362,), (1402110363,), (1402110364,), (1402110365,), (1402110367,), (1402110382,), (1402110384,), (1402110387,), (1402110391,), (1402110408,), (1402110410,), (1402110412,), (1402110415,), (1402110438,), (1402110441,), (1402110442,), (1402110444,), (1402110616,), (1402110632,), (1402110636,), (1402110638,), (1402110642,), (1402110655,), (1402110657,), (1402110678,), (1402110679,), (1402110680,), (1402110682,), (1402110697,), (1402110699,), (1402110711,), (1402110830,), (1402110835,), (1402110846,), (1402110854,), (1402110883,), (1402110887,), (1402110889,), (1402110902,), (1402110950,), (1402110954,), (1402110977,), (1402110978,), (1402110980,), (1402110982,), (1402110985,), (1402110988,), (1402111007,), (1402111009,), (1402111012,), (1402111015,), (1402111035,), (1402111037,), (1402111039,), (1402111041,), (1402111043,), (1402111079,), (1402111074,), (1402111075,), (1402111077,), (1402111095,), (1402111097,), (1402111104,), (1402111131,), (1402111142,), (1402111174,), (1402111211,), (1402111246,), (1402111324,), (1402111325,), (1402111326,), (1402111328,), (1402111332,), (1402111448,), (1402111463,), (1402111466,), (1402111526,), (1402111568,), (1402111601,), (1402111671,), (1402111677,), (1402111712,), (1402111736,), (1402111737,), (1402111741,), (1402111773,), (1402111775,), (1402111777,), (1402111779,), (1402111783,), (1402111858,), (1402111890,), (1402111901,), (1402111915,), (1402112101,), (1402112143,), (1402112173,), (1402112206,), (1402112304,), (1402112305,), (1402112306,), (1402112323,), (1402112325,), (1402112327,), (1402112329,), (1402112353,), (1402112354,), (1402112356,), (1402112368,), (1402112734,), (1402112736,), (1402112737,), (1402112759,), (1402112790,), (1402113028,), (1402113069,), (1402113083,), (1402113084,), (1402113146,), (1402113153,), (1402113165,), (1402113223,), (1402113213,), (1402113214,), (1402113216,), (1402113219,), (1402113433,), (1402113512,), (1402113520,), (1402113560,), (1402113576,), (1402113658,), (1402113659,), (1402113661,), (1402113684,), (1402113712,), (1402113714,), (1402113717,), (1402113736,), (1402113745,), (1402113967,), (1402113969,), (1402113971,), (1402114131,), (1402114174,), (1402114175,), (1402114216,), (1402114302,), (1402114303,), (1402114305,), (1402114307,), (1402114617,), (1402114644,), (1402114648,), (1402114652,), (1402114687,), (1402114712,), (1402114741,), (1402114743,), (1402114761,), (1402114846,), (1402114848,), (1402114850,), (1402114853,), (1402114867,), (1402114869,), (1402114877,), (1402115241,), (1402115256,), (1402115288,), (1402115306,), (1402115325,), (1402115326,), (1402115328,), (1402115331,), (1402115445,), (1402115447,), (1402115471,), (1402115499,), (1402115500,), (1402115503,), (1402115504,), (1402115508,), (1402115545,), (1402115532,), (1402115534,), (1402115537,), (1402115539,), (1402115542,), (1402115734,), (1402115735,), (1402115767,), (1402116105,), (1402116106,), (1402116108,), (1402116110,), (1402116138,), (1402116139,), (1402116141,), (1402116142,), (1402116162,), (1402116164,), (1402116167,), (1402116186,), (1402116340,), (1402116356,), (1402116357,), (1402116360,), (1402116398,), (1402116400,), (1402116424,), (1402116425,), (1402116426,), (1402116428,), (1402116443,), (1402116445,), (1402116447,), (1402116475,), (1402116476,), (1402116478,), (1402116480,), (1402116612,), (1402116615,), (1402116618,), (1402116642,), (1402116647,), (1402116651,), (1402116635,), (1402116637,), (1402116639,), (1402116679,), (1402116701,), (1402116732,), (1402117153,), (1402117191,), (1402117249,), (1402117315,), (1402117374,), (1402117436,), (1402117879,), (1402117880,), (1402117882,), (1402118318,), (1402118426,), (1402118428,), (1402118429,), (1402118448,), (1402118450,), (1402118479,), (1402118501,), (1402118502,), (1402118504,), (1402118570,), (1402118572,), (1402118592,), (1402118593,), (1402118619,), (1402118625,), (1402118628,), (1402118642,), (1402118644,), (1402118645,), (1402118864,), (1402120314,), (1402120321,), (1402120689,), (1402120721,), (1402120797,), (1402120799,), (1402120821,), (1402121078,), (1402121080,), (1402121298,), (1402121312,), (1402121317,), (1402121329,), (1402121343,), (1402121469,), (1402121471,), (1402121544,), (1402121741,), (1402121742,), (1402121800,), (1402121809,), (1402126312,), (1402126560,), (1402126566,), (1402126568,), (1402126571,), (1402126674,), (1402126688,), (1402126745,), (1402126765,), (1402126771,), (1402126788,), (1402127066,), (1402127092,), (1402127093,), (1402127157,), (1402127162,), (1402127164,), (1402127167,), (1402127170,), (1402127172,), (1402127183,), (1402127184,), (1402127185,), (1402127213,), (1402127216,), (1402127218,), (1402127220,), (1402127223,), (1402127263,), (1402127264,), (1402127265,), (1402127701,), (1402127733,), (1402127766,), (1402127799,), (1402128190,), (1402128224,), (1402128230,), (1402128232,), (1402128408,), (1402128447,), (1402128481,), (1402128505,), (1402128752,), (1402128786,), (1402128829,), (1402128853,), (1402129170,), (1402129134,), (1402129324,), (1402129357,), (1402129408,), (1402129409,), (1402129411,), (1402129414,), (1402129438,), (1402129439,), (1402129441,), (1402129444,), (1402129728,), (1402129758,), (1402129795,), (1402129798,), (1402129801,), (1402129804,), (1402129814,), (1402129815,), (1402129817,), (1402129852,), (1402129853,), (1402129855,), (1402129870,), (1402129871,), (1402129890,), (1402129892,), (1402129894,), (1402129918,), (1402129920,), (1402129923,), (1402129942,), (1402129965,), (1402129967,), (1402129969,), (1402129972,), (1402129975,), (1402130059,), (1402130069,), (1402130079,), (1402130117,), (1402130119,), (1402130120,), (1402130122,), (1402130125,), (1402130890,), (1402130958,), (1402131023,), (1402131069,), (1402131160,), (1402131294,), (1402131356,), (1402131361,), (1402131383,), (1402131679,), (1402131651,), (1402131673,), (1402131676,), (1402131805,), (1402131810,), (1402131812,), (1402131851,), (1402131995,), (1402131996,), (1402131998,), (1402132025,), (1402132026,), (1402132027,), (1402132030,), (1402132061,), (1402132062,), (1402132064,), (1402132067,), (1402132096,), (1402132098,), (1402132100,), (1402132103,), (1402132107,), (1402132138,), (1402132139,), (1402132141,), (1402132262,), (1402132273,), (1402132275,), (1402132278,), (1402132295,), (1402132296,), (1402132297,), (1402132396,), (1402132436,), (1402132470,), (1402132502,), (1402132657,), (1402132697,), (1402132698,), (1402132701,), (1402132714,), (1402132716,), (1402132720,), (1402132770,), (1402132771,), (1402132794,), (1402132795,), (1402132797,), (1402132799,), (1402132802,), (1402132805,), (1402132954,), (1402132987,), (1402133014,), (1402133017,), (1402133063,), (1402133057,), (1402133058,), (1402133059,), (1402133060,), (1402133198,), (1402133200,), (1402133202,), (1402133205,), (1402133223,), (1402133225,), (1402133227,), (1402133229,), (1402133232,), (1402133391,), (1402133398,), (1402133399,), (1402133400,), (1402133403,), (1402133429,), (1402133547,), (1402133550,), (1402133552,), (1402133555,), (1402133558,), (1402133560,), (1402133566,), (1402133568,), (1402133570,), (1402133572,), (1402133574,), (1402133577,), (1402133578,), (1402133581,), (1402133584,), (1402133590,), (1402133593,), (1402133610,), (1402133612,), (1402133614,), (1402133617,), (1402133669,), (1402133670,), (1402133679,), (1402133681,), (1402133684,), (1402133686,), (1402133737,), (1402133739,), (1402133742,), (1402133745,), (1402133798,), (1402133799,), (1402133800,), (1402133802,), (1402133805,), (1402133807,), (1402133828,), (1402133830,), (1402133832,), (1402133835,), (1402133838,), (1402133855,), (1402133856,), (1402133857,), (1402133858,), (1402133862,), (1402133864,), (1402133910,), (1402133912,), (1402133914,), (1402133917,), (1402133921,), (1402133935,), (1402133971,), (1402133973,), (1402134017,), (1402134899,), (1402134929,), (1402134931,), (1402134933,), (1402134935,), (1402134938,), (1402134962,), (1402135006,), (1402135008,), (1402135010,), (1402135044,), (1402135045,), (1402135046,), (1402135048,), (1402135150,), (1402135152,), (1402135154,), (1402135157,), (1402135201,), (1402135202,), (1402135204,), (1402135211,), (1402135292,), (1402135295,), (1402135297,), (1402135316,), (1402135318,), (1402135320,), (1402135323,), (1402135397,), (1402135427,), (1402135458,), (1402136052,), (1402136087,), (1402136124,), (1402136158,), (1402136160,), (1402136163,), (1402136367,), (1402136359,), (1402136362,), (1402136365,), (1402136383,), (1402136386,), (1402136388,), (1402136390,), (1402136393,), (1402136407,), (1402136408,), (1402136409,), (1402136410,), (1402136412,), (1402137035,), (1402137045,), (1402137089,), (1402137175,), (1402137422,), (1402137453,), (1402137487,), (1402137520,), (1402137554,), (1402137930,), (1402137963,), (1402137995,), (1402138028,), (1402138221,), (1402138257,), (1402138294,), (1402138612,), (1402138618,), (1402138626,), (1402138641,), (1402138706,), (1402138708,), (1402138758,), (1402138759,), (1402138760,), (1402138761,), (1402138763,), (1402138765,), (1402138819,), (1402138826,), (1402138828,), (1402138919,), (1402138962,), (1402139009,), (1402139270,), (1402139272,), (1402139273,), (1402139373,), (1402139374,), (1402139480,), (1402139501,), (1402139503,), (1402139545,), (1402139546,), (1402139547,), (1402139549,), (1402139552,), (1402139567,), (1402139572,), (1402139576,), (1402139580,), (1402139583,), (1402140125,), (1402140128,), (1402140130,), (1402140177,), (1402140179,), (1402140183,), (1402140186,), (1402140427,), (1402140430,), (1402140586,), (1402140587,), (1402140588,), (1402140589,), (1402140620,), (1402140622,), (1402140624,), (1402140627,), (1402140682,), (1402140654,), (1402140656,), (1402140709,), (1402140711,), (1402140712,), (1402140715,), (1402140727,), (1402140729,), (1402140732,), (1402140735,), (1402140739,), (1402140760,), (1402140763,), (1402140766,), (1402140767,), (1402140771,), (1402140802,), (1402140804,), (1402140806,), (1402140935,), (1402140988,), (1402140989,), (1402141011,), (1402141012,), (1402141059,), (1402141068,), (1402141075,), (1402141090,), (1402141212,), (1402141244,), (1402141276,), (1402141310,), (1402141344,), (1402141345,), (1402141346,), (1402141461,), (1402141498,), (1402141511,), (1402141525,), (1402141526,), (1402141528,), (1402141530,), (1402141533,), (1402141536,), (1402141593,), (1402141600,), (1402141602,), (1402141611,), (1402141804,), (1402141810,), (1402141812,), (1402141827,), (1402142064,), (1402142062,), (1402142572,), (1402142575,), (1402142578,), (1402142605,), (1402142667,), (1402142677,), (1402142684,), (1402142686,), (1402142807,), (1402142808,), (1402142830,), (1402142835,), (1402142838,), (1402142841,), (1402142865,), (1402143187,), (1402143189,), (1402143192,), (1402143210,), (1402143212,), (1402143236,), (1402143237,), (1402143238,), (1402143240,), (1402143256,), (1402143258,), (1402143260,), (1402143263,), (1402143311,), (1402143312,), (1402143314,), (1402143318,), (1402143324,), (1402143360,), (1402143364,), (1402143367,), (1402143378,), (1402143379,), (1402143558,), (1402143420,), (1402143527,), (1402143964,), (1402144364,), (1402144373,), (1402144395,), (1402144420,), (1402144568,), (1402144603,), (1402144623,), (1402144652,), (1402145039,), (1402145072,), (1402145103,), (1402145415,), (1402145430,), (1402145440,), (1402145442,), (1402145934,), (1402145971,), (1402146196,), (1402146207,), (1402146227,), (1402146238,), (1402146259,), (1402146260,), (1402146261,), (1402146262,), (1402146313,), (1402146471,), (1402146478,), (1402146805,), (1402146807,), (1402146809,), (1402146904,), (1402147135,), (1402147133,), (1402147134,), (1402147151,), (1402147152,), (1402147154,), (1402147157,), (1402147161,), (1402147174,), (1402147175,), (1402147176,), (1402147179,), (1402147183,), (1402147201,), (1402147203,), (1402147207,), (1402147212,), (1402147230,), (1402147232,), (1402147235,), (1402147240,), (1402147252,), (1402147254,), (1402147256,), (1402147290,), (1402147292,), (1402147293,), (1402147295,), (1402147299,), (1402147350,), (1402147351,), (1402147352,), (1402147353,), (1402147355,), (1402147389,), (1402147391,), (1402147393,), (1402147396,), (1402147423,), (1402147424,), (1402147440,), (1402147441,), (1402147442,), (1402147468,), (1402147469,), (1402147471,), (1402147473,), (1402147502,), (1402147504,), (1402147517,), (1402147519,), (1402147521,), (1402147615,), (1402147617,), (1402147619,), (1402147662,), (1402147650,), (1402147652,), (1402147655,), (1402147659,), (1402147676,), (1402147677,), (1402147686,), (1402147689,), (1402147704,), (1402147705,), (1402147707,), (1402147710,), (1402147714,), (1402147717,), (1402147766,), (1402147767,), (1402147769,), (1402147771,), (1402147814,), (1402147816,), (1402147818,), (1402147904,), (1402147906,), (1402147907,), (1402147909,), (1402147913,), (1402147938,), (1402147940,), (1402147942,), (1402147945,), (1402147949,), (1402147982,), (1402148007,), (1402148026,), (1402148028,), (1402148030,), (1402148033,), (1402148037,), (1402148059,), (1402151757,), (1402151756,), (1402151801,), (1402151917,), (1402152032,), (1402152050,), (1402152051,), (1402152053,), (1402152056,), (1402152074,), (1402152075,), (1402152076,), (1402152078,), (1402152105,), (1402152148,), (1402152141,), (1402152143,), (1402152145,), (1402152177,), (1402152178,), (1402152180,), (1402152182,), (1402152191,), (1402152224,), (1402152273,), (1402152274,), (1402152276,), (1402152278,), (1402152281,), (1402152294,), (1402152296,), (1402152298,), (1402152301,), (1402152304,), (1402152329,), (1402152330,), (1402152331,), (1402152334,), (1402152342,), (1402152374,), (1402152500,), (1402152662,), (1402152668,), (1402152672,), (1402152680,), (1402152684,), (1402152693,), (1402152742,), (1402152744,), (1402152747,), (1402152749,), (1402152760,), (1402152762,), (1402152789,), (1402152819,), (1402152851,), (1402152967,), (1402153034,), (1402153037,), (1402153066,), (1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,), (1402153672,), (1402153674,), (1402153675,), (1402153676,), (1402153678,), (1402153679,), (1402153692,), (1402153693,), (1402153695,), (1402153697,), (1402153700,), (1402153727,), (1402153729,), (1402153732,), (1402153735,), (1402153738,), (1402153740,), (1402153743,), (1402153744,), (1402153745,), (1402153749,), (1402153751,), (1402153754,), (1402153773,), (1402153784,), (1402153785,), (1402153787,), (1402153800,), (1402153801,), (1402153803,), (1402153805,), (1402153808,), (1402153827,), (1402153829,), (1402153831,), (1402153834,), (1402153837,), (1402153839,), (1402153852,), (1402153853,), (1402153896,), (1402153874,), (1402153876,), (1402153878,), (1402153888,), (1402153909,), (1402153910,), (1402153912,), (1402153913,), (1402153916,), (1402153951,), (1402153953,), (1402153972,), (1402153973,), (1402153974,), (1402153977,), (1402153980,), (1402154013,), (1402154017,), (1402154019,), (1402154021,), (1402154037,), (1402154038,), (1402154039,), (1402154040,), (1402154042,), (1402154074,), (1402154076,), (1402154078,), (1402154079,), (1402154081,), (1402154093,), (1402154094,), (1402154096,), (1402154099,), (1402154102,), (1402154117,), (1402154119,), (1402154141,), (1402154142,), (1402154144,), (1402154146,), (1402154169,), (1402154171,), (1402154173,), (1402154219,), (1402154243,), (1402154247,), (1402154256,), (1402154260,), (1402154263,), (1402154264,), (1402154293,), (1402155515,), (1402155402,), (1402156136,), (1402156138,), (1402156162,), (1402156443,), (1402156453,), (1402156464,), (1402156466,), (1402156469,), (1402156471,), (1402156491,), (1402156507,), (1402156867,), (1402156869,), (1402156939,), (1402156950,), (1402157072,), (1402157073,), (1402157075,), (1402157131,), (1402157162,), (1402157166,), (1402157168,), (1402157232,), (1402157233,), (1402157235,), (1402157569,), (1402157571,), (1402157573,), (1402157575,), (1402157578,), (1402157710,), (1402157711,), (1402157734,), (1402157786,), (1402157788,), (1402157798,), (1402157918,), (1402158313,), (1402158331,), (1402158348,), (1402158351,), (1402158473,), (1402158493,), (1402158495,), (1402158620,), (1402158621,), (1402158622,), (1402158625,), (1402158642,), (1402158643,), (1402158645,), (1402158648,), (1402158652,), (1402158663,), (1402158665,), (1402158667,), (1402158670,), (1402158674,), (1402158678,), (1402158686,), (1402158688,), (1402158691,), (1402158703,), (1402158704,), (1402158705,), (1402158707,), (1402158725,), (1402158726,), (1402158728,), (1402158731,), (1402158745,), (1402158748,), (1402158750,), (1402158754,), (1402158757,), (1402158759,), (1402158782,), (1402158786,), (1402158788,), (1402158827,), (1402158818,), (1402158824,), (1402158825,), (1402158848,), (1402158850,), (1402158866,), (1402158867,), (1402158868,), (1402158870,), (1402158888,), (1402158890,), (1402158892,), (1402158954,), (1402158963,), (1402158964,), (1402159028,), (1402159029,), (1402159030,), (1402159032,), (1402159047,), (1402159048,), (1402159050,), (1402159076,), (1402159077,), (1402159079,), (1402159081,), (1402159084,), (1402159086,), (1402159199,), (1402159226,), (1402159259,), (1402159293,), (1402159325,), (1402159328,), (1402159357,), (1402159362,), (1402159364,), (1402159366,), (1402159368,), (1402159370,), (1402159373,), (1402159377,), (1402159408,), (1402159410,), (1402159607,), (1402159629,), (1402159631,), (1402159657,), (1402159658,), (1402159679,), (1402159681,), (1402159709,), (1402159703,), (1402159705,), (1402159795,), (1402159796,), (1402159798,), (1402159811,), (1402159892,), (1402159898,), (1402159901,), (1402159907,), (1402160025,), (1402160045,), (1402160055,), (1402160076,), (1402160107,), (1402160110,), (1402160113,), (1402160115,), (1402160117,), (1402160119,), (1402160296,), (1402160300,), (1402160306,), (1402160329,), (1402160350,), (1402160354,), (1402160358,), (1402160644,), (1402160678,), (1402160716,), (1402160826,), (1402160827,), (1402160833,), (1402160836,), (1402160839,), (1402160907,), (1402160909,), (1402160912,), (1402160914,), (1402160918,), (1402160920,), (1402160949,), (1402160951,), (1402160952,), (1402160954,), (1402160972,), (1402160974,), (1402160976,), (1402160995,), (1402160997,), (1402161001,), (1402161010,), (1402161014,), (1402161017,), (1402161149,), (1402161159,), (1402161161,), (1402161163,), (1402161168,), (1402161726,), (1402161730,), (1402161734,), (1402161738,), (1402161860,), (1402161861,), (1402161866,), (1402161867,), (1402161868,), (1402161869,), (1402161882,), (1402161885,), (1402162132,), (1402161958,), (1402161986,), (1402162027,), (1402162064,), (1402162099,), (1402162444,), (1402162488,), (1402162520,), (1402162553,), (1402162612,), (1402162766,), (1402162795,), (1402162818,), (1402163408,), (1402163478,), (1402163480,), (1402163483,), (1402163487,), (1402163489,), (1402163715,), (1402163716,), (1402163717,), (1402163719,), (1402163723,), (1402163726,), (1402163751,), (1402163753,), (1402163755,), (1402163758,), (1402163762,), (1402163786,), (1402163788,), (1402163791,), (1402163796,), (1402163801,), (1402163804,), (1402163841,), (1402163845,), (1402163849,), (1402163853,), (1402163924,), (1402163977,), (1402163978,), (1402163980,), (1402163982,), (1402163985,), (1402164022,), (1402164024,), (1402164026,), (1402164057,), (1402164066,), (1402164077,), (1402164078,), (1402164081,), (1402164096,), (1402164099,), (1402164103,), (1402164155,), (1402164144,), (1402164145,), (1402164147,), (1402164149,), (1402164152,), (1402164172,), (1402164174,), (1402164178,), (1402164181,), (1402164191,), (1402164243,), (1402164245,), (1402164248,), (1402164250,), (1402164254,), (1402164288,), (1402164289,), (1402164290,), (1402164292,), (1402164317,), (1402164319,), (1402164321,), (1402164323,), (1402164358,), (1402164359,), (1402164360,), (1402164372,), (1402164409,), (1402164515,), (1402164521,), (1402164522,), (1402164524,), (1402164526,), (1402164550,), (1402164553,), (1402164575,), (1402164576,), (1402164579,), (1402164581,), (1402164621,), (1402164622,), (1402164623,), (1402164628,), (1402164690,), (1402164692,), (1402164695,), (1402164697,), (1402164712,), (1402164714,), (1402164715,), (1402164758,), (1402164759,), (1402164761,), (1402164762,), (1402164765,), (1402164767,), (1402164783,), (1402164785,), (1402164787,), (1402164789,), (1402164792,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02012026': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29894441]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] map_info['map_portfolio_photo'] : {29894441: [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758, 1402164715, 1402164714, 1402164712, 1402164697, 1402164695, 1402164692, 1402164690, 1402164628, 1402164623, 1402164622, 1402164621, 1402164581, 1402164579, 1402164576, 1402164575, 1402164553, 1402164550, 1402164526, 1402164524, 1402164522, 1402164521, 1402164515, 1402164409, 1402164372, 1402164360, 1402164359, 1402164358, 1402164323, 1402164321, 1402164319, 1402164317, 1402164292, 1402164290, 1402164289, 1402164288, 1402164254, 1402164250, 1402164248, 1402164245, 1402164243, 1402164191, 1402164181, 1402164178, 1402164174, 1402164172, 1402164152, 1402164149, 1402164147, 1402164145, 1402164144]} final : True mtd_id 4302 list_pids : [1402164792, 1402164789, 1402164787, 1402164785, 1402164783, 1402164767, 1402164765, 1402164762, 1402164761, 1402164759, 1402164758] Looping around the photos to save general results len do output : 1 /29894441Didn'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, '4303647') ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647') ('4302', None, None, None, None, None, None, None, '4303647') ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29894441', 'None', None, None, None, None, '4303647'), ('4302', '29894441', '1402164792', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164789', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164787', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164785', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164783', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164767', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164765', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164762', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164761', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164759', None, None, None, None, None, '4303647'), ('4302', '29894441', '1402164758', None, None, None, None, None, '4303647')] time used for this insertion : 0.015488147735595703 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4870989322662354 time spend to save output : 0.01570916175842285 total time spend for step 5 : 2.502808094024658 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 (4303647) 2.38user 2.43system 0:17.45elapsed 27%CPU (0avgtext+0avgdata 166648maxresident)k 80inputs+19280outputs (1major+71907minor)pagefaults 0swaps