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 : 1768431 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 (4318942) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4318942) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996868 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4318942'] with mtr_portfolio_ids : ['29996868'] and first list_photo_ids : [] new path : /proc/1768431/ Name: python3 Umask: 0002 State: R (running) Tgid: 1768431 Ngid: 0 Pid: 1768431 PPid: 1768430 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1768431 NSpid: 1768431 NSpgid: 1767290 NSsid: 1767290 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104964 kB VmRSS: 104964 kB RssAnon: 66304 kB RssFile: 38660 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 608 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: 47 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1768431', 'Ngid': '0', 'Pid': '1768431', 'PPid': '1768430', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1768431', 'NSpid': '1768431', 'NSpgid': '1767290', 'NSsid': '1767290', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104964 kB', 'VmRSS': '104964 kB', 'RssAnon': '66304 kB', 'RssFile': '38660 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '608 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': '47', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '1768431', '1113364', '0', '1113364', '872092', '104964', b'', 'marlene', '4318942') 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 (29996868) 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 (4318942 ) ) 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 (29996868) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402718251, 'portfolio_id': 29996868}, {'photo_id': 1402718248, 'portfolio_id': 29996868}, {'photo_id': 1402718232, 'portfolio_id': 29996868}, {'photo_id': 1402718194, 'portfolio_id': 29996868}, {'photo_id': 1402717866, 'portfolio_id': 29996868}, {'photo_id': 1402717834, 'portfolio_id': 29996868}, {'photo_id': 1402717802, 'portfolio_id': 29996868}, {'photo_id': 1402717766, 'portfolio_id': 29996868}, {'photo_id': 1402717632, 'portfolio_id': 29996868}, {'photo_id': 1402717630, 'portfolio_id': 29996868}, {'photo_id': 1402717200, 'portfolio_id': 29996868}, {'photo_id': 1402716793, 'portfolio_id': 29996868}, {'photo_id': 1402716791, 'portfolio_id': 29996868}, {'photo_id': 1402716788, 'portfolio_id': 29996868}, {'photo_id': 1402716701, 'portfolio_id': 29996868}, {'photo_id': 1402716165, 'portfolio_id': 29996868}, {'photo_id': 1402716132, 'portfolio_id': 29996868}, {'photo_id': 1402716099, 'portfolio_id': 29996868}, {'photo_id': 1402716077, 'portfolio_id': 29996868}, {'photo_id': 1402716075, 'portfolio_id': 29996868}, {'photo_id': 1402716073, 'portfolio_id': 29996868}, {'photo_id': 1402716011, 'portfolio_id': 29996868}, {'photo_id': 1402715969, 'portfolio_id': 29996868}, {'photo_id': 1402715921, 'portfolio_id': 29996868}, {'photo_id': 1402715918, 'portfolio_id': 29996868}, {'photo_id': 1402715916, 'portfolio_id': 29996868}, {'photo_id': 1402715914, 'portfolio_id': 29996868}, {'photo_id': 1402715242, 'portfolio_id': 29996868}, {'photo_id': 1402715130, 'portfolio_id': 29996868}, {'photo_id': 1402714683, 'portfolio_id': 29996868}, {'photo_id': 1402714646, 'portfolio_id': 29996868}, {'photo_id': 1402714611, 'portfolio_id': 29996868}, {'photo_id': 1402714579, 'portfolio_id': 29996868}, {'photo_id': 1402714228, 'portfolio_id': 29996868}, {'photo_id': 1402714181, 'portfolio_id': 29996868}, {'photo_id': 1402714120, 'portfolio_id': 29996868}, {'photo_id': 1402714085, 'portfolio_id': 29996868}, {'photo_id': 1402714040, 'portfolio_id': 29996868}, {'photo_id': 1402713791, 'portfolio_id': 29996868}, {'photo_id': 1402713762, 'portfolio_id': 29996868}, {'photo_id': 1402713759, 'portfolio_id': 29996868}, {'photo_id': 1402713756, 'portfolio_id': 29996868}, {'photo_id': 1402713753, 'portfolio_id': 29996868}, {'photo_id': 1402713751, 'portfolio_id': 29996868}, {'photo_id': 1402713466, 'portfolio_id': 29996868}, {'photo_id': 1402713435, 'portfolio_id': 29996868}, {'photo_id': 1402713400, 'portfolio_id': 29996868}, {'photo_id': 1402712979, 'portfolio_id': 29996868}, {'photo_id': 1402712921, 'portfolio_id': 29996868}, {'photo_id': 1402712875, 'portfolio_id': 29996868}, {'photo_id': 1402712841, 'portfolio_id': 29996868}] map_portfolio_id_photo_id: {29996868: [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766, 1402717632, 1402717630, 1402717200, 1402716793, 1402716791, 1402716788, 1402716701, 1402716165, 1402716132, 1402716099, 1402716077, 1402716075, 1402716073, 1402716011, 1402715969, 1402715921, 1402715918, 1402715916, 1402715914, 1402715242, 1402715130, 1402714683, 1402714646, 1402714611, 1402714579, 1402714228, 1402714181, 1402714120, 1402714085, 1402714040, 1402713791, 1402713762, 1402713759, 1402713756, 1402713753, 1402713751, 1402713466, 1402713435, 1402713400, 1402712979, 1402712921, 1402712875, 1402712841]} ##### 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.020448684692382812 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jan 6 23:14:59 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29996868) 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 : 29996868 get user id for portfolio 29996868 get sub ptf for main ptf 29996868, type 3726 and hashtags ['environnement', 'metal', 'kraft', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'autre_refus', 'plastique', 'flou', 'papier', 'Teint_Dans_La_Masse', '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`=29996868 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','kraft','Carton_brun','mal_croppe','Carton_gris','autre_refus','plastique','flou','papier','Teint_Dans_La_Masse','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`=29996868 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','kraft','Carton_brun','mal_croppe','Carton_gris','autre_refus','plastique','flou','papier','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29996868, 'sub_port_id': 29996922, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528425, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'Carton_brun': {'main_port_id': 29996868, 'sub_port_id': 29996923, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528426, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'Carton_gris': {'main_port_id': 29996868, 'sub_port_id': 29996924, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528427, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'cartonnette': {'main_port_id': 29996868, 'sub_port_id': 29996925, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528428, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'plastique': {'main_port_id': 29996868, 'sub_port_id': 29996926, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528429, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29996868, 'sub_port_id': 29996927, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528430, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'kraft': {'main_port_id': 29996868, 'sub_port_id': 29996928, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528431, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'papier': {'main_port_id': 29996868, 'sub_port_id': 29996929, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528432, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'mal_croppe': {'main_port_id': 29996868, 'sub_port_id': 29996930, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528433, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'environnement': {'main_port_id': 29996868, 'sub_port_id': 29996931, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528434, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'autre_refus': {'main_port_id': 29996868, 'sub_port_id': 29996932, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528435, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}, 'metal': {'main_port_id': 29996868, 'sub_port_id': 29996933, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528436, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996922 , 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=29996868 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 (29996922) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996923 , 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=29996868 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 (29996923) result : ((1402716702,), (1402716703,), (1402716969,), (1402717602,), (1402717604,), (1402717619,), (1402717620,), (1402717621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996924 , 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=29996868 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 (29996924) result : ((1402716698,), (1402717433,), (1402717599,), (1402717600,), (1402717617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996925 , 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=29996868 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 (29996925) result : ((1402716071,), (1402716699,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996926 , 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=29996868 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 (29996926) result : ((1402717605,), (1402717606,), (1402717607,), (1402717608,), (1402717623,), (1402717624,), (1402717625,), (1402717626,), (1402717627,), (1402717628,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996927 , 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=29996868 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 (29996927) result : ((1402716070,), (1402716692,), (1402716693,), (1402716694,), (1402716922,), (1402717424,), (1402717592,), (1402717609,), (1402717610,), (1402717611,), (1402717612,), (1402717613,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996928 , 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=29996868 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 (29996928) result : ((1402716704,), (1402716982,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996929 , 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=29996868 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 (29996929) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996930 , 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=29996868 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 (29996930) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996931 , 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=29996868 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 (29996931) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996932 , 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=29996868 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 (29996932) result : ((1402716695,), (1402716696,), (1402716697,), (1402716940,), (1402717594,), (1402717595,), (1402717596,), (1402717597,), (1402717598,), (1402717614,), (1402717615,), (1402717616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29996933 , 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=29996868 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 (29996933) result : ((1402717631,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29996868) result : ((1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) 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 (1402717200,1402713400) and cspi.crop_hashtag_id = chi.id; 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`=29996868 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','kraft','Carton_brun','mal_croppe','Carton_gris','autre_refus','plastique','flou','papier','Teint_Dans_La_Masse','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`=29996868 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','kraft','Carton_brun','mal_croppe','Carton_gris','autre_refus','plastique','flou','papier','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29996868, 'sub_port_id': 29996934, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528437, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'Carton_brun': {'main_port_id': 29996868, 'sub_port_id': 29996935, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528438, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'Carton_gris': {'main_port_id': 29996868, 'sub_port_id': 29996936, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528439, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'cartonnette': {'main_port_id': 29996868, 'sub_port_id': 29996937, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528440, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'plastique': {'main_port_id': 29996868, 'sub_port_id': 29996938, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528441, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29996868, 'sub_port_id': 29996939, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528442, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'kraft': {'main_port_id': 29996868, 'sub_port_id': 29996940, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528443, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'papier': {'main_port_id': 29996868, 'sub_port_id': 29996941, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528444, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'mal_croppe': {'main_port_id': 29996868, 'sub_port_id': 29996942, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528445, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'environnement': {'main_port_id': 29996868, 'sub_port_id': 29996943, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528446, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'autre_refus': {'main_port_id': 29996868, 'sub_port_id': 29996944, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528447, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 3, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}, 'metal': {'main_port_id': 29996868, 'sub_port_id': 29996945, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20528448, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 12, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 3, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996922 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996923 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996924 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29996945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29996933 lien utilise dans velours : https://marlene.fotonower.com/velours/29996934,29996935,29996936,29996937,29996938,29996939,29996940,29996941,29996942,29996943,29996944,29996945?tags=flou,Carton_brun,Carton_gris,cartonnette,plastique,Teint_Dans_La_Masse,kraft,papier,mal_croppe,environnement,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29996868]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] map_info['map_portfolio_photo'] : {29996868: [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766, 1402717632, 1402717630, 1402717200, 1402716793, 1402716791, 1402716788, 1402716701, 1402716165, 1402716132, 1402716099, 1402716077, 1402716075, 1402716073, 1402716011, 1402715969, 1402715921, 1402715918, 1402715916, 1402715914, 1402715242, 1402715130, 1402714683, 1402714646, 1402714611, 1402714579, 1402714228, 1402714181, 1402714120, 1402714085, 1402714040, 1402713791, 1402713762, 1402713759, 1402713756, 1402713753, 1402713751, 1402713466, 1402713435, 1402713400, 1402712979, 1402712921, 1402712875, 1402712841]} final : False mtd_id 4302 list_pids : [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] Looping around the photos to save general results len do output : 1 /29996868. 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, '4318942') ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29996868', "{'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933}", None, None, None, None, '4318942'), ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942')] time used for this insertion : 0.015886783599853516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5160768032073975 time spend to save output : 0.01616382598876953 total time spend for step 1 : 0.532240629196167 step2:final Tue Jan 6 23:15:00 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29996868) 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 29996868 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402712979,1402712921,1402712875,1402712841,1402713466,1402713435,1402713400,1402713791,1402713762,1402713759,1402713756,1402713753,1402713751,1402714228,1402714181,1402714120,1402714085,1402714040,1402714683,1402714646,1402714611,1402714579,1402715242,1402715130,1402716011,1402715969,1402715921,1402715918,1402715916,1402715914,1402716165,1402716132,1402716099,1402716077,1402716075,1402716073,1402716793,1402716791,1402716701,1402716788,1402717200,1402717632,1402717630,1402717866,1402717834,1402717802,1402717766,1402718251,1402718248,1402718232,1402718194); 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([29996868]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} new output for save of step final : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] map_info['map_portfolio_photo'] : {29996868: [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766, 1402717632, 1402717630, 1402717200, 1402716793, 1402716791, 1402716788, 1402716701, 1402716165, 1402716132, 1402716099, 1402716077, 1402716075, 1402716073, 1402716011, 1402715969, 1402715921, 1402715918, 1402715916, 1402715914, 1402715242, 1402715130, 1402714683, 1402714646, 1402714611, 1402714579, 1402714228, 1402714181, 1402714120, 1402714085, 1402714040, 1402713791, 1402713762, 1402713759, 1402713756, 1402713753, 1402713751, 1402713466, 1402713435, 1402713400, 1402712979, 1402712921, 1402712875, 1402712841]} final : False mtd_id 4302 list_pids : [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] Looping around the photos to save general results len do output : 8 /1402718251.Didn't retrieve data . /1402718248.Didn't retrieve data . /1402718232.Didn't retrieve data . /1402718194.Didn't retrieve data . /1402717866.Didn't retrieve data . /1402717834.Didn't retrieve data . /1402717802.Didn't retrieve data . /1402717766.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, '4318942') ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '29996868', '1402718251', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402718248', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402718232', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402718194', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402717866', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402717834', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402717802', '0.07700371525609132', None, None, None, None, '4318942'), ('4302', '29996868', '1402717766', '0.07700371525609132', None, None, None, None, '4318942')] time used for this insertion : 0.015537261962890625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07687520980834961 time spend to save output : 0.015950441360473633 total time spend for step 2 : 0.09282565116882324 step3:velours_tree Tue Jan 6 23:15:00 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29996868: [{'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933}]} input_args_next_step : {29996868: ()} output_args : {29996868: [{'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933}]} args : 29996868 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29996868) 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([29996868]) 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.23766708374023438 time spend to save output : 4.792213439941406e-05 total time spend for step 3 : 0.2377150058746338 step4:send_mail_cod Tue Jan 6 23:15:00 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} input_args_next_step : {1402718251: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402718251 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402718248 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402718232 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402718194 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402717866 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402717834 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402717802 depend.output_id : 0 input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ()} output_args : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',)} args : 1402717766 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 : {29996868: [{'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933}]} input_args_next_step : {1402718251: ('0.07700371525609132',), 1402718248: ('0.07700371525609132',), 1402718232: ('0.07700371525609132',), 1402718194: ('0.07700371525609132',), 1402717866: ('0.07700371525609132',), 1402717834: ('0.07700371525609132',), 1402717802: ('0.07700371525609132',), 1402717766: ('0.07700371525609132',), 29996868: ()} output_args : {29996868: [{'flou': 29996922, 'Carton_brun': 29996923, 'Carton_gris': 29996924, 'cartonnette': 29996925, 'plastique': 29996926, 'Teint_Dans_La_Masse': 29996927, 'kraft': 29996928, 'papier': 29996929, 'mal_croppe': 29996930, 'environnement': 29996931, 'autre_refus': 29996932, 'metal': 29996933}]} args : 29996868 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 :9, first value : ('0.07700371525609132',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29996868) 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 (1402718251,1402718248,1402718232,1402718194,1402717866,1402717834,1402717802,1402717766) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402717766 begin to download photo : 1402717834 begin to download photo : 1402718194 begin to download photo : 1402718248 download finish for photo 1402718248 begin to download photo : 1402718251 download finish for photo 1402718194 begin to download photo : 1402718232 download finish for photo 1402717834 begin to download photo : 1402717866 download finish for photo 1402717766 begin to download photo : 1402717802 download finish for photo 1402718232 download finish for photo 1402718251 download finish for photo 1402717866 download finish for photo 1402717802 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette299969221767737700/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P29996868_06-01-2026_23_15_00.pdf 29996922 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=29996922 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299969221767737700 29996925 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=29996925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716071: '1767737246_1213933_1402713435_773b84f749222d57156ca729ddaf9214_rle_crop_4092164796_0.png', 1402716699: '1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2f1b20fe07817eb6841324dec4fb8ab2_1101877.png change filename to text .imagette299969251767737701/ imagette299969251767737701/1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166369_0.png.png imagette299969251767737701/1767737246_1213933_1402713435_773b84f749222d57156ca729ddaf9214_rle_crop_4092164796_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/017552aa73c23ba95a4851b5f52d243e_43490490.png imagette299969251767737701 29996926 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=29996926 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402717605: '1767737466_1225851_1402715921_d093b6ad76a99b90b2fd17a4bfc79c6d_rle_crop_4092172978_0.png', 1402717606: '1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172991_0.png', 1402717607: '1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172992_0.png', 1402717608: '1767737466_1225851_1402715914_05a3241d7d1ce9072ae9b7a8e38d1229_rle_crop_4092173154_0.png', 1402717623: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173761_0.png', 1402717624: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173759_0.png', 1402717625: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173760_0.png', 1402717626: '1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173771_0.png', 1402717627: '1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173798_0.png', 1402717628: '1767737486_1228164_1402712841_cdd41f9858b5404e7bb3afaad26ec7ba_rle_crop_4092173807_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/389ff06c40d66b238e3a97e067c98eb8_16926993.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a0ddd8654240ee8d19adf8de95600aef_25657233.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6073947c8e771f0b34e7af4af76cb935_57104185.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/4c8b662e397a60384d412a0464e885ae_25770496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6f0608908c392b9e0c634bc9113cdced_40936277.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/09fcfb0be0277d729254ae045793522d_46634053.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f40a653a00f6a2726bdfc52e14cd997d_23312169.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c04e0e96e26174c34e5e1c52af4d31c3_80578026.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ed683043173afb44a0a34f6cd0dba3bd_96340310.png change filename to text .imagette299969261767737701/ imagette299969261767737701/1767737486_1228164_1402712841_cdd41f9858b5404e7bb3afaad26ec7ba_rle_crop_4092173807_0.png.png imagette299969261767737701/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173761_0.png.png imagette299969261767737701/1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172992_0.png.png imagette299969261767737701/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173759_0.png.png imagette299969261767737701/1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173771_0.png.png imagette299969261767737701/1767737466_1225851_1402715921_d093b6ad76a99b90b2fd17a4bfc79c6d_rle_crop_4092172978_0.png.png imagette299969261767737701/1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173798_0.png.png imagette299969261767737701/1767737466_1225851_1402715914_05a3241d7d1ce9072ae9b7a8e38d1229_rle_crop_4092173154_0.png.png imagette299969261767737701/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173760_0.png.png imagette299969261767737701/1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172991_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/903cc75dcf84a33c0ca832998bf142e9_78116804.png imagette299969261767737701 29996928 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=29996928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716704: '1767737307_1216582_1402714646_635939aeca9d7e47713f2eb79b69fa96_rle_crop_4092166347_0.png', 1402716982: '1767737345_1217293_1402714683_4bc7ccadf0aafa8d3ddfd17dafff08b5_rle_crop_4092166536_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/29583c8a2726dab5178ceea6306d30c4_82621475.png change filename to text .imagette299969281767737701/ imagette299969281767737701/1767737345_1217293_1402714683_4bc7ccadf0aafa8d3ddfd17dafff08b5_rle_crop_4092166536_0.png.png imagette299969281767737701/1767737307_1216582_1402714646_635939aeca9d7e47713f2eb79b69fa96_rle_crop_4092166347_0.png.png imagette299969301767737702/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/be44bad8d672d0719fbce5d221d7f3bb_37963481.png imagette299969281767737701 29996930 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=29996930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299969301767737702 29996932 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=29996932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716695: '1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166364_0.png', 1402716696: '1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166368_0.png', 1402716697: '1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166386_0.png', 1402716940: '1767737345_1217293_1402714085_030e8dc6a2a418655b0fe533577f48c3_rle_crop_4092166582_0.png', 1402717594: '1767737466_1225851_1402715969_0dca7f251dbf8530ab7add3c72bc0fc8_rle_crop_4092172963_0.png', 1402717595: '1767737466_1225851_1402715921_d093b6ad76a99b90b2fd17a4bfc79c6d_rle_crop_4092172977_0.png', 1402717596: '1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172985_0.png', 1402717597: '1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173001_0.png', 1402717598: '1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173006_0.png', 1402717614: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173756_0.png', 1402717615: '1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173772_0.png', 1402717616: '1767737486_1228164_1402712921_04a07d541fc03746e8fabed682fd4fa1_rle_crop_4092173780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6fc861d427369ec2dc0d723d59e19e74_1250803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ea303ac78d02e16fce5afb0f3c525709_7751152.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5495cafc576bba9827d51ece7b67f675_60470278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f48b8377dba63673a583ed1c7ec52fbe_51102719.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c103b821e46f44547887c6af7d212a82_18353845.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b887b104b108f7cb5d719f9d4521bb26_20584703.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/fcf556c14971eef2776d906d5f0734f0_86382314.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d27553994b3ce6230ccfcde32f2c50de_82444750.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f141099e77e15f5b3619dfc1a1ff7932_94148857.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/bdefb6ad96cd232998a6d971dac7c2f8_20349581.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/102ef56ab23b5353a032eee5b1c36e74_90983571.png change filename to text .imagette299969321767737702/ imagette299969321767737702/1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166368_0.png.png imagette299969321767737702/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173756_0.png.png imagette299969321767737702/1767737466_1225851_1402715969_0dca7f251dbf8530ab7add3c72bc0fc8_rle_crop_4092172963_0.png.png imagette299969321767737702/1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166364_0.png.png imagette299969321767737702/1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173006_0.png.png imagette299969321767737702/1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173772_0.png.png imagette299969321767737702/1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166386_0.png.png imagette299969321767737702/1767737345_1217293_1402714085_030e8dc6a2a418655b0fe533577f48c3_rle_crop_4092166582_0.png.png imagette299969321767737702/1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172985_0.png.png imagette299969321767737702/1767737466_1225851_1402715921_d093b6ad76a99b90b2fd17a4bfc79c6d_rle_crop_4092172977_0.png.png imagette299969321767737702/1767737486_1228164_1402712921_04a07d541fc03746e8fabed682fd4fa1_rle_crop_4092173780_0.png.png imagette299969321767737702/1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173001_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9534a02b032ff3e49aba4f8cf5aaef75_30476155.png imagette299969321767737702 29996933 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=29996933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402717631: '1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173791_0.png'} change filename to text .imagette299969331767737703/ imagette299969331767737703/1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173791_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6613f7523b37851d9a7a28315ec0c2ac_77880405.png imagette299969331767737703 29996923 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=29996923 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716702: '1767737307_1216582_1402715242_371e7ead68a8d68e45b2fd445b0c9cf6_rle_crop_4092166339_0.png', 1402716703: '1767737307_1216582_1402714646_635939aeca9d7e47713f2eb79b69fa96_rle_crop_4092166349_0.png', 1402716969: '1767737345_1217293_1402714040_f6c9abbfbeddf6b2ff7edcdb1d166dfd_rle_crop_4092166595_0.png', 1402717602: '1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173007_0.png', 1402717604: '1767737466_1225851_1402715914_05a3241d7d1ce9072ae9b7a8e38d1229_rle_crop_4092173152_0.png', 1402717619: '1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173770_0.png', 1402717620: '1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173801_0.png', 1402717621: '1767737486_1228164_1402712841_cdd41f9858b5404e7bb3afaad26ec7ba_rle_crop_4092173808_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3337ca428d346213077861c743ed5d74_77586481.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8c96e3d2ce6dcb9d2d38fdb0c12da4e0_67921004.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8e9f57624334bf4535e13ecc2ad9cedd_27636988.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ec92d0349c01acbbb4e6b578c2e30430_84714954.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/754ccad47e850beb5b15d5569d400d72_60509915.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/65d5fb206be6d72974336840065d703e_61965320.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/261959f9329b09bc7a6a5f238cee2991_76789160.png change filename to text .imagette299969231767737703/ imagette299969231767737703/1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173801_0.png.png imagette299969231767737703/1767737486_1228164_1402712841_cdd41f9858b5404e7bb3afaad26ec7ba_rle_crop_4092173808_0.png.png imagette299969231767737703/1767737466_1225851_1402715914_05a3241d7d1ce9072ae9b7a8e38d1229_rle_crop_4092173152_0.png.png imagette299969231767737703/1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173007_0.png.png imagette299969231767737703/1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173770_0.png.png imagette299969231767737703/1767737345_1217293_1402714040_f6c9abbfbeddf6b2ff7edcdb1d166dfd_rle_crop_4092166595_0.png.png imagette299969231767737703/1767737307_1216582_1402714646_635939aeca9d7e47713f2eb79b69fa96_rle_crop_4092166349_0.png.png imagette299969231767737703/1767737307_1216582_1402715242_371e7ead68a8d68e45b2fd445b0c9cf6_rle_crop_4092166339_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7bd88789155e0238be4ffdc9b0ba1cc0_19969255.png imagette299969231767737703 29996924 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=29996924 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716698: '1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166366_0.png', 1402717433: '1767737425_1225083_1402716011_4f00f39c1559970481802e92536c07e8_rle_crop_4092168500_0.png', 1402717599: '1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172986_0.png', 1402717600: '1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173002_0.png', 1402717617: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173751_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8e02975568f789f194d3cf9c5b44f893_20059411.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b90576854c5ab6ce98cc1f39da92732b_86466082.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2b4af31f708a6bbf059d3102fbbf0e64_89465015.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/39c73d7707724c95d9e9b77c7ee6f603_22840281.png change filename to text .imagette299969241767737703/ imagette299969241767737703/1767737425_1225083_1402716011_4f00f39c1559970481802e92536c07e8_rle_crop_4092168500_0.png.png imagette299969241767737703/1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166366_0.png.png imagette299969241767737703/1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172986_0.png.png imagette299969241767737703/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173751_0.png.png imagette299969241767737703/1767737466_1225851_1402715916_805177133651feb676a685acf0dbfab5_rle_crop_4092173002_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/833f01ac3021b4642785c3e21393074a_76185192.png imagette299969241767737703 29996927 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=29996927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402716070: '1767737246_1213933_1402713435_773b84f749222d57156ca729ddaf9214_rle_crop_4092164799_0.png', 1402716692: '1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166373_0.png', 1402716693: '1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166384_0.png', 1402716694: '1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166389_0.png', 1402716922: '1767737345_1217293_1402714085_030e8dc6a2a418655b0fe533577f48c3_rle_crop_4092166579_0.png', 1402717424: '1767737425_1225083_1402716011_4f00f39c1559970481802e92536c07e8_rle_crop_4092168504_0.png', 1402717592: '1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172989_0.png', 1402717609: '1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173758_0.png', 1402717610: '1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173774_0.png', 1402717611: '1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173768_0.png', 1402717612: '1767737486_1228164_1402712921_04a07d541fc03746e8fabed682fd4fa1_rle_crop_4092173783_0.png', 1402717613: '1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6d64bda88b703fc972767960f4ce105c_78280743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8b8a7d8cbe73ff4f41e75c889352d5e1_97613461.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/133f579f17586edb85d4a30f0f13374a_57598103.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a52e1aa48b9b247776bc4766707fea6d_49646940.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1010e59c9a8a91aaa1f0e34c10fa047a_50639006.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/94f81f01806bee0e219fb4347c781dcc_89880665.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/24dc06afb9e9765d272940f28f2f256b_23279634.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/bb73ffe610fa817e26bf0a4c1e092f04_83095808.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e31f2b0b0d5b7a03fd7d33f0cc2e87f0_74527284.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e4016dd1785127192bec88c414c10a57_71629757.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/af19117a7b922aba054f6f443fb55beb_87320055.png change filename to text .imagette299969271767737704/ imagette299969271767737704/1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173768_0.png.png imagette299969271767737704/1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166384_0.png.png imagette299969271767737704/1767737307_1216582_1402714611_690bf25ee3f834be165d323561d1f456_rle_crop_4092166373_0.png.png imagette299969271767737704/1767737486_1228164_1402713466_9c016a2595ef3e88a7610d6234f81fb2_rle_crop_4092173758_0.png.png imagette299969271767737704/1767737246_1213933_1402713435_773b84f749222d57156ca729ddaf9214_rle_crop_4092164799_0.png.png imagette299969271767737704/1767737466_1225851_1402715918_494794933791b4f37630de5ced98103d_rle_crop_4092172989_0.png.png imagette299969271767737704/1767737486_1228164_1402712921_04a07d541fc03746e8fabed682fd4fa1_rle_crop_4092173783_0.png.png imagette299969271767737704/1767737486_1228164_1402712875_1aa621a166028a0845abbf9e05643dfc_rle_crop_4092173795_0.png.png imagette299969271767737704/1767737425_1225083_1402716011_4f00f39c1559970481802e92536c07e8_rle_crop_4092168504_0.png.png imagette299969271767737704/1767737307_1216582_1402714579_91d6177143acef8aac778209cda59ca3_rle_crop_4092166389_0.png.png imagette299969271767737704/1767737486_1228164_1402712979_5fa024ee58dc733a84816d4054caae50_rle_crop_4092173774_0.png.png imagette299969271767737704/1767737345_1217293_1402714085_030e8dc6a2a418655b0fe533577f48c3_rle_crop_4092166579_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/119d112f6dfe9560e8f8fe2c4d91bff1_36726422.png imagette299969271767737704 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29996868 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29996934,29996935,29996936,29996937,29996938,29996939,29996940,29996941,29996942,29996943,29996944,29996945?tags=flou,Carton_brun,Carton_gris,cartonnette,plastique,Teint_Dans_La_Masse,kraft,papier,mal_croppe,environnement,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1402718251] : ('0.07700371525609132',) no score found for photo 1402718251 We are sending mail with results at report@fotonower.com args[1402718248] : ('0.07700371525609132',) no score found for photo 1402718248 We are sending mail with results at report@fotonower.com args[1402718232] : ('0.07700371525609132',) no score found for photo 1402718232 We are sending mail with results at report@fotonower.com args[1402718194] : ('0.07700371525609132',) no score found for photo 1402718194 We are sending mail with results at report@fotonower.com args[1402717866] : ('0.07700371525609132',) no score found for photo 1402717866 We are sending mail with results at report@fotonower.com args[1402717834] : ('0.07700371525609132',) no score found for photo 1402717834 We are sending mail with results at report@fotonower.com args[1402717802] : ('0.07700371525609132',) no score found for photo 1402717802 We are sending mail with results at report@fotonower.com args[1402717766] : ('0.07700371525609132',) no score found for photo 1402717766 We are sending mail with results at report@fotonower.com refus_total : 0.07700371525609132 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=29996868 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_P29996868_06-01-2026_23_15_00.pdf results_Auto_P29996868_06-01-2026_23_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29996868','results_Auto_P29996868_06-01-2026_23_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_15_00.pdf','pdf','','0.26','0.07700371525609132') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29996868]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] map_info['map_portfolio_photo'] : {29996868: [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766, 1402717632, 1402717630, 1402717200, 1402716793, 1402716791, 1402716788, 1402716701, 1402716165, 1402716132, 1402716099, 1402716077, 1402716075, 1402716073, 1402716011, 1402715969, 1402715921, 1402715918, 1402715916, 1402715914, 1402715242, 1402715130, 1402714683, 1402714646, 1402714611, 1402714579, 1402714228, 1402714181, 1402714120, 1402714085, 1402714040, 1402713791, 1402713762, 1402713759, 1402713756, 1402713753, 1402713751, 1402713466, 1402713435, 1402713400, 1402712979, 1402712921, 1402712875, 1402712841]} final : False mtd_id 4302 list_pids : [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] 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, '4318942') ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '29996868', '1402718251', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942')] time used for this insertion : 0.015714645385742188 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.852875709533691 time spend to save output : 0.0159146785736084 total time spend for step 4 : 5.8687903881073 step5:split_time_score Tue Jan 6 23:15:06 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29996868'] 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 : [('29996868',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29996868) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402718194: {'path': 'temp/1767737700_1768431_1402718194_0152f0a084a6126c70e19b3635d46d1f.jpg', 'extension': 'jpg'}, 1402718232: {'path': 'temp/1767737700_1768431_1402718232_2b9dc92bdb73b6cc1e117d0499f779b1.jpg', 'extension': 'jpg'}, 1402718248: {'path': 'temp/1767737700_1768431_1402718248_8374cbd52d608e1dc922732b512858bf.jpg', 'extension': 'jpg'}, 1402718251: {'path': 'temp/1767737700_1768431_1402718251_be4cd9f9e27365dd1c01e47e20c36e58.jpg', 'extension': 'jpg'}, 1402717834: {'path': 'temp/1767737700_1768431_1402717834_209d609b64cc7ef2772334759a0ff75a.jpg', 'extension': 'jpg'}, 1402717866: {'path': 'temp/1767737700_1768431_1402717866_560ad7492463d0ed247fe763a3f40838.jpg', 'extension': 'jpg'}, 1402717766: {'path': 'temp/1767737700_1768431_1402717766_81597b2077abb6eb5e632a10c0ba1c87.jpg', 'extension': 'jpg'}, 1402717802: {'path': 'temp/1767737700_1768431_1402717802_6eb05e29e06012244d6022d4fed66392.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 = 29996868; (('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 = 29996868 group by h (('23', 51),) 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=29996868 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 (29996868) 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 (29996868) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06012026 29996868 Nombre de photos uploadées : 51 / 23040 (0%) 06012026 29996868 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 06012026 29996868 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1402712979, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5fa024ee58dc733a84816d4054caae50.jpg', 'username': None, 'uploaded_at': 1767736867, 'text': 'image_06012026_23_00_04_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402712921, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/04a07d541fc03746e8fabed682fd4fa1.jpg', 'username': None, 'uploaded_at': 1767736867, 'text': 'image_06012026_23_00_15_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402712875, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1aa621a166028a0845abbf9e05643dfc.jpg', 'username': None, 'uploaded_at': 1767736867, 'text': 'image_06012026_23_00_25_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402712841, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cdd41f9858b5404e7bb3afaad26ec7ba.jpg', 'username': None, 'uploaded_at': 1767736867, 'text': 'image_06012026_23_00_34_009125m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002228975296020508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29996868, '2026-01-06' ) 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-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2847576,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24903130531311035 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= 2847576 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29983702, 'dashboard_result_id': 19082947, '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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29983871, 'dashboard_result_id': 19082948, '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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29984338, 'dashboard_result_id': 19082949, '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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29984604, 'dashboard_result_id': 19082950, '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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29985208, 'dashboard_result_id': 19082951, '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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29985695, 'dashboard_result_id': 19082952, '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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29986175, 'dashboard_result_id': 19082953, '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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29986341, 'dashboard_result_id': 19082954, '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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29986616, 'dashboard_result_id': 19082955, '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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29986912, 'dashboard_result_id': 19082956, '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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29987128, 'dashboard_result_id': 19082957, '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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29988197, 'dashboard_result_id': 19082958, '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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29988950, 'dashboard_result_id': 19082959, '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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29989109, 'dashboard_result_id': 19082960, '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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29989579, 'dashboard_result_id': 19082961, '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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29990042, 'dashboard_result_id': 19082962, '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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29990281, 'dashboard_result_id': 19082963, '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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29990561, 'dashboard_result_id': 19082964, '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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29990904, 'dashboard_result_id': 19082965, '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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29992020, 'dashboard_result_id': 19082966, '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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29992183, 'dashboard_result_id': 19082967, '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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29992563, 'dashboard_result_id': 19082968, '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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29993031, 'dashboard_result_id': 19082969, '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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29993483, 'dashboard_result_id': 19082970, '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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29994356, 'dashboard_result_id': 19082971, '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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29995259, 'dashboard_result_id': 19082972, '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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29996022, 'dashboard_result_id': 19082973, '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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860636, 'mtr_portfolio_id': 29996868, 'dashboard_result_id': 19082974, '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_P29996868_06-01-2026_23_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, '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 = 29983702 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': 4317127, 'mtr_portfolio_id': 29983702, 'created_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'result': '0.022296639149872198', 'result_long': None, 'result_double': None}] Qualite : 0.022296639149872198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983702 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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}" where mtr_portfolio_id = 29983702 and dashboard_run_id = 2860636 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`=29983702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082947, 0.022296639149872198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, '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 = 29983871 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': 4317187, 'mtr_portfolio_id': 29983871, 'created_at': datetime.datetime(2026, 1, 6, 14, 19), 'result': '0.017274851096533806', 'result_long': None, 'result_double': None}] Qualite : 0.017274851096533806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983871 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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}" where mtr_portfolio_id = 29983871 and dashboard_run_id = 2860636 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`=29983871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082948, 0.017274851096533806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, '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 = 29984338 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': 4317247, 'mtr_portfolio_id': 29984338, 'created_at': datetime.datetime(2026, 1, 6, 14, 35), 'result': '0.04421720492812946', 'result_long': None, 'result_double': None}] Qualite : 0.04421720492812946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984338 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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}" where mtr_portfolio_id = 29984338 and dashboard_run_id = 2860636 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`=29984338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082949, 0.04421720492812946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, '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 = 29984604 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': 4317301, 'mtr_portfolio_id': 29984604, 'created_at': datetime.datetime(2026, 1, 6, 14, 48, 56), 'result': '0.04795347821360475', 'result_long': None, 'result_double': None}] Qualite : 0.04795347821360475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984604 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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}" where mtr_portfolio_id = 29984604 and dashboard_run_id = 2860636 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`=29984604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082950, 0.04795347821360475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, '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 = 29985208 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': 4317391, 'mtr_portfolio_id': 29985208, 'created_at': datetime.datetime(2026, 1, 6, 15, 3), 'result': '0.06037429492965243', 'result_long': None, 'result_double': None}] Qualite : 0.06037429492965243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985208 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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}" where mtr_portfolio_id = 29985208 and dashboard_run_id = 2860636 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`=29985208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082951, 0.06037429492965243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, '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 = 29985695 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': 4317466, 'mtr_portfolio_id': 29985695, 'created_at': datetime.datetime(2026, 1, 6, 15, 18, 59), 'result': '0.030739318521380846', 'result_long': None, 'result_double': None}] Qualite : 0.030739318521380846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985695 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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}" where mtr_portfolio_id = 29985695 and dashboard_run_id = 2860636 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`=29985695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082952, 0.030739318521380846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, '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 = 29986175 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': 4317511, 'mtr_portfolio_id': 29986175, 'created_at': datetime.datetime(2026, 1, 6, 15, 32, 58), 'result': '0.02568770202023262', 'result_long': None, 'result_double': None}] Qualite : 0.02568770202023262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986175 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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}" where mtr_portfolio_id = 29986175 and dashboard_run_id = 2860636 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`=29986175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082953, 0.02568770202023262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, '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 = 29986341 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': 4317539, 'mtr_portfolio_id': 29986341, 'created_at': datetime.datetime(2026, 1, 6, 15, 49, 1), 'result': '0.026397140536285345', 'result_long': None, 'result_double': None}] Qualite : 0.026397140536285345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986341 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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}" where mtr_portfolio_id = 29986341 and dashboard_run_id = 2860636 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`=29986341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082954, 0.026397140536285345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, '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 = 29986616 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': 4317584, 'mtr_portfolio_id': 29986616, 'created_at': datetime.datetime(2026, 1, 6, 16, 2, 58), 'result': '0.04873517687602566', 'result_long': None, 'result_double': None}] Qualite : 0.04873517687602566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986616 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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}" where mtr_portfolio_id = 29986616 and dashboard_run_id = 2860636 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`=29986616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082955, 0.04873517687602566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, '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 = 29986912 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': 4317626, 'mtr_portfolio_id': 29986912, 'created_at': datetime.datetime(2026, 1, 6, 16, 20, 58), 'result': '0.03471252440187812', 'result_long': None, 'result_double': None}] Qualite : 0.03471252440187812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986912 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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}" where mtr_portfolio_id = 29986912 and dashboard_run_id = 2860636 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`=29986912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082956, 0.03471252440187812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, '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 = 29987128 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': 4317656, 'mtr_portfolio_id': 29987128, 'created_at': datetime.datetime(2026, 1, 6, 16, 38, 58), 'result': '0.029989250279964', 'result_long': None, 'result_double': None}] Qualite : 0.029989250279964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29987128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29987128 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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}" where mtr_portfolio_id = 29987128 and dashboard_run_id = 2860636 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`=29987128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082957, 0.029989250279964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, '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 = 29988197 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': 4317808, 'mtr_portfolio_id': 29988197, 'created_at': datetime.datetime(2026, 1, 6, 18, 13), 'result': '0.2352042110746693', 'result_long': None, 'result_double': None}] Qualite : 0.2352042110746693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988197 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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}" where mtr_portfolio_id = 29988197 and dashboard_run_id = 2860636 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`=29988197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082958, 0.2352042110746693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, '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 = 29988950 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': 4317940, 'mtr_portfolio_id': 29988950, 'created_at': datetime.datetime(2026, 1, 6, 18, 32, 58), 'result': '0.11963051026203138', 'result_long': None, 'result_double': None}] Qualite : 0.11963051026203138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988950 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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}" where mtr_portfolio_id = 29988950 and dashboard_run_id = 2860636 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`=29988950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082959, 0.11963051026203138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, '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 = 29989109 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': 4317977, 'mtr_portfolio_id': 29989109, 'created_at': datetime.datetime(2026, 1, 6, 18, 47, 1), 'result': '0.02513504881480487', 'result_long': None, 'result_double': None}] Qualite : 0.02513504881480487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989109 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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}" where mtr_portfolio_id = 29989109 and dashboard_run_id = 2860636 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`=29989109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082960, 0.02513504881480487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, '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 = 29989579 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': 4318051, 'mtr_portfolio_id': 29989579, 'created_at': datetime.datetime(2026, 1, 6, 19, 18, 31), 'result': '0.025601462006281817', 'result_long': None, 'result_double': None}] Qualite : 0.025601462006281817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989579 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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}" where mtr_portfolio_id = 29989579 and dashboard_run_id = 2860636 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`=29989579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082961, 0.025601462006281817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, '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 = 29990042 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': 4318092, 'mtr_portfolio_id': 29990042, 'created_at': datetime.datetime(2026, 1, 6, 19, 34, 30), 'result': '0.05281345252904674', 'result_long': None, 'result_double': None}] Qualite : 0.05281345252904674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990042 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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}" where mtr_portfolio_id = 29990042 and dashboard_run_id = 2860636 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`=29990042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082962, 0.05281345252904674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, '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 = 29990281 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': 4318126, 'mtr_portfolio_id': 29990281, 'created_at': datetime.datetime(2026, 1, 6, 19, 46, 59), 'result': '0.031446307287372216', 'result_long': None, 'result_double': None}] Qualite : 0.031446307287372216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990281 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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}" where mtr_portfolio_id = 29990281 and dashboard_run_id = 2860636 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`=29990281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082963, 0.031446307287372216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, '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 = 29990561 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': 4318162, 'mtr_portfolio_id': 29990561, 'created_at': datetime.datetime(2026, 1, 6, 20, 5), 'result': '0.11225773860733029', 'result_long': None, 'result_double': None}] Qualite : 0.11225773860733029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990561 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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}" where mtr_portfolio_id = 29990561 and dashboard_run_id = 2860636 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`=29990561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082964, 0.11225773860733029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, '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 = 29990904 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': 4318212, 'mtr_portfolio_id': 29990904, 'created_at': datetime.datetime(2026, 1, 6, 20, 17), 'result': '0.15519283692203367', 'result_long': None, 'result_double': None}] Qualite : 0.15519283692203367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990904 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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}" where mtr_portfolio_id = 29990904 and dashboard_run_id = 2860636 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`=29990904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082965, 0.15519283692203367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, '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 = 29992020 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': 4318367, 'mtr_portfolio_id': 29992020, 'created_at': datetime.datetime(2026, 1, 6, 21, 21, 13), 'result': '0.07044894118906095', 'result_long': None, 'result_double': None}] Qualite : 0.07044894118906095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992020 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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}" where mtr_portfolio_id = 29992020 and dashboard_run_id = 2860636 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`=29992020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082966, 0.07044894118906095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, '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 = 29992183 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': 4318380, 'mtr_portfolio_id': 29992183, 'created_at': datetime.datetime(2026, 1, 6, 21, 35), 'result': '0.07215581131758142', 'result_long': None, 'result_double': None}] Qualite : 0.07215581131758142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992183 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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}" where mtr_portfolio_id = 29992183 and dashboard_run_id = 2860636 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`=29992183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082967, 0.07215581131758142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, '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 = 29992563 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': 4318420, 'mtr_portfolio_id': 29992563, 'created_at': datetime.datetime(2026, 1, 6, 21, 49), 'result': '0.040228862385956514', 'result_long': None, 'result_double': None}] Qualite : 0.040228862385956514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992563 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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}" where mtr_portfolio_id = 29992563 and dashboard_run_id = 2860636 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`=29992563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082968, 0.040228862385956514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, '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 = 29993031 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': 4318477, 'mtr_portfolio_id': 29993031, 'created_at': datetime.datetime(2026, 1, 6, 22, 2, 59), 'result': '0.05395314798042522', 'result_long': None, 'result_double': None}] Qualite : 0.05395314798042522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993031 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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}" where mtr_portfolio_id = 29993031 and dashboard_run_id = 2860636 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`=29993031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082969, 0.05395314798042522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, '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 = 29993483 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': 4318586, 'mtr_portfolio_id': 29993483, 'created_at': datetime.datetime(2026, 1, 6, 22, 16, 59), 'result': '0.04906287081713248', 'result_long': None, 'result_double': None}] Qualite : 0.04906287081713248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993483 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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}" where mtr_portfolio_id = 29993483 and dashboard_run_id = 2860636 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`=29993483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082970, 0.04906287081713248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, '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 = 29994356 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': 4318668, 'mtr_portfolio_id': 29994356, 'created_at': datetime.datetime(2026, 1, 6, 22, 32, 59), 'result': '0.06192785817322462', 'result_long': None, 'result_double': None}] Qualite : 0.06192785817322462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29994356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29994356 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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}" where mtr_portfolio_id = 29994356 and dashboard_run_id = 2860638 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`=29994356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082971, 0.06192785817322462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, '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 = 29995259 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': 4318750, 'mtr_portfolio_id': 29995259, 'created_at': datetime.datetime(2026, 1, 6, 22, 47), 'result': '0.04972142154858078', 'result_long': None, 'result_double': None}] Qualite : 0.04972142154858078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29995259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29995259 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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}" where mtr_portfolio_id = 29995259 and dashboard_run_id = 2860638 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`=29995259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082972, 0.04972142154858078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, '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 = 29996022 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': 4318844, 'mtr_portfolio_id': 29996022, 'created_at': datetime.datetime(2026, 1, 6, 23, 2, 58), 'result': '0.0635783938331082', 'result_long': None, 'result_double': None}] Qualite : 0.0635783938331082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996022 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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}" where mtr_portfolio_id = 29996022 and dashboard_run_id = 2860638 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`=29996022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082973, 0.0635783938331082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, '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 = 29996868 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': 4318942, 'mtr_portfolio_id': 29996868, 'created_at': datetime.datetime(2026, 1, 6, 23, 15), 'result': '0.07700371525609132', 'result_long': None, 'result_double': None}] Qualite : 0.07700371525609132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996868 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_P29996868_06-01-2026_23_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}" where mtr_portfolio_id = 29996868 and dashboard_run_id = 2860638 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`=29996868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19082974, 0.07700371525609132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, '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 (29983702,29983871,29984338,29984604,29985208,29985695,29986175,29986341,29986616,29986912,29987128,29988197,29988950,29989109,29989579,29990042,29990281,29990561,29990904,29992020,29992183,29992563,29993031,29993483,29994356,29995259,29996022,29996868) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,), (1402655652,), (1402655715,), (1402656130,), (1402656154,), (1402656188,), (1402656225,), (1402656257,), (1402656355,), (1402657555,), (1402657557,), (1402658485,), (1402658620,), (1402658691,), (1402658746,), (1402658742,), (1402658744,), (1402658766,), (1402658768,), (1402658788,), (1402658790,), (1402658791,), (1402658808,), (1402658810,), (1402658835,), (1402658836,), (1402658837,), (1402658838,), (1402658841,), (1402658855,), (1402658856,), (1402658883,), (1402658884,), (1402658885,), (1402658887,), (1402658890,), (1402658909,), (1402658912,), (1402658915,), (1402658919,), (1402658924,), (1402658931,), (1402658950,), (1402658951,), (1402658953,), (1402658954,), (1402658969,), (1402658970,), (1402658971,), (1402658972,), (1402658977,), (1402658979,), (1402659005,), (1402659006,), (1402659008,), (1402659009,), (1402659013,), (1402659026,), (1402659027,), (1402659028,), (1402659029,), (1402659057,), (1402659068,), (1402659070,), (1402659071,), (1402659073,), (1402659095,), (1402659141,), (1402659091,), (1402659092,), (1402659094,), (1402659116,), (1402659119,), (1402659120,), (1402659124,), (1402659126,), (1402659129,), (1402659138,), (1402659139,), (1402659142,), (1402659143,), (1402659144,), (1402659148,), (1402659151,), (1402659202,), (1402659203,), (1402659204,), (1402659206,), (1402659219,), (1402659220,), (1402659222,), (1402659224,), (1402659228,), (1402659230,), (1402659249,), (1402659253,), (1402659254,), (1402659256,), (1402659277,), (1402659278,), (1402659279,), (1402659285,), (1402659291,), (1402659308,), (1402659402,), (1402659403,), (1402659404,), (1402659408,), (1402659413,), (1402659422,), (1402659459,), (1402659460,), (1402659461,), (1402659505,), (1402659506,), (1402659507,), (1402659509,), (1402659512,), (1402659515,), (1402659525,), (1402659526,), (1402659528,), (1402659530,), (1402659556,), (1402659557,), (1402659558,), (1402659561,), (1402659564,), (1402659565,), (1402659572,), (1402659574,), (1402659575,), (1402659576,), (1402659577,), (1402659677,), (1402659700,), (1402659781,), (1402659784,), (1402659921,), (1402660263,), (1402660284,), (1402660314,), (1402660552,), (1402660553,), (1402660577,), (1402660578,), (1402660580,), (1402660584,), (1402660729,), (1402660782,), (1402660785,), (1402660788,), (1402661137,), (1402661073,), (1402661105,), (1402661853,), (1402662604,), (1402662642,), (1402662777,), (1402662837,), (1402662889,), (1402662910,), (1402662984,), (1402663040,), (1402663042,), (1402663056,), (1402663069,), (1402663090,), (1402663091,), (1402663103,), (1402663118,), (1402663120,), (1402663158,), (1402663198,), (1402663230,), (1402663250,), (1402663276,), (1402663277,), (1402663312,), (1402663314,), (1402663329,), (1402663379,), (1402663457,), (1402663586,), (1402663621,), (1402663641,), (1402663682,), (1402663761,), (1402663759,), (1402663925,), (1402663933,), (1402664100,), (1402664202,), (1402664324,), (1402664328,), (1402664347,), (1402664381,), (1402664547,), (1402664596,), (1402664604,), (1402664605,), (1402664618,), (1402664619,), (1402665095,), (1402665551,), (1402665397,), (1402665694,), (1402666145,), (1402666164,), (1402666183,), (1402666184,), (1402666268,), (1402666278,), (1402666348,), (1402666350,), (1402666368,), (1402666604,), (1402671093,), (1402671095,), (1402671097,), (1402671254,), (1402671278,), (1402671626,), (1402671627,), (1402671795,), (1402673627,), (1402673736,), (1402673893,), (1402673930,), (1402673952,), (1402673978,), (1402673980,), (1402673992,), (1402674005,), (1402674020,), (1402674113,), (1402674114,), (1402674126,), (1402674160,), (1402674235,), (1402674236,), (1402674737,), (1402674910,), (1402677429,), (1402677764,), (1402679554,), (1402679589,), (1402679870,), (1402679892,), (1402679901,), (1402679934,), (1402680157,), (1402680437,), (1402680676,), (1402680689,), (1402680690,), (1402680770,), (1402680784,), (1402680797,), (1402680892,), (1402680894,), (1402680953,), (1402681012,), (1402681058,), (1402681070,), (1402681071,), (1402681082,), (1402681148,), (1402681242,), (1402681243,), (1402681411,), (1402681430,), (1402681605,), (1402681805,), (1402681806,), (1402681864,), (1402681866,), (1402681868,), (1402681877,), (1402682360,), (1402683739,), (1402683783,), (1402683821,), (1402683823,), (1402683837,), (1402683862,), (1402683932,), (1402683975,), (1402684206,), (1402684207,), (1402684480,), (1402686027,), (1402689280,), (1402689282,), (1402689284,), (1402689286,), (1402689322,), (1402689323,), (1402689975,), (1402689988,), (1402689989,), (1402690405,), (1402690435,), (1402690441,), (1402690450,), (1402690486,), (1402690487,), (1402690501,), (1402690502,), (1402690503,), (1402690504,), (1402690507,), (1402690534,), (1402690536,), (1402690538,), (1402690550,), (1402690552,), (1402690554,), (1402690556,), (1402690559,), (1402690574,), (1402690575,), (1402690577,), (1402690578,), (1402690582,), (1402690594,), (1402690596,), (1402690616,), (1402690617,), (1402690635,), (1402690637,), (1402690639,), (1402690643,), (1402690647,), (1402690651,), (1402690674,), (1402690677,), (1402690679,), (1402690696,), (1402690722,), (1402690694,), (1402690695,), (1402690718,), (1402690719,), (1402690720,), (1402690797,), (1402690798,), (1402690812,), (1402690814,), (1402690835,), (1402690837,), (1402690839,), (1402690841,), (1402690844,), (1402690861,), (1402690863,), (1402690865,), (1402690866,), (1402690868,), (1402690891,), (1402690896,), (1402690908,), (1402690910,), (1402690912,), (1402690913,), (1402690915,), (1402690917,), (1402690938,), (1402690940,), (1402690941,), (1402690943,), (1402690946,), (1402690961,), (1402690989,), (1402691060,), (1402691061,), (1402691062,), (1402691533,), (1402691501,), (1402691526,), (1402691528,), (1402691529,), (1402691531,), (1402691542,), (1402691544,), (1402691546,), (1402691569,), (1402691575,), (1402691580,), (1402691594,), (1402691596,), (1402691599,), (1402691602,), (1402691606,), (1402691608,), (1402691618,), (1402691620,), (1402691622,), (1402691625,), (1402691628,), (1402691655,), (1402691686,), (1402691718,), (1402691750,), (1402691993,), (1402691994,), (1402691995,), (1402691998,), (1402692001,), (1402692003,), (1402692012,), (1402692013,), (1402692015,), (1402692017,), (1402692051,), (1402692052,), (1402692053,), (1402692055,), (1402692059,), (1402692083,), (1402692085,), (1402692087,), (1402692115,), (1402692116,), (1402692118,), (1402692131,), (1402692212,), (1402692213,), (1402692215,), (1402692218,), (1402692222,), (1402692246,), (1402692248,), (1402692250,), (1402692253,), (1402692412,), (1402692446,), (1402692479,), (1402692513,), (1402692652,), (1402692685,), (1402692720,), (1402692754,), (1402693010,), (1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,), (1402699281,), (1402699283,), (1402699287,), (1402699290,), (1402699293,), (1402699311,), (1402699312,), (1402699313,), (1402699314,), (1402699317,), (1402699396,), (1402699365,), (1402699902,), (1402699935,), (1402699968,), (1402699995,), (1402700174,), (1402700186,), (1402700203,), (1402700210,), (1402700244,), (1402700362,), (1402700832,), (1402700910,), (1402700965,), (1402700967,), (1402700970,), (1402701041,), (1402701042,), (1402701057,), (1402701058,), (1402701059,), (1402701063,), (1402701082,), (1402701083,), (1402701084,), (1402701085,), (1402701088,), (1402701091,), (1402701098,), (1402701099,), (1402701100,), (1402701101,), (1402701117,), (1402701164,), (1402701253,), (1402701343,), (1402701449,), (1402702001,), (1402702034,), (1402702107,), (1402702145,), (1402702182,), (1402702362,), (1402702396,), (1402702457,), (1402702598,), (1402702600,), (1402702603,), (1402702608,), (1402702612,), (1402703110,), (1402703217,), (1402703249,), (1402703285,), (1402703318,), (1402703356,), (1402703652,), (1402703653,), (1402703667,), (1402703779,), (1402703781,), (1402703798,), (1402703828,), (1402704239,), (1402704214,), (1402704233,), (1402704234,), (1402704235,), (1402704440,), (1402704454,), (1402704461,), (1402704493,), (1402704509,), (1402704510,), (1402704512,), (1402704513,), (1402704516,), (1402704517,), (1402704542,), (1402704543,), (1402704571,), (1402704572,), (1402704574,), (1402704575,), (1402705413,), (1402705414,), (1402705416,), (1402705418,), (1402705422,), (1402706007,), (1402706044,), (1402706114,), (1402706137,), (1402706632,), (1402706686,), (1402706717,), (1402706866,), (1402706878,), (1402706882,), (1402706886,), (1402706906,), (1402706923,), (1402706924,), (1402706925,), (1402706927,), (1402706931,), (1402706940,), (1402706941,), (1402707089,), (1402707126,), (1402707160,), (1402707196,), (1402707230,), (1402707372,), (1402707389,), (1402707419,), (1402707428,), (1402707473,), (1402707474,), (1402707475,), (1402707477,), (1402707481,), (1402707607,), (1402707644,), (1402707675,), (1402707706,), (1402707756,), (1402708762,), (1402708754,), (1402708761,), (1402709041,), (1402709050,), (1402709059,), (1402709061,), (1402709065,), (1402709174,), (1402709270,), (1402709365,), (1402709464,), (1402709547,), (1402709764,), (1402709790,), (1402709792,), (1402709796,), (1402709821,), (1402709822,), (1402709823,), (1402709856,), (1402709857,), (1402709858,), (1402709860,), (1402709877,), (1402709878,), (1402709901,), (1402709902,), (1402709903,), (1402709970,), (1402709999,), (1402710060,), (1402710063,), (1402710066,), (1402710892,), (1402710895,), (1402710900,), (1402710903,), (1402710963,), (1402711012,), (1402711154,), (1402711157,), (1402711159,), (1402711162,), (1402711166,), (1402711169,), (1402711182,), (1402711184,), (1402711186,), (1402712322,), (1402712327,), (1402712332,), (1402712335,), (1402712530,), (1402712564,), (1402712597,), (1402712697,), (1402712733,), (1402713045,), (1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06012026': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29996868]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] map_info['map_portfolio_photo'] : {29996868: [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766, 1402717632, 1402717630, 1402717200, 1402716793, 1402716791, 1402716788, 1402716701, 1402716165, 1402716132, 1402716099, 1402716077, 1402716075, 1402716073, 1402716011, 1402715969, 1402715921, 1402715918, 1402715916, 1402715914, 1402715242, 1402715130, 1402714683, 1402714646, 1402714611, 1402714579, 1402714228, 1402714181, 1402714120, 1402714085, 1402714040, 1402713791, 1402713762, 1402713759, 1402713756, 1402713753, 1402713751, 1402713466, 1402713435, 1402713400, 1402712979, 1402712921, 1402712875, 1402712841]} final : True mtd_id 4302 list_pids : [1402718251, 1402718248, 1402718232, 1402718194, 1402717866, 1402717834, 1402717802, 1402717766] Looping around the photos to save general results len do output : 1 /29996868Didn'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, '4318942') ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942') ('4302', None, None, None, None, None, None, None, '4318942') ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29996868', 'None', None, None, None, None, '4318942'), ('4302', '29996868', '1402718251', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718248', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718232', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402718194', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717866', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717834', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717802', None, None, None, None, None, '4318942'), ('4302', '29996868', '1402717766', None, None, None, None, None, '4318942')] time used for this insertion : 0.016510486602783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2275068759918213 time spend to save output : 0.016651153564453125 total time spend for step 5 : 2.2441580295562744 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 (4318942) 2.17user 2.49system 0:12.68elapsed 36%CPU (0avgtext+0avgdata 167244maxresident)k 344inputs+15168outputs (7major+72940minor)pagefaults 0swaps