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 : 2381423 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 (4080367) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4080367) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722077 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4080367'] with mtr_portfolio_ids : ['28722077'] and first list_photo_ids : [] new path : /proc/2381423/ Name: python3 Umask: 0002 State: R (running) Tgid: 2381423 Ngid: 0 Pid: 2381423 PPid: 2381422 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2381423 NSpid: 2381423 NSpgid: 2380117 NSsid: 2380117 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98464 kB VmRSS: 98464 kB RssAnon: 59900 kB RssFile: 38564 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 54 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2381423', 'Ngid': '0', 'Pid': '2381423', 'PPid': '2381422', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2381423', 'NSpid': '2381423', 'NSpgid': '2380117', 'NSsid': '2380117', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98464 kB', 'VmRSS': '98464 kB', 'RssAnon': '59900 kB', 'RssFile': '38564 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '54', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '2381423', '1106908', '0', '1106884', '865636', '98464', b'', 'marlene', '4080367') 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 (28722077) 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 (4080367 ) ) 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 (28722077) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395260591, 'portfolio_id': 28722077}, {'photo_id': 1395260586, 'portfolio_id': 28722077}, {'photo_id': 1395260581, 'portfolio_id': 28722077}, {'photo_id': 1395260576, 'portfolio_id': 28722077}, {'photo_id': 1395260573, 'portfolio_id': 28722077}, {'photo_id': 1395260571, 'portfolio_id': 28722077}, {'photo_id': 1395260539, 'portfolio_id': 28722077}, {'photo_id': 1395260537, 'portfolio_id': 28722077}, {'photo_id': 1395260535, 'portfolio_id': 28722077}, {'photo_id': 1395260533, 'portfolio_id': 28722077}, {'photo_id': 1395260480, 'portfolio_id': 28722077}, {'photo_id': 1395260476, 'portfolio_id': 28722077}, {'photo_id': 1395260473, 'portfolio_id': 28722077}, {'photo_id': 1395260472, 'portfolio_id': 28722077}, {'photo_id': 1395260465, 'portfolio_id': 28722077}, {'photo_id': 1395260409, 'portfolio_id': 28722077}, {'photo_id': 1395260407, 'portfolio_id': 28722077}, {'photo_id': 1395260226, 'portfolio_id': 28722077}, {'photo_id': 1395260195, 'portfolio_id': 28722077}, {'photo_id': 1395260057, 'portfolio_id': 28722077}, {'photo_id': 1395260053, 'portfolio_id': 28722077}, {'photo_id': 1395260049, 'portfolio_id': 28722077}, {'photo_id': 1395260046, 'portfolio_id': 28722077}, {'photo_id': 1395260038, 'portfolio_id': 28722077}, {'photo_id': 1395260003, 'portfolio_id': 28722077}, {'photo_id': 1395259108, 'portfolio_id': 28722077}, {'photo_id': 1395258558, 'portfolio_id': 28722077}, {'photo_id': 1395257984, 'portfolio_id': 28722077}, {'photo_id': 1395257874, 'portfolio_id': 28722077}, {'photo_id': 1395257871, 'portfolio_id': 28722077}] map_portfolio_id_photo_id: {28722077: [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571, 1395260539, 1395260537, 1395260535, 1395260533, 1395260480, 1395260476, 1395260473, 1395260472, 1395260465, 1395260409, 1395260407, 1395260226, 1395260195, 1395260057, 1395260053, 1395260049, 1395260046, 1395260038, 1395260003, 1395259108, 1395258558, 1395257984, 1395257874, 1395257871]} ##### 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.01606464385986328 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 19 21:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28722077) 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 : 28722077 get user id for portfolio 28722077 get sub ptf for main ptf 28722077, type 3726 and hashtags ['autre_refus', 'metal', 'papier', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'kraft', 'Carton_brun', 'plastique', 'mal_croppe', 'Carton_gris', 'flou'] 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`=28722077 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','Teint_Dans_La_Masse','environnement','cartonnette','kraft','Carton_brun','plastique','mal_croppe','Carton_gris','flou')) 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`=28722077 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','Teint_Dans_La_Masse','environnement','cartonnette','kraft','Carton_brun','plastique','mal_croppe','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28722077, 'sub_port_id': 28722082, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482040, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'papier': {'main_port_id': 28722077, 'sub_port_id': 28722083, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482041, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'environnement': {'main_port_id': 28722077, 'sub_port_id': 28722084, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482042, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'autre_refus': {'main_port_id': 28722077, 'sub_port_id': 28722085, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482043, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'kraft': {'main_port_id': 28722077, 'sub_port_id': 28722086, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482044, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'flou': {'main_port_id': 28722077, 'sub_port_id': 28722087, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482045, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'plastique': {'main_port_id': 28722077, 'sub_port_id': 28722088, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482046, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 28722077, 'sub_port_id': 28722089, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482047, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'metal': {'main_port_id': 28722077, 'sub_port_id': 28722090, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482048, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'mal_croppe': {'main_port_id': 28722077, 'sub_port_id': 28722091, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482049, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'Carton_gris': {'main_port_id': 28722077, 'sub_port_id': 28722092, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482050, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}, 'Carton_brun': {'main_port_id': 28722077, 'sub_port_id': 28722093, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482051, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722082 , 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=28722077 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 (28722082) result : ((1395260548,), (1395260600,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722083 , 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=28722077 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 (28722083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722084 , 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=28722077 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 (28722084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722085 , 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=28722077 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 (28722085) result : ((1395260545,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722086 , 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=28722077 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 (28722086) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722087 , 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=28722077 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 (28722087) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722088 , 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=28722077 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 (28722088) result : ((1395260551,), (1395260552,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722089 , 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=28722077 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 (28722089) result : ((1395260544,), (1395260599,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722090 , 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=28722077 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 (28722090) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722091 , 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=28722077 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 (28722091) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722092 , 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=28722077 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 (28722092) result : ((1395260547,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28722093 , 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=28722077 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 (28722093) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28722077) result : ((1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28722077 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','Teint_Dans_La_Masse','environnement','cartonnette','kraft','Carton_brun','plastique','mal_croppe','Carton_gris','flou')) 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`=28722077 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','Teint_Dans_La_Masse','environnement','cartonnette','kraft','Carton_brun','plastique','mal_croppe','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28722077, 'sub_port_id': 28722094, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482052, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'papier': {'main_port_id': 28722077, 'sub_port_id': 28722095, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482053, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'environnement': {'main_port_id': 28722077, 'sub_port_id': 28722096, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482054, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'autre_refus': {'main_port_id': 28722077, 'sub_port_id': 28722097, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482055, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'kraft': {'main_port_id': 28722077, 'sub_port_id': 28722098, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482056, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'flou': {'main_port_id': 28722077, 'sub_port_id': 28722099, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482057, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'plastique': {'main_port_id': 28722077, 'sub_port_id': 28722100, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482058, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28722077, 'sub_port_id': 28722101, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482059, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'metal': {'main_port_id': 28722077, 'sub_port_id': 28722102, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482060, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'mal_croppe': {'main_port_id': 28722077, 'sub_port_id': 28722103, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482061, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'Carton_gris': {'main_port_id': 28722077, 'sub_port_id': 28722104, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482062, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}, 'Carton_brun': {'main_port_id': 28722077, 'sub_port_id': 28722105, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19482063, 'last_updated_at': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 21, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 21, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28722105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28722093 lien utilise dans velours : https://marlene.fotonower.com/velours/28722094,28722095,28722096,28722097,28722098,28722099,28722100,28722101,28722102,28722103,28722104,28722105?tags=cartonnette,papier,environnement,autre_refus,kraft,flou,plastique,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28722077]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] map_info['map_portfolio_photo'] : {28722077: [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571, 1395260539, 1395260537, 1395260535, 1395260533, 1395260480, 1395260476, 1395260473, 1395260472, 1395260465, 1395260409, 1395260407, 1395260226, 1395260195, 1395260057, 1395260053, 1395260049, 1395260046, 1395260038, 1395260003, 1395259108, 1395258558, 1395257984, 1395257874, 1395257871]} final : False mtd_id 4302 list_pids : [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] Looping around the photos to save general results len do output : 1 /28722077. 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, '4080367') ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '28722077', "{'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093}", None, None, None, None, '4080367'), ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367')] time used for this insertion : 0.012878894805908203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5314114093780518 time spend to save output : 0.013149499893188477 total time spend for step 1 : 1.5445609092712402 step2:final Wed Nov 19 21:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28722077) 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 28722077 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395257874,1395257871,1395258558,1395259108,1395257984,1395260057,1395260053,1395260049,1395260046,1395260038,1395260003,1395260226,1395260195,1395260409,1395260407,1395260480,1395260476,1395260473,1395260472,1395260465,1395260539,1395260537,1395260535,1395260533,1395260591,1395260586,1395260581,1395260576,1395260573,1395260571); 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([28722077]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} new output for save of step final : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] map_info['map_portfolio_photo'] : {28722077: [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571, 1395260539, 1395260537, 1395260535, 1395260533, 1395260480, 1395260476, 1395260473, 1395260472, 1395260465, 1395260409, 1395260407, 1395260226, 1395260195, 1395260057, 1395260053, 1395260049, 1395260046, 1395260038, 1395260003, 1395259108, 1395258558, 1395257984, 1395257874, 1395257871]} final : False mtd_id 4302 list_pids : [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] Looping around the photos to save general results len do output : 6 /1395260591.Didn't retrieve data . /1395260586.Didn't retrieve data . /1395260581.Didn't retrieve data . /1395260576.Didn't retrieve data . /1395260573.Didn't retrieve data . /1395260571.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, '4080367') ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '28722077', '1395260591', '0.03843312954862736', None, None, None, None, '4080367'), ('4302', '28722077', '1395260586', '0.03843312954862736', None, None, None, None, '4080367'), ('4302', '28722077', '1395260581', '0.03843312954862736', None, None, None, None, '4080367'), ('4302', '28722077', '1395260576', '0.03843312954862736', None, None, None, None, '4080367'), ('4302', '28722077', '1395260573', '0.03843312954862736', None, None, None, None, '4080367'), ('4302', '28722077', '1395260571', '0.03843312954862736', None, None, None, None, '4080367')] time used for this insertion : 0.011933326721191406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06559109687805176 time spend to save output : 0.012288808822631836 total time spend for step 2 : 0.0778799057006836 step3:velours_tree Wed Nov 19 21:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28722077: [{'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093}]} input_args_next_step : {28722077: ()} output_args : {28722077: [{'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093}]} args : 28722077 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 : ({'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28722077) 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([28722077]) 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.2708451747894287 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.270892858505249 step4:send_mail_cod Wed Nov 19 21:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} input_args_next_step : {1395260591: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260591 depend.output_id : 0 input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260586 depend.output_id : 0 input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260581 depend.output_id : 0 input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260576 depend.output_id : 0 input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260573 depend.output_id : 0 input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ()} output_args : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',)} args : 1395260571 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 : {28722077: [{'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093}]} input_args_next_step : {1395260591: ('0.03843312954862736',), 1395260586: ('0.03843312954862736',), 1395260581: ('0.03843312954862736',), 1395260576: ('0.03843312954862736',), 1395260573: ('0.03843312954862736',), 1395260571: ('0.03843312954862736',), 28722077: ()} output_args : {28722077: [{'cartonnette': 28722082, 'papier': 28722083, 'environnement': 28722084, 'autre_refus': 28722085, 'kraft': 28722086, 'flou': 28722087, 'plastique': 28722088, 'Teint_Dans_La_Masse': 28722089, 'metal': 28722090, 'mal_croppe': 28722091, 'Carton_gris': 28722092, 'Carton_brun': 28722093}]} args : 28722077 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 :7, first value : ('0.03843312954862736',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28722077) 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 (1395260591,1395260586,1395260581,1395260576,1395260573,1395260571) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395260571 begin to download photo : 1395260576 begin to download photo : 1395260586 download finish for photo 1395260586 begin to download photo : 1395260591 download finish for photo 1395260571 begin to download photo : 1395260573 download finish for photo 1395260576 begin to download photo : 1395260581 download finish for photo 1395260573 download finish for photo 1395260581 download finish for photo 1395260591 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P28722077_19-11-2025_21_15_00.pdf 28722082 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=28722082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395260548: '1763583087_1056189_1395260053_5f9b1e97c6a41826fb7604bd28fa43e0_rle_crop_4039115900_0.png', 1395260600: '1763583207_1060603_1395260537_ca4ddb9d5327aeb203409bfdb0a96c3e_rle_crop_4039116257_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/84fe4b0f6df6dd322f98adf4353cb651_81396181.png change filename to text .imagette287220821763583300/ imagette287220821763583300/1763583207_1060603_1395260537_ca4ddb9d5327aeb203409bfdb0a96c3e_rle_crop_4039116257_0.png.png imagette287220821763583300/1763583087_1056189_1395260053_5f9b1e97c6a41826fb7604bd28fa43e0_rle_crop_4039115900_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/6045c30a81020dfd81186e04c8c5f267_15714768.png imagette287220821763583300 28722085 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=28722085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395260545: '1763583087_1056189_1395260226_a77b9f482d60cd12b4db183e3f4fb21c_rle_crop_4039115882_0.png'} change filename to text .imagette287220851763583300/ imagette287220851763583300/1763583087_1056189_1395260226_a77b9f482d60cd12b4db183e3f4fb21c_rle_crop_4039115882_0.png.png imagette287220861763583300/ imagette287220871763583300/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5d8d34ca6abc4f0a9389fbd6761518fe_33739397.png imagette287220851763583300 28722086 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=28722086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287220861763583300 28722087 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=28722087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287220871763583300 28722088 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=28722088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395260551: '1763583087_1056189_1395260049_e432065a3b93e28f18a12f7cdf77eb68_rle_crop_4039115907_0.png', 1395260552: '1763583087_1056189_1395260038_5ff742f278df3a09a46152e0944df8d3_rle_crop_4039115934_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/60e6ab64731e6bb82dfff8fb5f730399_92163275.png change filename to text .imagette287220881763583300/ imagette287220881763583300/1763583087_1056189_1395260049_e432065a3b93e28f18a12f7cdf77eb68_rle_crop_4039115907_0.png.png imagette287220881763583300/1763583087_1056189_1395260038_5ff742f278df3a09a46152e0944df8d3_rle_crop_4039115934_0.png.png imagette287220901763583300/ imagette287220911763583300/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/ce201c0c8759aa540e8bd72ef49e348f_22071282.png imagette287220881763583300 28722090 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=28722090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287220901763583300 28722091 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=28722091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287220911763583300 28722089 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=28722089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395260544: '1763583087_1056189_1395260046_825d5b2d7aab07c7de338469c68f21a1_rle_crop_4039115921_0.png', 1395260599: '1763583207_1060603_1395260537_ca4ddb9d5327aeb203409bfdb0a96c3e_rle_crop_4039116260_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/2751ff485c6fed98cf92ecb91f01e2ea_69050282.png change filename to text .imagette287220891763583300/ imagette287220891763583300/1763583207_1060603_1395260537_ca4ddb9d5327aeb203409bfdb0a96c3e_rle_crop_4039116260_0.png.png imagette287220891763583300/1763583087_1056189_1395260046_825d5b2d7aab07c7de338469c68f21a1_rle_crop_4039115921_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/4470c640bad2600e4e9d214309745425_92962233.png imagette287220891763583300 28722092 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=28722092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395260547: '1763583087_1056189_1395260038_5ff742f278df3a09a46152e0944df8d3_rle_crop_4039115928_0.png'} change filename to text .imagette287220921763583300/ imagette287220921763583300/1763583087_1056189_1395260038_5ff742f278df3a09a46152e0944df8d3_rle_crop_4039115928_0.png.png imagette287220931763583300/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/8feb08ba1dc6414c0633366153c203b2_67479963.png imagette287220921763583300 28722093 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=28722093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287220931763583300 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28722077 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28722094,28722095,28722096,28722097,28722098,28722099,28722100,28722101,28722102,28722103,28722104,28722105?tags=cartonnette,papier,environnement,autre_refus,kraft,flou,plastique,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1395260591] : ('0.03843312954862736',) no score found for photo 1395260591 We are sending mail with results at report@fotonower.com args[1395260586] : ('0.03843312954862736',) no score found for photo 1395260586 We are sending mail with results at report@fotonower.com args[1395260581] : ('0.03843312954862736',) no score found for photo 1395260581 We are sending mail with results at report@fotonower.com args[1395260576] : ('0.03843312954862736',) no score found for photo 1395260576 We are sending mail with results at report@fotonower.com args[1395260573] : ('0.03843312954862736',) no score found for photo 1395260573 We are sending mail with results at report@fotonower.com args[1395260571] : ('0.03843312954862736',) no score found for photo 1395260571 We are sending mail with results at report@fotonower.com refus_total : 0.03843312954862736 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=28722077 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_P28722077_19-11-2025_21_15_00.pdf results_Auto_P28722077_19-11-2025_21_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28722077_19-11-2025_21_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','28722077','results_Auto_P28722077_19-11-2025_21_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28722077_19-11-2025_21_15_00.pdf','pdf','','0.09','0.03843312954862736') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28722077]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] map_info['map_portfolio_photo'] : {28722077: [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571, 1395260539, 1395260537, 1395260535, 1395260533, 1395260480, 1395260476, 1395260473, 1395260472, 1395260465, 1395260409, 1395260407, 1395260226, 1395260195, 1395260057, 1395260053, 1395260049, 1395260046, 1395260038, 1395260003, 1395259108, 1395258558, 1395257984, 1395257874, 1395257871]} final : False mtd_id 4302 list_pids : [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] 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, '4080367') ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '28722077', '1395260591', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367')] time used for this insertion : 0.012829065322875977 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0452048778533936 time spend to save output : 0.01300811767578125 total time spend for step 4 : 2.058212995529175 step5:split_time_score Wed Nov 19 21:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28722077'] 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 : [('28722077',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28722077) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395260571: {'path': 'temp/1763583299_2381423_1395260571_6575750b13a432cd851a260d211193ad.jpg', 'extension': 'jpg'}, 1395260573: {'path': 'temp/1763583299_2381423_1395260573_0f539c29c20537da44d6082da864802e.jpg', 'extension': 'jpg'}, 1395260576: {'path': 'temp/1763583299_2381423_1395260576_5713d126cc9b46be1c7d6a77584106d5.jpg', 'extension': 'jpg'}, 1395260581: {'path': 'temp/1763583299_2381423_1395260581_4129801071e1bca3ef75a14375e1346b.jpg', 'extension': 'jpg'}, 1395260586: {'path': 'temp/1763583299_2381423_1395260586_ad9bb4dbf769daa10b123ff7d1034d95.jpg', 'extension': 'jpg'}, 1395260591: {'path': 'temp/1763583299_2381423_1395260591_33863032655fe0fb6e53802a01be1780.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 = 28722077; (('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 = 28722077 group by h (('21', 30),) 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=28722077 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 (28722077) 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 (28722077) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19112025 28722077 Nombre de photos uploadées : 30 / 23040 (0%) 19112025 28722077 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 19112025 28722077 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1395257874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/58fb845d88c70d63472a038c75b8fd37.jpg', 'username': None, 'uploaded_at': 1763582587, 'text': 'image_19112025_21_01_54_10137.jpg'}, {'photo_id': 1395257871, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/63c4226fa319610b3964d63be98b0400.jpg', 'username': None, 'uploaded_at': 1763582587, 'text': 'image_19112025_21_02_44_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395258558, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/80dc377b5715247468ee23c87eb074b3.jpg', 'username': None, 'uploaded_at': 1763582707, 'text': 'image_19112025_21_02_54_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395259108, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/3d60943c453b1a5d9ae30b58b666d0fb.jpg', 'username': None, 'uploaded_at': 1763582772, 'text': 'image_19112025_21_02_54_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014829635620117188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28722077, '2025-11-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2606833,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21572422981262207 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= 2606833 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28683578, 'dashboard_result_id': 17519266, '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_P28683578_19-11-2025_06_26_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28683926, 'dashboard_result_id': 17519267, '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_P28683926_19-11-2025_06_27_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28684479, 'dashboard_result_id': 17519268, '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_P28684479_19-11-2025_06_27_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28684827, 'dashboard_result_id': 17519269, '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_P28684827_19-11-2025_06_28_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28686230, 'dashboard_result_id': 17519270, '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_P28686230_19-11-2025_06_28_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28686572, 'dashboard_result_id': 17519271, '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_P28686572_19-11-2025_06_29_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28686897, 'dashboard_result_id': 17519272, '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_P28686897_19-11-2025_06_29_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28687492, 'dashboard_result_id': 17519273, '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_P28687492_19-11-2025_06_30_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28688047, 'dashboard_result_id': 17519274, '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_P28688047_19-11-2025_06_31_16.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28688672, 'dashboard_result_id': 17519275, '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_P28688672_19-11-2025_06_31_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28689189, 'dashboard_result_id': 17519276, '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_P28689189_19-11-2025_06_32_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28689419, 'dashboard_result_id': 17519277, '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_P28689419_19-11-2025_06_32_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28689948, 'dashboard_result_id': 17519278, '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_P28689948_19-11-2025_06_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28690373, 'dashboard_result_id': 17519279, '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_P28690373_19-11-2025_06_34_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28690950, 'dashboard_result_id': 17519280, '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_P28690950_19-11-2025_06_34_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28691357, 'dashboard_result_id': 17519281, '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_P28691357_19-11-2025_06_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28691358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691369, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28692204, 'dashboard_result_id': 17519283, '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_P28692204_19-11-2025_06_36_15.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692267, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28692570, 'dashboard_result_id': 17519284, '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_P28692570_19-11-2025_08_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692587, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28692799, 'dashboard_result_id': 17519285, '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_P28692799_19-11-2025_08_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692820, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28693135, 'dashboard_result_id': 17519286, '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_P28693135_19-11-2025_08_01_16.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693155, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28693616, 'dashboard_result_id': 17519287, '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_P28693616_19-11-2025_08_01_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693649, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28694053, 'dashboard_result_id': 17519288, '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_P28694053_19-11-2025_06_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694074, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28694487, 'dashboard_result_id': 17519289, '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_P28694487_19-11-2025_06_49_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694505, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28694890, 'dashboard_result_id': 17519290, '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_P28694890_19-11-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694962, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28695395, 'dashboard_result_id': 17519291, '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_P28695395_19-11-2025_07_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28695423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28695424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28695425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28695426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28695427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28695428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28695429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28695430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28695431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28695432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28695433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28695434, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28695989, 'dashboard_result_id': 17519292, '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_P28695989_19-11-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28696003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696014, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28696355, 'dashboard_result_id': 17519293, '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_P28696355_19-11-2025_07_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28696381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696385, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28696998, 'dashboard_result_id': 17519294, '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_P28696998_19-11-2025_08_03_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697017, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28697320, 'dashboard_result_id': 17519295, '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_P28697320_19-11-2025_08_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697361, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28697891, 'dashboard_result_id': 17519296, '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_P28697891_19-11-2025_08_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28697905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697916, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28698408, 'dashboard_result_id': 17519297, '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_P28698408_19-11-2025_08_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28698445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28698446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28698447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28698448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28698449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28698450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28698451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28698452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28698453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28698454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28698455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28698456, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28699027, 'dashboard_result_id': 17519298, '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_P28699027_19-11-2025_09_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28699081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28699082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28699083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28699084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28699085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28699086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28699087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28699088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28699089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28699090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28699091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28699092, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28700474, 'dashboard_result_id': 17519299, '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_P28700474_19-11-2025_09_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700503, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28700897, 'dashboard_result_id': 17519300, '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_P28700897_19-11-2025_10_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700916, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28701311, 'dashboard_result_id': 17519301, '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_P28701311_19-11-2025_10_17_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701368, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28701886, 'dashboard_result_id': 17519302, '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_P28701886_19-11-2025_10_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701901, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28702406, 'dashboard_result_id': 17519303, '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_P28702406_19-11-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28702442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702453, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28702811, 'dashboard_result_id': 17519304, '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_P28702811_19-11-2025_11_05_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28702827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702836, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28703228, 'dashboard_result_id': 17519305, '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_P28703228_19-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703249, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28703828, 'dashboard_result_id': 17519306, '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_P28703828_19-11-2025_11_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703844, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28704241, 'dashboard_result_id': 17519307, '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_P28704241_19-11-2025_11_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704288, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28704820, 'dashboard_result_id': 17519308, '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_P28704820_19-11-2025_12_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704857, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28705307, 'dashboard_result_id': 17519309, '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_P28705307_19-11-2025_15_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28705411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28705412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28705413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28705414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28705415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28705416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28705417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28705418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28705419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28705420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28705421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28705422, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28707503, 'dashboard_result_id': 17519310, '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_P28707503_19-11-2025_13_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28707505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707516, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28707688, 'dashboard_result_id': 17519311, '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_P28707688_19-11-2025_13_58_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28707692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707701, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28707991, 'dashboard_result_id': 17519312, '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_P28707991_19-11-2025_14_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708035, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28708539, 'dashboard_result_id': 17519313, '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_P28708539_19-11-2025_14_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708560, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28709004, 'dashboard_result_id': 17519314, '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_P28709004_19-11-2025_14_47_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709055, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28709432, 'dashboard_result_id': 17519315, '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_P28709432_19-11-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709447, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28709884, 'dashboard_result_id': 17519316, '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_P28709884_19-11-2025_15_53_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709934, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28710804, 'dashboard_result_id': 17519317, '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_P28710804_19-11-2025_15_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28710811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28710812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28710813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28710814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28710815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28710816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28710817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28710818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28710819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28710820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28710821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28710822, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28710711, 'dashboard_result_id': 17519318, '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_P28710711_19-11-2025_15_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28710725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28710726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28710727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28710728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28710729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28710730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28710731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28710732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28710733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28710734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28710735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28710736, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28711154, 'dashboard_result_id': 17519319, '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_P28711154_19-11-2025_16_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711212, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28711592, 'dashboard_result_id': 17519320, '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_P28711592_19-11-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711645, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28712304, 'dashboard_result_id': 17519321, '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_P28712304_19-11-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712347, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28712918, 'dashboard_result_id': 17519322, '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_P28712918_19-11-2025_16_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712970, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28713540, 'dashboard_result_id': 17519323, '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_P28713540_19-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28713545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28713546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28713547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28713548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28713549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28713550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28713551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28713552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28713553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28713554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28713555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28713556, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28714020, 'dashboard_result_id': 17519324, '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_P28714020_19-11-2025_17_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714075, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28714460, 'dashboard_result_id': 17519325, '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_P28714460_19-11-2025_18_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714475, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28715740, 'dashboard_result_id': 17519326, '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_P28715740_19-11-2025_18_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28715742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28715743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28715744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28715745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28715746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28715747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28715748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28715749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28715750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28715751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28715752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28715753, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28716256, 'dashboard_result_id': 17519327, '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_P28716256_19-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28716270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716272, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28716650, 'dashboard_result_id': 17519328, '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_P28716650_19-11-2025_18_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28716670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716681, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28717157, 'dashboard_result_id': 17519329, '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_P28717157_19-11-2025_19_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717177, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28717621, 'dashboard_result_id': 17519330, '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_P28717621_19-11-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717702, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28718130, 'dashboard_result_id': 17519331, '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_P28718130_19-11-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718166, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28718591, 'dashboard_result_id': 17519332, '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_P28718591_19-11-2025_19_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718640, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28719215, 'dashboard_result_id': 17519333, '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_P28719215_19-11-2025_20_04_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28719233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719244, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28719601, 'dashboard_result_id': 17519334, '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_P28719601_19-11-2025_20_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28719645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719656, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28720299, 'dashboard_result_id': 17519335, '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_P28720299_19-11-2025_20_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720318, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28720850, 'dashboard_result_id': 17519336, '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_P28720850_19-11-2025_21_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720884, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2620236, 'mtr_portfolio_id': 28722077, 'dashboard_result_id': 17519337, '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_P28722077_19-11-2025_21_10_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28722082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28722083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28722084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28722085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28722086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28722087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28722088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28722089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28722090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28722091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28722092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28722093, '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 = 28683578 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': 4073655, 'mtr_portfolio_id': 28683578, 'created_at': datetime.datetime(2025, 11, 19, 6, 26, 7), 'result': '0.05411616612389042', 'result_long': None, 'result_double': None}] Qualite : 0.05411616612389042 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28683578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_06_26_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28683578 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_P28683578_19-11-2025_06_26_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, 'pht': 3726}}" where mtr_portfolio_id = 28683578 and dashboard_run_id = 2620236 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`=28683578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519266, 0.05411616612389042, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_06_26_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, '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 = 28683926 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': 4073656, 'mtr_portfolio_id': 28683926, 'created_at': datetime.datetime(2025, 11, 19, 6, 26, 58), 'result': '0.05570862078003001', 'result_long': None, 'result_double': None}] Qualite : 0.05570862078003001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28683926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683926_19-11-2025_06_27_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28683926 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_P28683926_19-11-2025_06_27_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, 'pht': 3726}}" where mtr_portfolio_id = 28683926 and dashboard_run_id = 2620236 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`=28683926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519267, 0.05570862078003001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683926_19-11-2025_06_27_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, '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 = 28684479 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': 4073657, 'mtr_portfolio_id': 28684479, 'created_at': datetime.datetime(2025, 11, 19, 6, 27, 27), 'result': '0.052639594604641037', 'result_long': None, 'result_double': None}] Qualite : 0.052639594604641037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28684479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684479_19-11-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28684479 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_P28684479_19-11-2025_06_27_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, 'pht': 3726}}" where mtr_portfolio_id = 28684479 and dashboard_run_id = 2620236 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`=28684479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519268, 0.052639594604641037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684479_19-11-2025_06_27_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, '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 = 28684827 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': 4073658, 'mtr_portfolio_id': 28684827, 'created_at': datetime.datetime(2025, 11, 19, 6, 27, 58), 'result': '0.04084224824405481', 'result_long': None, 'result_double': None}] Qualite : 0.04084224824405481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28684827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684827_19-11-2025_06_28_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28684827 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_P28684827_19-11-2025_06_28_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, 'pht': 3726}}" where mtr_portfolio_id = 28684827 and dashboard_run_id = 2620236 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`=28684827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519269, 0.04084224824405481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684827_19-11-2025_06_28_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, '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 = 28686230 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': 4073659, 'mtr_portfolio_id': 28686230, 'created_at': datetime.datetime(2025, 11, 19, 6, 28, 28), 'result': '0.03453274511160013', 'result_long': None, 'result_double': None}] Qualite : 0.03453274511160013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686230_19-11-2025_06_28_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686230 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_P28686230_19-11-2025_06_28_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, 'pht': 3726}}" where mtr_portfolio_id = 28686230 and dashboard_run_id = 2620236 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`=28686230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519270, 0.03453274511160013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686230_19-11-2025_06_28_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, '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 = 28686572 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': 4073660, 'mtr_portfolio_id': 28686572, 'created_at': datetime.datetime(2025, 11, 19, 6, 29, 29), 'result': '0.03677713007614136', 'result_long': None, 'result_double': None}] Qualite : 0.03677713007614136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686572_19-11-2025_06_29_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686572 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_P28686572_19-11-2025_06_29_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, 'pht': 3726}}" where mtr_portfolio_id = 28686572 and dashboard_run_id = 2620236 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`=28686572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519271, 0.03677713007614136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686572_19-11-2025_06_29_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, '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 = 28686897 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': 4073661, 'mtr_portfolio_id': 28686897, 'created_at': datetime.datetime(2025, 11, 19, 6, 29, 56), 'result': '0.055724240582556706', 'result_long': None, 'result_double': None}] Qualite : 0.055724240582556706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686897_19-11-2025_06_29_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686897 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_P28686897_19-11-2025_06_29_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, 'pht': 3726}}" where mtr_portfolio_id = 28686897 and dashboard_run_id = 2620236 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`=28686897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519272, 0.055724240582556706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686897_19-11-2025_06_29_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, '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 = 28687492 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': 4073662, 'mtr_portfolio_id': 28687492, 'created_at': datetime.datetime(2025, 11, 19, 6, 30, 30), 'result': '0.047273379606334834', 'result_long': None, 'result_double': None}] Qualite : 0.047273379606334834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28687492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28687492_19-11-2025_06_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28687492 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_P28687492_19-11-2025_06_30_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, 'pht': 3726}}" where mtr_portfolio_id = 28687492 and dashboard_run_id = 2620236 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`=28687492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519273, 0.047273379606334834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28687492_19-11-2025_06_30_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, '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 = 28688047 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': 4073663, 'mtr_portfolio_id': 28688047, 'created_at': datetime.datetime(2025, 11, 19, 6, 31, 13), 'result': '0.035716119307620545', 'result_long': None, 'result_double': None}] Qualite : 0.035716119307620545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28688047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688047_19-11-2025_06_31_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28688047 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_P28688047_19-11-2025_06_31_16.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, 'pht': 3726}}" where mtr_portfolio_id = 28688047 and dashboard_run_id = 2620236 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`=28688047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519274, 0.035716119307620545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688047_19-11-2025_06_31_16.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, '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 = 28688672 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': 4073664, 'mtr_portfolio_id': 28688672, 'created_at': datetime.datetime(2025, 11, 19, 6, 31, 31), 'result': '0.06380294547653757', 'result_long': None, 'result_double': None}] Qualite : 0.06380294547653757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28688672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688672_19-11-2025_06_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28688672 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_P28688672_19-11-2025_06_31_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, 'pht': 3726}}" where mtr_portfolio_id = 28688672 and dashboard_run_id = 2620236 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`=28688672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519275, 0.06380294547653757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688672_19-11-2025_06_31_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, '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 = 28689189 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': 4073665, 'mtr_portfolio_id': 28689189, 'created_at': datetime.datetime(2025, 11, 19, 6, 32), 'result': '0.040524935817643874', 'result_long': None, 'result_double': None}] Qualite : 0.040524935817643874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689189_19-11-2025_06_32_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689189 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_P28689189_19-11-2025_06_32_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, 'pht': 3726}}" where mtr_portfolio_id = 28689189 and dashboard_run_id = 2620236 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`=28689189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519276, 0.040524935817643874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689189_19-11-2025_06_32_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, '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 = 28689419 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': 4073666, 'mtr_portfolio_id': 28689419, 'created_at': datetime.datetime(2025, 11, 19, 6, 32, 30), 'result': '0.06120917962167015', 'result_long': None, 'result_double': None}] Qualite : 0.06120917962167015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689419_19-11-2025_06_32_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689419 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_P28689419_19-11-2025_06_32_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, 'pht': 3726}}" where mtr_portfolio_id = 28689419 and dashboard_run_id = 2620236 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`=28689419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519277, 0.06120917962167015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689419_19-11-2025_06_32_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, '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 = 28689948 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': 4073667, 'mtr_portfolio_id': 28689948, 'created_at': datetime.datetime(2025, 11, 19, 6, 33, 28), 'result': '0.035470490798146695', 'result_long': None, 'result_double': None}] Qualite : 0.035470490798146695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689948_19-11-2025_06_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689948 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_P28689948_19-11-2025_06_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, 'pht': 3726}}" where mtr_portfolio_id = 28689948 and dashboard_run_id = 2620236 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`=28689948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519278, 0.035470490798146695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689948_19-11-2025_06_33_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, '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 = 28690373 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': 4073668, 'mtr_portfolio_id': 28690373, 'created_at': datetime.datetime(2025, 11, 19, 6, 33, 59), 'result': '0.04552436819199868', 'result_long': None, 'result_double': None}] Qualite : 0.04552436819199868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28690373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690373_19-11-2025_06_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28690373 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_P28690373_19-11-2025_06_34_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, 'pht': 3726}}" where mtr_portfolio_id = 28690373 and dashboard_run_id = 2620236 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`=28690373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519279, 0.04552436819199868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690373_19-11-2025_06_34_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, '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 = 28690950 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': 4073669, 'mtr_portfolio_id': 28690950, 'created_at': datetime.datetime(2025, 11, 19, 6, 34, 30), 'result': '0.05381331789013537', 'result_long': None, 'result_double': None}] Qualite : 0.05381331789013537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28690950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_06_34_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28690950 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_P28690950_19-11-2025_06_34_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, 'pht': 3726}}" where mtr_portfolio_id = 28690950 and dashboard_run_id = 2620236 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`=28690950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519280, 0.05381331789013537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_06_34_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, '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 = 28691357 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28691357 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28691357 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28691357 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28691357 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4073670, 'mtr_portfolio_id': 28691357, 'created_at': datetime.datetime(2025, 11, 19, 6, 36), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28691357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28691357_19-11-2025_06_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28691357 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_P28691357_19-11-2025_06_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28691358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691369, 'pht': 3726}}" where mtr_portfolio_id = 28691357 and dashboard_run_id = 2620236 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`=28691357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519281, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28691357_19-11-2025_06_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28691358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691369, '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 = 28692204 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': 4073671, 'mtr_portfolio_id': 28692204, 'created_at': datetime.datetime(2025, 11, 19, 6, 36, 12), 'result': '0.041792092519177086', 'result_long': None, 'result_double': None}] Qualite : 0.041792092519177086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28692204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692204_19-11-2025_06_36_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28692204 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_P28692204_19-11-2025_06_36_15.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692267, 'pht': 3726}}" where mtr_portfolio_id = 28692204 and dashboard_run_id = 2620236 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`=28692204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519283, 0.041792092519177086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692204_19-11-2025_06_36_15.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692267, '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 = 28692570 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': 4073672, 'mtr_portfolio_id': 28692570, 'created_at': datetime.datetime(2025, 11, 19, 8, 0, 58), 'result': '0.052689289568862846', 'result_long': None, 'result_double': None}] Qualite : 0.052689289568862846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28692570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692570_19-11-2025_08_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28692570 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_P28692570_19-11-2025_08_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692587, 'pht': 3726}}" where mtr_portfolio_id = 28692570 and dashboard_run_id = 2620236 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`=28692570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519284, 0.052689289568862846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692570_19-11-2025_08_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692587, '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 = 28692799 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': 4073560, 'mtr_portfolio_id': 28692799, 'created_at': datetime.datetime(2025, 11, 19, 8, 0, 36), 'result': '0.0472062209496355', 'result_long': None, 'result_double': None}] Qualite : 0.0472062209496355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28692799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692799_19-11-2025_08_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28692799 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_P28692799_19-11-2025_08_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692820, 'pht': 3726}}" where mtr_portfolio_id = 28692799 and dashboard_run_id = 2620236 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`=28692799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519285, 0.0472062209496355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28692799_19-11-2025_08_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28692809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28692810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28692811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28692812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28692813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28692814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28692815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28692816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28692817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28692818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28692819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28692820, '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 = 28693135 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': 4073790, 'mtr_portfolio_id': 28693135, 'created_at': datetime.datetime(2025, 11, 19, 8, 1, 13), 'result': '0.03999476883761795', 'result_long': None, 'result_double': None}] Qualite : 0.03999476883761795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28693135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28693135_19-11-2025_08_01_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28693135 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_P28693135_19-11-2025_08_01_16.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693155, 'pht': 3726}}" where mtr_portfolio_id = 28693135 and dashboard_run_id = 2620236 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`=28693135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519286, 0.03999476883761795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28693135_19-11-2025_08_01_16.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693155, '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 = 28693616 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': 4073958, 'mtr_portfolio_id': 28693616, 'created_at': datetime.datetime(2025, 11, 19, 8, 1, 30), 'result': '0.03498090554911402', 'result_long': None, 'result_double': None}] Qualite : 0.03498090554911402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28693616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28693616_19-11-2025_08_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28693616 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_P28693616_19-11-2025_08_01_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693649, 'pht': 3726}}" where mtr_portfolio_id = 28693616 and dashboard_run_id = 2620236 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`=28693616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519287, 0.03498090554911402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28693616_19-11-2025_08_01_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28693638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28693639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28693640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28693641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28693642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28693643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28693644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28693645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28693646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28693647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28693648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28693649, '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 = 28694053 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': 4074128, 'mtr_portfolio_id': 28694053, 'created_at': datetime.datetime(2025, 11, 19, 6, 49, 27), 'result': '0.03217797938185774', 'result_long': None, 'result_double': None}] Qualite : 0.03217797938185774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28694053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694053_19-11-2025_06_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28694053 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_P28694053_19-11-2025_06_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694074, 'pht': 3726}}" where mtr_portfolio_id = 28694053 and dashboard_run_id = 2620236 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`=28694053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519288, 0.03217797938185774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694053_19-11-2025_06_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694074, '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 = 28694487 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': 4074320, 'mtr_portfolio_id': 28694487, 'created_at': datetime.datetime(2025, 11, 19, 6, 49, 27), 'result': '0.02919639453872233', 'result_long': None, 'result_double': None}] Qualite : 0.02919639453872233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28694487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694487_19-11-2025_06_49_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28694487 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_P28694487_19-11-2025_06_49_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694505, 'pht': 3726}}" where mtr_portfolio_id = 28694487 and dashboard_run_id = 2620236 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`=28694487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519289, 0.02919639453872233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694487_19-11-2025_06_49_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694505, '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 = 28694890 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': 4074541, 'mtr_portfolio_id': 28694890, 'created_at': datetime.datetime(2025, 11, 19, 7, 2, 59), 'result': '0.029548120890226678', 'result_long': None, 'result_double': None}] Qualite : 0.029548120890226678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28694890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694890_19-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28694890 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_P28694890_19-11-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694962, 'pht': 3726}}" where mtr_portfolio_id = 28694890 and dashboard_run_id = 2620236 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`=28694890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519290, 0.029548120890226678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28694890_19-11-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28694951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28694952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28694953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28694954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28694955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28694956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28694957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28694958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28694959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28694960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28694961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28694962, '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 = 28695395 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': 4074748, 'mtr_portfolio_id': 28695395, 'created_at': datetime.datetime(2025, 11, 19, 7, 19), 'result': '0.05445721536142513', 'result_long': None, 'result_double': None}] Qualite : 0.05445721536142513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28695395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28695395_19-11-2025_07_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28695395 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_P28695395_19-11-2025_07_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28695423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28695424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28695425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28695426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28695427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28695428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28695429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28695430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28695431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28695432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28695433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28695434, 'pht': 3726}}" where mtr_portfolio_id = 28695395 and dashboard_run_id = 2620236 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`=28695395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519291, 0.05445721536142513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28695395_19-11-2025_07_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28695423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28695424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28695425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28695426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28695427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28695428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28695429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28695430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28695431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28695432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28695433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28695434, '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 = 28695989 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': 4074919, 'mtr_portfolio_id': 28695989, 'created_at': datetime.datetime(2025, 11, 19, 7, 32, 59), 'result': '0.018428508195057404', 'result_long': None, 'result_double': None}] Qualite : 0.018428508195057404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28695989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28695989_19-11-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28695989 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_P28695989_19-11-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28696003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696014, 'pht': 3726}}" where mtr_portfolio_id = 28695989 and dashboard_run_id = 2620236 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`=28695989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519292, 0.018428508195057404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28695989_19-11-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28696003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696014, '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 = 28696355 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': 4075085, 'mtr_portfolio_id': 28696355, 'created_at': datetime.datetime(2025, 11, 19, 7, 48, 59), 'result': '0.031916088162949115', 'result_long': None, 'result_double': None}] Qualite : 0.031916088162949115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28696355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28696355_19-11-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28696355 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_P28696355_19-11-2025_07_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28696381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696385, 'pht': 3726}}" where mtr_portfolio_id = 28696355 and dashboard_run_id = 2620236 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`=28696355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519293, 0.031916088162949115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28696355_19-11-2025_07_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28696374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28696375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28696376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28696377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28696378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28696379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28696380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28696381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28696382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28696383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28696384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28696385, '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 = 28696998 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': 4075300, 'mtr_portfolio_id': 28696998, 'created_at': datetime.datetime(2025, 11, 19, 8, 3, 31), 'result': '0.05676584748173952', 'result_long': None, 'result_double': None}] Qualite : 0.05676584748173952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28696998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28696998_19-11-2025_08_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28696998 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_P28696998_19-11-2025_08_03_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697017, 'pht': 3726}}" where mtr_portfolio_id = 28696998 and dashboard_run_id = 2620236 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`=28696998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519294, 0.05676584748173952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28696998_19-11-2025_08_03_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697017, '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 = 28697320 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': 4075469, 'mtr_portfolio_id': 28697320, 'created_at': datetime.datetime(2025, 11, 19, 8, 18, 56), 'result': '0.06509425802347112', 'result_long': None, 'result_double': None}] Qualite : 0.06509425802347112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28697320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28697320_19-11-2025_08_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28697320 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_P28697320_19-11-2025_08_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697361, 'pht': 3726}}" where mtr_portfolio_id = 28697320 and dashboard_run_id = 2620236 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`=28697320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519295, 0.06509425802347112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28697320_19-11-2025_08_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697361, '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 = 28697891 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': 4075628, 'mtr_portfolio_id': 28697891, 'created_at': datetime.datetime(2025, 11, 19, 8, 32, 56), 'result': '0.1062905075850688', 'result_long': None, 'result_double': None}] Qualite : 0.1062905075850688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28697891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28697891_19-11-2025_08_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28697891 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_P28697891_19-11-2025_08_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28697905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697916, 'pht': 3726}}" where mtr_portfolio_id = 28697891 and dashboard_run_id = 2620236 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`=28697891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519296, 0.1062905075850688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28697891_19-11-2025_08_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28697905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28697906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28697907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28697908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28697909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28697910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28697911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28697912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28697913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28697914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28697915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28697916, '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 = 28698408 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': 4075814, 'mtr_portfolio_id': 28698408, 'created_at': datetime.datetime(2025, 11, 19, 8, 48, 57), 'result': '0.03138715092996679', 'result_long': None, 'result_double': None}] Qualite : 0.03138715092996679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28698408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28698408_19-11-2025_08_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28698408 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_P28698408_19-11-2025_08_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28698445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28698446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28698447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28698448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28698449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28698450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28698451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28698452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28698453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28698454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28698455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28698456, 'pht': 3726}}" where mtr_portfolio_id = 28698408 and dashboard_run_id = 2620236 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`=28698408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519297, 0.03138715092996679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28698408_19-11-2025_08_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28698445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28698446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28698447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28698448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28698449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28698450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28698451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28698452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28698453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28698454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28698455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28698456, '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 = 28699027 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': 4076016, 'mtr_portfolio_id': 28699027, 'created_at': datetime.datetime(2025, 11, 19, 9, 2, 57), 'result': '0.04483087392167628', 'result_long': None, 'result_double': None}] Qualite : 0.04483087392167628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28699027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28699027_19-11-2025_09_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28699027 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_P28699027_19-11-2025_09_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28699081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28699082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28699083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28699084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28699085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28699086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28699087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28699088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28699089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28699090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28699091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28699092, 'pht': 3726}}" where mtr_portfolio_id = 28699027 and dashboard_run_id = 2620236 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`=28699027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519298, 0.04483087392167628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28699027_19-11-2025_09_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28699081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28699082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28699083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28699084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28699085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28699086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28699087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28699088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28699089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28699090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28699091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28699092, '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 = 28700474 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': 4076398, 'mtr_portfolio_id': 28700474, 'created_at': datetime.datetime(2025, 11, 19, 9, 49), 'result': '0.03480189050594383', 'result_long': None, 'result_double': None}] Qualite : 0.03480189050594383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28700474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28700474_19-11-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28700474 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_P28700474_19-11-2025_09_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700503, 'pht': 3726}}" where mtr_portfolio_id = 28700474 and dashboard_run_id = 2620236 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`=28700474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519299, 0.03480189050594383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28700474_19-11-2025_09_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700503, '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 = 28700897 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': 4076464, 'mtr_portfolio_id': 28700897, 'created_at': datetime.datetime(2025, 11, 19, 10, 6, 58), 'result': '0.048637027814258466', 'result_long': None, 'result_double': None}] Qualite : 0.048637027814258466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28700897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28700897_19-11-2025_10_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28700897 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_P28700897_19-11-2025_10_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700916, 'pht': 3726}}" where mtr_portfolio_id = 28700897 and dashboard_run_id = 2620236 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`=28700897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519300, 0.048637027814258466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28700897_19-11-2025_10_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28700905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28700906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28700907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28700908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28700909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28700910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28700911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28700912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28700913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28700914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28700915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28700916, '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 = 28701311 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': 4076559, 'mtr_portfolio_id': 28701311, 'created_at': datetime.datetime(2025, 11, 19, 10, 17, 29), 'result': '0.042788696560790485', 'result_long': None, 'result_double': None}] Qualite : 0.042788696560790485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28701311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28701311_19-11-2025_10_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28701311 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_P28701311_19-11-2025_10_17_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701368, 'pht': 3726}}" where mtr_portfolio_id = 28701311 and dashboard_run_id = 2620236 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`=28701311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519301, 0.042788696560790485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28701311_19-11-2025_10_17_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701368, '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 = 28701886 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': 4076628, 'mtr_portfolio_id': 28701886, 'created_at': datetime.datetime(2025, 11, 19, 10, 32, 57), 'result': '0.04778767559484316', 'result_long': None, 'result_double': None}] Qualite : 0.04778767559484316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28701886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28701886_19-11-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28701886 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_P28701886_19-11-2025_10_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701901, 'pht': 3726}}" where mtr_portfolio_id = 28701886 and dashboard_run_id = 2620236 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`=28701886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519302, 0.04778767559484316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28701886_19-11-2025_10_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28701890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28701891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28701892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28701893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28701894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28701895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28701896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28701897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28701898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28701899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28701900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28701901, '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 = 28702406 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': 4076729, 'mtr_portfolio_id': 28702406, 'created_at': datetime.datetime(2025, 11, 19, 10, 46, 59), 'result': '0.04094389880536468', 'result_long': None, 'result_double': None}] Qualite : 0.04094389880536468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28702406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28702406_19-11-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28702406 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_P28702406_19-11-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28702442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702453, 'pht': 3726}}" where mtr_portfolio_id = 28702406 and dashboard_run_id = 2620236 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`=28702406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519303, 0.04094389880536468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28702406_19-11-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28702442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702453, '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 = 28702811 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': 4076792, 'mtr_portfolio_id': 28702811, 'created_at': datetime.datetime(2025, 11, 19, 11, 5, 28), 'result': '0.0451650941151343', 'result_long': None, 'result_double': None}] Qualite : 0.0451650941151343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28702811 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28702811_19-11-2025_11_05_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28702811 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_P28702811_19-11-2025_11_05_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28702827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702836, 'pht': 3726}}" where mtr_portfolio_id = 28702811 and dashboard_run_id = 2620236 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`=28702811 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519304, 0.0451650941151343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28702811_19-11-2025_11_05_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28702825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28702826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28702827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28702828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28702829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28702830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28702831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28702832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28702833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28702834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28702835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28702836, '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 = 28703228 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': 4076873, 'mtr_portfolio_id': 28703228, 'created_at': datetime.datetime(2025, 11, 19, 11, 16, 58), 'result': '0.03303376995677109', 'result_long': None, 'result_double': None}] Qualite : 0.03303376995677109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28703228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28703228_19-11-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28703228 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_P28703228_19-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703249, 'pht': 3726}}" where mtr_portfolio_id = 28703228 and dashboard_run_id = 2620236 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`=28703228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519305, 0.03303376995677109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28703228_19-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703249, '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 = 28703828 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': 4077022, 'mtr_portfolio_id': 28703828, 'created_at': datetime.datetime(2025, 11, 19, 11, 33), 'result': '0.03231281495532301', 'result_long': None, 'result_double': None}] Qualite : 0.03231281495532301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28703828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28703828_19-11-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28703828 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_P28703828_19-11-2025_11_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703844, 'pht': 3726}}" where mtr_portfolio_id = 28703828 and dashboard_run_id = 2620236 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`=28703828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519306, 0.03231281495532301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28703828_19-11-2025_11_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28703833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28703834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28703835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28703836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28703837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28703838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28703839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28703840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28703841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28703842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28703843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28703844, '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 = 28704241 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': 4077082, 'mtr_portfolio_id': 28704241, 'created_at': datetime.datetime(2025, 11, 19, 11, 46, 57), 'result': '0.02374708126622929', 'result_long': None, 'result_double': None}] Qualite : 0.02374708126622929 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28704241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28704241_19-11-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28704241 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_P28704241_19-11-2025_11_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704288, 'pht': 3726}}" where mtr_portfolio_id = 28704241 and dashboard_run_id = 2620236 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`=28704241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519307, 0.02374708126622929, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28704241_19-11-2025_11_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704288, '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 = 28704820 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': 4077153, 'mtr_portfolio_id': 28704820, 'created_at': datetime.datetime(2025, 11, 19, 12, 4, 59), 'result': '0.013040866320094045', 'result_long': None, 'result_double': None}] Qualite : 0.013040866320094045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28704820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28704820_19-11-2025_12_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28704820 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_P28704820_19-11-2025_12_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704857, 'pht': 3726}}" where mtr_portfolio_id = 28704820 and dashboard_run_id = 2620236 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`=28704820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519308, 0.013040866320094045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28704820_19-11-2025_12_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28704846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28704847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28704848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28704849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28704850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28704851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28704852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28704853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28704854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28704855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28704856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28704857, '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 = 28705307 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': 4077251, 'mtr_portfolio_id': 28705307, 'created_at': datetime.datetime(2025, 11, 19, 15, 0, 32), 'result': '0.040502024541195725', 'result_long': None, 'result_double': None}] Qualite : 0.040502024541195725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28705307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28705307_19-11-2025_15_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28705307 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_P28705307_19-11-2025_15_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28705411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28705412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28705413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28705414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28705415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28705416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28705417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28705418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28705419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28705420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28705421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28705422, 'pht': 3726}}" where mtr_portfolio_id = 28705307 and dashboard_run_id = 2620236 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`=28705307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519309, 0.040502024541195725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28705307_19-11-2025_15_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28705411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28705412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28705413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28705414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28705415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28705416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28705417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28705418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28705419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28705420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28705421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28705422, '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 = 28707503 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': 4077524, 'mtr_portfolio_id': 28707503, 'created_at': datetime.datetime(2025, 11, 19, 13, 46, 30), 'result': '0.04796886669800561', 'result_long': None, 'result_double': None}] Qualite : 0.04796886669800561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28707503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707503_19-11-2025_13_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28707503 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_P28707503_19-11-2025_13_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28707505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707516, 'pht': 3726}}" where mtr_portfolio_id = 28707503 and dashboard_run_id = 2620236 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`=28707503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519310, 0.04796886669800561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707503_19-11-2025_13_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28707505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707516, '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 = 28707688 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': 4077539, 'mtr_portfolio_id': 28707688, 'created_at': datetime.datetime(2025, 11, 19, 13, 58, 29), 'result': '0.08095723428174985', 'result_long': None, 'result_double': None}] Qualite : 0.08095723428174985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28707688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707688_19-11-2025_13_58_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28707688 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_P28707688_19-11-2025_13_58_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28707692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707701, 'pht': 3726}}" where mtr_portfolio_id = 28707688 and dashboard_run_id = 2620236 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`=28707688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519311, 0.08095723428174985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707688_19-11-2025_13_58_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28707690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28707691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28707692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28707693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28707694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28707695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28707696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28707697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28707698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28707699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28707700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28707701, '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 = 28707991 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': 4077595, 'mtr_portfolio_id': 28707991, 'created_at': datetime.datetime(2025, 11, 19, 14, 18, 56), 'result': '0.033091222886077375', 'result_long': None, 'result_double': None}] Qualite : 0.033091222886077375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28707991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707991_19-11-2025_14_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28707991 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_P28707991_19-11-2025_14_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708035, 'pht': 3726}}" where mtr_portfolio_id = 28707991 and dashboard_run_id = 2620236 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`=28707991 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519312, 0.033091222886077375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28707991_19-11-2025_14_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708035, '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 = 28708539 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': 4077681, 'mtr_portfolio_id': 28708539, 'created_at': datetime.datetime(2025, 11, 19, 14, 35), 'result': '0.07096886112195826', 'result_long': None, 'result_double': None}] Qualite : 0.07096886112195826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28708539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28708539_19-11-2025_14_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28708539 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_P28708539_19-11-2025_14_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708560, 'pht': 3726}}" where mtr_portfolio_id = 28708539 and dashboard_run_id = 2620236 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`=28708539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519313, 0.07096886112195826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28708539_19-11-2025_14_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28708549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28708550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28708551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28708552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28708553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28708554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28708555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28708556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28708557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28708558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28708559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28708560, '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 = 28709004 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': 4077741, 'mtr_portfolio_id': 28709004, 'created_at': datetime.datetime(2025, 11, 19, 14, 47, 29), 'result': '0.0401570525732763', 'result_long': None, 'result_double': None}] Qualite : 0.0401570525732763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28709004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709004_19-11-2025_14_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28709004 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_P28709004_19-11-2025_14_47_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709055, 'pht': 3726}}" where mtr_portfolio_id = 28709004 and dashboard_run_id = 2620236 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`=28709004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519314, 0.0401570525732763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709004_19-11-2025_14_47_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709055, '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 = 28709432 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': 4077820, 'mtr_portfolio_id': 28709432, 'created_at': datetime.datetime(2025, 11, 19, 15, 2, 58), 'result': '0.03488139634041599', 'result_long': None, 'result_double': None}] Qualite : 0.03488139634041599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28709432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709432_19-11-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28709432 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_P28709432_19-11-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709447, 'pht': 3726}}" where mtr_portfolio_id = 28709432 and dashboard_run_id = 2620236 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`=28709432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519315, 0.03488139634041599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709432_19-11-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709447, '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 = 28709884 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': 4077897, 'mtr_portfolio_id': 28709884, 'created_at': datetime.datetime(2025, 11, 19, 15, 53), 'result': '0.04827963928674453', 'result_long': None, 'result_double': None}] Qualite : 0.04827963928674453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28709884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709884_19-11-2025_15_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28709884 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_P28709884_19-11-2025_15_53_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709934, 'pht': 3726}}" where mtr_portfolio_id = 28709884 and dashboard_run_id = 2620236 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`=28709884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519316, 0.04827963928674453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28709884_19-11-2025_15_53_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28709922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28709923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28709924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28709925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28709926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28709927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28709929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28709930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28709931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28709932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28709933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28709934, '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 = 28710804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28710804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28710804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28710804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28710804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28710804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28710804_19-11-2025_15_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28710804 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_P28710804_19-11-2025_15_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28710811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28710812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28710813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28710814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28710815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28710816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28710817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28710818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28710819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28710820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28710821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28710822, 'pht': 3726}}" where mtr_portfolio_id = 28710804 and dashboard_run_id = 2620236 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 = 28710711 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': 4077970, 'mtr_portfolio_id': 28710711, 'created_at': datetime.datetime(2025, 11, 19, 15, 49, 27), 'result': '0.0335074275899768', 'result_long': None, 'result_double': None}] Qualite : 0.0335074275899768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28710711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28710711_19-11-2025_15_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28710711 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_P28710711_19-11-2025_15_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28710725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28710726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28710727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28710728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28710729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28710730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28710731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28710732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28710733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28710734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28710735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28710736, 'pht': 3726}}" where mtr_portfolio_id = 28710711 and dashboard_run_id = 2620236 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`=28710711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519318, 0.0335074275899768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28710711_19-11-2025_15_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28710725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28710726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28710727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28710728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28710729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28710730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28710731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28710732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28710733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28710734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28710735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28710736, '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 = 28711154 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': 4078042, 'mtr_portfolio_id': 28711154, 'created_at': datetime.datetime(2025, 11, 19, 16, 2, 59), 'result': '0.04629465656354307', 'result_long': None, 'result_double': None}] Qualite : 0.04629465656354307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28711154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28711154_19-11-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28711154 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_P28711154_19-11-2025_16_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711212, 'pht': 3726}}" where mtr_portfolio_id = 28711154 and dashboard_run_id = 2620236 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`=28711154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519319, 0.04629465656354307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28711154_19-11-2025_16_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711212, '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 = 28711592 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': 4078291, 'mtr_portfolio_id': 28711592, 'created_at': datetime.datetime(2025, 11, 19, 16, 18, 58), 'result': '0.02438216684039433', 'result_long': None, 'result_double': None}] Qualite : 0.02438216684039433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28711592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28711592_19-11-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28711592 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_P28711592_19-11-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711645, 'pht': 3726}}" where mtr_portfolio_id = 28711592 and dashboard_run_id = 2620236 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`=28711592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519320, 0.02438216684039433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28711592_19-11-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28711633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28711634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28711635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28711636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28711637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28711638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28711639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28711641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28711642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28711643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28711644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28711645, '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 = 28712304 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': 4078478, 'mtr_portfolio_id': 28712304, 'created_at': datetime.datetime(2025, 11, 19, 16, 32, 59), 'result': '0.03833061066704206', 'result_long': None, 'result_double': None}] Qualite : 0.03833061066704206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28712304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28712304_19-11-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28712304 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_P28712304_19-11-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712347, 'pht': 3726}}" where mtr_portfolio_id = 28712304 and dashboard_run_id = 2620236 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`=28712304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519321, 0.03833061066704206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28712304_19-11-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712347, '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 = 28712918 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': 4078647, 'mtr_portfolio_id': 28712918, 'created_at': datetime.datetime(2025, 11, 19, 16, 51), 'result': '0.0397455304869902', 'result_long': None, 'result_double': None}] Qualite : 0.0397455304869902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28712918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28712918_19-11-2025_16_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28712918 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_P28712918_19-11-2025_16_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712970, 'pht': 3726}}" where mtr_portfolio_id = 28712918 and dashboard_run_id = 2620236 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`=28712918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519322, 0.0397455304869902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28712918_19-11-2025_16_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28712959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28712960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28712961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28712962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28712963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28712964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28712965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28712966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28712967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28712968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28712969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28712970, '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 = 28713540 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': 4078828, 'mtr_portfolio_id': 28713540, 'created_at': datetime.datetime(2025, 11, 19, 17, 3), 'result': '0.02708401545002795', 'result_long': None, 'result_double': None}] Qualite : 0.02708401545002795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28713540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28713540_19-11-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28713540 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_P28713540_19-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28713545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28713546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28713547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28713548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28713549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28713550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28713551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28713552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28713553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28713554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28713555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28713556, 'pht': 3726}}" where mtr_portfolio_id = 28713540 and dashboard_run_id = 2620236 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`=28713540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519323, 0.02708401545002795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28713540_19-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28713545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28713546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28713547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28713548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28713549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28713550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28713551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28713552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28713553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28713554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28713555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28713556, '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 = 28714020 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': 4078927, 'mtr_portfolio_id': 28714020, 'created_at': datetime.datetime(2025, 11, 19, 17, 17, 27), 'result': '0.024075629470783767', 'result_long': None, 'result_double': None}] Qualite : 0.024075629470783767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28714020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28714020_19-11-2025_17_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28714020 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_P28714020_19-11-2025_17_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714075, 'pht': 3726}}" where mtr_portfolio_id = 28714020 and dashboard_run_id = 2620236 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`=28714020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519324, 0.024075629470783767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28714020_19-11-2025_17_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714075, '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 = 28714460 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': 4078992, 'mtr_portfolio_id': 28714460, 'created_at': datetime.datetime(2025, 11, 19, 18, 4, 56), 'result': '0.04082572040323239', 'result_long': None, 'result_double': None}] Qualite : 0.04082572040323239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28714460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28714460_19-11-2025_18_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28714460 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_P28714460_19-11-2025_18_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714475, 'pht': 3726}}" where mtr_portfolio_id = 28714460 and dashboard_run_id = 2620236 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`=28714460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519325, 0.04082572040323239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28714460_19-11-2025_18_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28714464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28714465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28714466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28714467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28714468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28714469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28714470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28714471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28714472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28714473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28714474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28714475, '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 = 28715740 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': 4079204, 'mtr_portfolio_id': 28715740, 'created_at': datetime.datetime(2025, 11, 19, 18, 16, 57), 'result': '0.04757568434102527', 'result_long': None, 'result_double': None}] Qualite : 0.04757568434102527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28715740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28715740_19-11-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28715740 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_P28715740_19-11-2025_18_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28715742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28715743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28715744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28715745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28715746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28715747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28715748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28715749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28715750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28715751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28715752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28715753, 'pht': 3726}}" where mtr_portfolio_id = 28715740 and dashboard_run_id = 2620236 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`=28715740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519326, 0.04757568434102527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28715740_19-11-2025_18_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28715742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28715743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28715744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28715745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28715746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28715747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28715748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28715749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28715750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28715751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28715752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28715753, '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 = 28716256 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': 4079262, 'mtr_portfolio_id': 28716256, 'created_at': datetime.datetime(2025, 11, 19, 18, 32, 59), 'result': '0.020329561762736308', 'result_long': None, 'result_double': None}] Qualite : 0.020329561762736308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28716256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28716256_19-11-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28716256 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_P28716256_19-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28716270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716272, 'pht': 3726}}" where mtr_portfolio_id = 28716256 and dashboard_run_id = 2620236 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`=28716256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519327, 0.020329561762736308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28716256_19-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28716270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716272, '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 = 28716650 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': 4079349, 'mtr_portfolio_id': 28716650, 'created_at': datetime.datetime(2025, 11, 19, 18, 46, 59), 'result': '0.032676446899307036', 'result_long': None, 'result_double': None}] Qualite : 0.032676446899307036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28716650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28716650_19-11-2025_18_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28716650 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_P28716650_19-11-2025_18_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28716670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716681, 'pht': 3726}}" where mtr_portfolio_id = 28716650 and dashboard_run_id = 2620236 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`=28716650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519328, 0.032676446899307036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28716650_19-11-2025_18_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28716670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28716671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28716672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28716673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28716674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28716675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28716677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28716678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28716679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28716680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28716681, '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 = 28717157 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': 4079436, 'mtr_portfolio_id': 28717157, 'created_at': datetime.datetime(2025, 11, 19, 19, 2, 59), 'result': '0.04174499521137141', 'result_long': None, 'result_double': None}] Qualite : 0.04174499521137141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28717157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28717157_19-11-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28717157 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_P28717157_19-11-2025_19_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717177, 'pht': 3726}}" where mtr_portfolio_id = 28717157 and dashboard_run_id = 2620236 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`=28717157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519329, 0.04174499521137141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28717157_19-11-2025_19_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717177, '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 = 28717621 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': 4079558, 'mtr_portfolio_id': 28717621, 'created_at': datetime.datetime(2025, 11, 19, 19, 16, 59), 'result': '0.044833491275429696', 'result_long': None, 'result_double': None}] Qualite : 0.044833491275429696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28717621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28717621_19-11-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28717621 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_P28717621_19-11-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717702, 'pht': 3726}}" where mtr_portfolio_id = 28717621 and dashboard_run_id = 2620236 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`=28717621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519330, 0.044833491275429696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28717621_19-11-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28717691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28717692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28717693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28717694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28717695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28717696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28717697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28717698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28717699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28717700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28717701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28717702, '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 = 28718130 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': 4079636, 'mtr_portfolio_id': 28718130, 'created_at': datetime.datetime(2025, 11, 19, 19, 32, 58), 'result': '0.03866555406389657', 'result_long': None, 'result_double': None}] Qualite : 0.03866555406389657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28718130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28718130_19-11-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28718130 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_P28718130_19-11-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718166, 'pht': 3726}}" where mtr_portfolio_id = 28718130 and dashboard_run_id = 2620236 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`=28718130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519331, 0.03866555406389657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28718130_19-11-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718166, '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 = 28718591 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': 4079702, 'mtr_portfolio_id': 28718591, 'created_at': datetime.datetime(2025, 11, 19, 19, 49), 'result': '0.0566721987426387', 'result_long': None, 'result_double': None}] Qualite : 0.0566721987426387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28718591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28718591_19-11-2025_19_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28718591 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_P28718591_19-11-2025_19_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718640, 'pht': 3726}}" where mtr_portfolio_id = 28718591 and dashboard_run_id = 2620236 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`=28718591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519332, 0.0566721987426387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28718591_19-11-2025_19_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28718628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28718629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28718630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28718631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28718632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28718634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28718635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28718636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28718637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28718638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28718639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28718640, '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 = 28719215 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': 4079826, 'mtr_portfolio_id': 28719215, 'created_at': datetime.datetime(2025, 11, 19, 20, 4, 29), 'result': '0.05616554920120985', 'result_long': None, 'result_double': None}] Qualite : 0.05616554920120985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28719215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28719215_19-11-2025_20_04_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28719215 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_P28719215_19-11-2025_20_04_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28719233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719244, 'pht': 3726}}" where mtr_portfolio_id = 28719215 and dashboard_run_id = 2620236 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`=28719215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519333, 0.05616554920120985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28719215_19-11-2025_20_04_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28719233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719244, '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 = 28719601 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': 4079922, 'mtr_portfolio_id': 28719601, 'created_at': datetime.datetime(2025, 11, 19, 20, 19), 'result': '0.05198110906100111', 'result_long': None, 'result_double': None}] Qualite : 0.05198110906100111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28719601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28719601_19-11-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28719601 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_P28719601_19-11-2025_20_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28719645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719656, 'pht': 3726}}" where mtr_portfolio_id = 28719601 and dashboard_run_id = 2620236 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`=28719601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519334, 0.05198110906100111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28719601_19-11-2025_20_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28719643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28719644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28719645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28719646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28719647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28719649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28719650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28719651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28719653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28719654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28719655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28719656, '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 = 28720299 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': 4080012, 'mtr_portfolio_id': 28720299, 'created_at': datetime.datetime(2025, 11, 19, 20, 32, 57), 'result': '0.052164626065629514', 'result_long': None, 'result_double': None}] Qualite : 0.052164626065629514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28720299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28720299_19-11-2025_20_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28720299 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_P28720299_19-11-2025_20_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720318, 'pht': 3726}}" where mtr_portfolio_id = 28720299 and dashboard_run_id = 2620236 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`=28720299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519335, 0.052164626065629514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28720299_19-11-2025_20_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720318, '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 = 28720850 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': 4080123, 'mtr_portfolio_id': 28720850, 'created_at': datetime.datetime(2025, 11, 19, 21, 2, 59), 'result': '0.04336171018039358', 'result_long': None, 'result_double': None}] Qualite : 0.04336171018039358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28720850 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28720850_19-11-2025_21_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28720850 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_P28720850_19-11-2025_21_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720884, 'pht': 3726}}" where mtr_portfolio_id = 28720850 and dashboard_run_id = 2620236 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`=28720850 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519336, 0.04336171018039358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28720850_19-11-2025_21_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28720873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28720874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28720875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28720876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28720877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28720878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28720879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28720880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28720881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28720882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28720883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28720884, '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 = 28722077 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': 4080367, 'mtr_portfolio_id': 28722077, 'created_at': datetime.datetime(2025, 11, 19, 21, 14, 59), 'result': '0.03843312954862736', 'result_long': None, 'result_double': None}] Qualite : 0.03843312954862736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28722077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28722077_19-11-2025_21_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28722077 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_P28722077_19-11-2025_21_15_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28722082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28722083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28722084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28722085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28722086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28722087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28722088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28722089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28722090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28722091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28722092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28722093, 'pht': 3726}}" where mtr_portfolio_id = 28722077 and dashboard_run_id = 2620236 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`=28722077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17519337, 0.03843312954862736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28722077_19-11-2025_21_15_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28722082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28722083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28722084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28722085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28722086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28722087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28722088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28722089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28722090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28722091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28722092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28722093, '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 (28683578,28683926,28684479,28684827,28686230,28686572,28686897,28687492,28688047,28688672,28689189,28689419,28689948,28690373,28690950,28691357,28692204,28692570,28692799,28693135,28693616,28694053,28694487,28694890,28695395,28695989,28696355,28696998,28697320,28697891,28698408,28699027,28700474,28700897,28701311,28701886,28702406,28702811,28703228,28703828,28704241,28704820,28705307,28707503,28707688,28707991,28708539,28709004,28709432,28709884,28710804,28710711,28711154,28711592,28712304,28712918,28713540,28714020,28714460,28715740,28716256,28716650,28717157,28717621,28718130,28718591,28719215,28719601,28720299,28720850,28722077) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,), (1395118010,), (1395117994,), (1395117998,), (1395118001,), (1395118004,), (1395118007,), (1395118013,), (1395118015,), (1395118017,), (1395118020,), (1395118024,), (1395118028,), (1395118055,), (1395118058,), (1395118061,), (1395118066,), (1395118080,), (1395118086,), (1395118088,), (1395118089,), (1395118094,), (1395118126,), (1395118132,), (1395118141,), (1395118152,), (1395118170,), (1395118183,), (1395118196,), (1395118198,), (1395118200,), (1395118238,), (1395118239,), (1395118240,), (1395118242,), (1395118246,), (1395118263,), (1395118265,), (1395118267,), (1395118269,), (1395118273,), (1395118297,), (1395118298,), (1395118299,), (1395118302,), (1395118306,), (1395118329,), (1395118331,), (1395118344,), (1395118348,), (1395118354,), (1395118357,), (1395118370,), (1395118373,), (1395118377,), (1395118381,), (1395118384,), (1395118392,), (1395118397,), (1395118399,), (1395118402,), (1395118405,), (1395118407,), (1395118409,), (1395118422,), (1395118423,), (1395118425,), (1395118427,), (1395118434,), (1395118435,), (1395118439,), (1395118440,), (1395118454,), (1395118455,), (1395118457,), (1395118458,), (1395118495,), (1395118504,), (1395118512,), (1395118524,), (1395118539,), (1395118543,), (1395118547,), (1395118551,), (1395118554,), (1395118557,), (1395118562,), (1395118564,), (1395118566,), (1395118568,), (1395118574,), (1395118579,), (1395118585,), (1395118589,), (1395118594,), (1395118596,), (1395118642,), (1395118644,), (1395118648,), (1395118653,), (1395118654,), (1395118655,), (1395118656,), (1395118628,), (1395118632,), (1395118637,), (1395118678,), (1395118682,), (1395118686,), (1395118690,), (1395118693,), (1395118695,), (1395118700,), (1395118702,), (1395118704,), (1395118706,), (1395118741,), (1395118744,), (1395118747,), (1395118750,), (1395118767,), (1395118769,), (1395118772,), (1395118781,), (1395118785,), (1395118788,), (1395118792,), (1395118793,), (1395118794,), (1395118796,), (1395118805,), (1395118810,), (1395118813,), (1395118816,), (1395118855,), (1395118857,), (1395118860,), (1395118865,), (1395118883,), (1395118884,), (1395118886,), (1395118889,), (1395119017,), (1395119025,), (1395119031,), (1395119035,), (1395119040,), (1395119056,), (1395119057,), (1395119058,), (1395119061,), (1395119065,), (1395119085,), (1395119086,), (1395119088,), (1395119091,), (1395119114,), (1395119116,), (1395119120,), (1395119123,), (1395119150,), (1395119152,), (1395119155,), (1395119158,), (1395119162,), (1395119165,), (1395119179,), (1395119186,), (1395119198,), (1395119208,), (1395119227,), (1395119235,), (1395119238,), (1395119241,), (1395119244,), (1395119248,), (1395119257,), (1395119262,), (1395119292,), (1395119275,), (1395119277,), (1395119281,), (1395119285,), (1395119288,), (1395119305,), (1395119306,), (1395119307,), (1395119309,), (1395119313,), (1395119353,), (1395119360,), (1395119361,), (1395119363,), (1395119457,), (1395119458,), (1395119460,), (1395119464,), (1395119493,), (1395119494,), (1395119496,), (1395119499,), (1395119503,), (1395119517,), (1395119539,), (1395119541,), (1395119543,), (1395119547,), (1395119575,), (1395119577,), (1395119580,), (1395119587,), (1395119643,), (1395119649,), (1395119659,), (1395119661,), (1395119666,), (1395119670,), (1395119683,), (1395119685,), (1395119687,), (1395119726,), (1395119728,), (1395119731,), (1395119740,), (1395119749,), (1395119752,), (1395119763,), (1395119765,), (1395119776,), (1395119777,), (1395119792,), (1395119796,), (1395119800,), (1395119829,), (1395119831,), (1395119832,), (1395119834,), (1395119859,), (1395119860,), (1395119861,), (1395119864,), (1395119874,), (1395119884,), (1395119921,), (1395119925,), (1395119934,), (1395119939,), (1395119940,), (1395119946,), (1395119951,), (1395119956,), (1395119960,), (1395119961,), (1395119965,), (1395123686,), (1395123689,), (1395123699,), (1395123704,), (1395123707,), (1395123759,), (1395123762,), (1395123764,), (1395123803,), (1395123827,), (1395123828,), (1395123830,), (1395123833,), (1395123856,), (1395123858,), (1395123860,), (1395123863,), (1395123917,), (1395123919,), (1395123920,), (1395123924,), (1395123959,), (1395123961,), (1395123963,), (1395123971,), (1395123998,), (1395123999,), (1395124000,), (1395124002,), (1395124007,), (1395124012,), (1395124030,), (1395124033,), (1395124041,), (1395124050,), (1395124054,), (1395124062,), (1395124064,), (1395124108,), (1395124109,), (1395124110,), (1395124112,), (1395124115,), (1395124119,), (1395124150,), (1395124153,), (1395124181,), (1395124192,), (1395124199,), (1395124203,), (1395124225,), (1395124227,), (1395124229,), (1395124232,), (1395124238,), (1395124261,), (1395124263,), (1395124266,), (1395124270,), (1395124274,), (1395124279,), (1395124288,), (1395124290,), (1395124310,), (1395124308,), (1395124309,), (1395124335,), (1395124337,), (1395124339,), (1395124418,), (1395124420,), (1395124422,), (1395124425,), (1395124450,), (1395124454,), (1395124459,), (1395124464,), (1395124470,), (1395124475,), (1395124489,), (1395124494,), (1395124518,), (1395124520,), (1395124522,), (1395124525,), (1395124529,), (1395124551,), (1395124552,), (1395124554,), (1395124557,), (1395124560,), (1395124594,), (1395124602,), (1395124606,), (1395124613,), (1395124618,), (1395124662,), (1395124664,), (1395124696,), (1395124699,), (1395124702,), (1395124720,), (1395124721,), (1395124722,), (1395124724,), (1395124742,), (1395124745,), (1395124748,), (1395124753,), (1395124776,), (1395125104,), (1395125109,), (1395125187,), (1395125290,), (1395125812,), (1395125815,), (1395126084,), (1395126087,), (1395126091,), (1395126108,), (1395126110,), (1395126499,), (1395126556,), (1395126559,), (1395126566,), (1395126601,), (1395125504,), (1395125636,), (1395125731,), (1395125787,), (1395125825,), (1395125851,), (1395125902,), (1395125966,), (1395125976,), (1395125979,), (1395126077,), (1395126081,), (1395126083,), (1395126097,), (1395126100,), (1395126103,), (1395126106,), (1395126125,), (1395126129,), (1395126132,), (1395126135,), (1395126139,), (1395126142,), (1395126154,), (1395126158,), (1395126161,), (1395126164,), (1395126168,), (1395126172,), (1395126314,), (1395126351,), (1395126387,), (1395126424,), (1395126462,), (1395126699,), (1395126721,), (1395126740,), (1395126748,), (1395126752,), (1395126756,), (1395126763,), (1395126770,), (1395126775,), (1395126794,), (1395126798,), (1395126802,), (1395126845,), (1395126860,), (1395126865,), (1395126873,), (1395126889,), (1395126924,), (1395127253,), (1395127287,), (1395127540,), (1395127542,), (1395127544,), (1395127590,), (1395127591,), (1395127592,), (1395127595,), (1395127624,), (1395127662,), (1395127959,), (1395127966,), (1395127968,), (1395128117,), (1395128118,), (1395128119,), (1395128411,), (1395128412,), (1395128414,), (1395128439,), (1395128480,), (1395128490,), (1395128542,), (1395128543,), (1395128557,), (1395128546,), (1395128547,), (1395128549,), (1395128553,), (1395128576,), (1395128580,), (1395128582,), (1395128585,), (1395128600,), (1395128601,), (1395128608,), (1395128652,), (1395128693,), (1395128922,), (1395128923,), (1395128924,), (1395128927,), (1395128949,), (1395129125,), (1395129127,), (1395129346,), (1395129356,), (1395129364,), (1395129378,), (1395129389,), (1395129421,), (1395129429,), (1395129437,), (1395129443,), (1395129487,), (1395129488,), (1395129489,), (1395129492,), (1395129531,), (1395129533,), (1395129979,), (1395130011,), (1395130016,), (1395130018,), (1395130022,), (1395130190,), (1395130195,), (1395130198,), (1395130201,), (1395130204,), (1395130207,), (1395130222,), (1395130225,), (1395130226,), (1395130258,), (1395130259,), (1395130260,), (1395130262,), (1395130287,), (1395130289,), (1395130291,), (1395130294,), (1395130298,), (1395130317,), (1395130318,), (1395130322,), (1395130350,), (1395130352,), (1395130359,), (1395130369,), (1395130345,), (1395130347,), (1395130349,), (1395130378,), (1395130386,), (1395130424,), (1395130426,), (1395130427,), (1395130431,), (1395130475,), (1395130477,), (1395130478,), (1395130481,), (1395130499,), (1395130502,), (1395130507,), (1395130513,), (1395130518,), (1395130519,), (1395130526,), (1395130532,), (1395130534,), (1395130536,), (1395130540,), (1395130581,), (1395130583,), (1395130584,), (1395130586,), (1395130660,), (1395130663,), (1395130664,), (1395130666,), (1395130670,), (1395130691,), (1395130693,), (1395130721,), (1395130754,), (1395130793,), (1395130856,), (1395130858,), (1395130860,), (1395130864,), (1395130881,), (1395130883,), (1395130887,), (1395130893,), (1395130909,), (1395130913,), (1395130918,), (1395130935,), (1395130940,), (1395130957,), (1395130959,), (1395130961,), (1395130964,), (1395130968,), (1395130994,), (1395130996,), (1395130998,), (1395131002,), (1395131007,), (1395131017,), (1395131020,), (1395131023,), (1395131026,), (1395131030,), (1395131033,), (1395131038,), (1395131039,), (1395131040,), (1395131042,), (1395131064,), (1395131053,), (1395131055,), (1395131058,), (1395131061,), (1395131088,), (1395131102,), (1395131104,), (1395131113,), (1395131143,), (1395131144,), (1395131145,), (1395131238,), (1395131271,), (1395131277,), (1395131278,), (1395131292,), (1395131323,), (1395131346,), (1395131349,), (1395131352,), (1395131355,), (1395131358,), (1395131366,), (1395131369,), (1395131404,), (1395131407,), (1395131454,), (1395131455,), (1395131470,), (1395131480,), (1395131489,), (1395131517,), (1395131519,), (1395131521,), (1395131523,), (1395131556,), (1395131570,), (1395131572,), (1395131576,), (1395131580,), (1395131584,), (1395131597,), (1395131598,), (1395131601,), (1395131603,), (1395131606,), (1395131621,), (1395131628,), (1395131635,), (1395131639,), (1395131671,), (1395131672,), (1395131674,), (1395131676,), (1395131681,), (1395131685,), (1395131701,), (1395131705,), (1395131708,), (1395131713,), (1395131765,), (1395131772,), (1395132866,), (1395132870,), (1395131755,), (1395131762,), (1395131775,), (1395131777,), (1395131788,), (1395131794,), (1395131795,), (1395131797,), (1395131801,), (1395131803,), (1395131817,), (1395131828,), (1395131833,), (1395131837,), (1395131841,), (1395131843,), (1395131847,), (1395131849,), (1395131856,), (1395131862,), (1395131865,), (1395131873,), (1395131876,), (1395131879,), (1395131884,), (1395131887,), (1395131925,), (1395131930,), (1395131935,), (1395131937,), (1395131940,), (1395131943,), (1395131949,), (1395131953,), (1395131957,), (1395131960,), (1395131963,), (1395131965,), (1395131971,), (1395131973,), (1395131976,), (1395131979,), (1395131981,), (1395131983,), (1395131997,), (1395131998,), (1395132001,), (1395132005,), (1395132007,), (1395132009,), (1395132028,), (1395132030,), (1395132032,), (1395132036,), (1395132041,), (1395132044,), (1395132052,), (1395132055,), (1395132057,), (1395132059,), (1395132062,), (1395132065,), (1395132082,), (1395132086,), (1395132090,), (1395132092,), (1395132095,), (1395132097,), (1395132106,), (1395132116,), (1395132119,), (1395132122,), (1395132126,), (1395132130,), (1395132138,), (1395132140,), (1395132142,), (1395132144,), (1395132147,), (1395132148,), (1395132158,), (1395132161,), (1395132165,), (1395132168,), (1395132170,), (1395132171,), (1395132174,), (1395132178,), (1395132182,), (1395132187,), (1395132195,), (1395132203,), (1395132226,), (1395132233,), (1395132280,), (1395132298,), (1395132301,), (1395132357,), (1395132358,), (1395132360,), (1395132362,), (1395132377,), (1395132505,), (1395132542,), (1395132563,), (1395132568,), (1395132593,), (1395132596,), (1395132847,), (1395132849,), (1395132210,), (1395132213,), (1395132216,), (1395132219,), (1395132238,), (1395132258,), (1395132262,), (1395132273,), (1395132277,), (1395132288,), (1395132289,), (1395132290,), (1395132293,), (1395132319,), (1395132320,), (1395132322,), (1395132328,), (1395132335,), (1395132344,), (1395132356,), (1395132486,), (1395132502,), (1395132574,), (1395132576,), (1395132581,), (1395132586,), (1395132602,), (1395132605,), (1395132607,), (1395132623,), (1395132658,), (1395132700,), (1395132756,), (1395132758,), (1395132762,), (1395132765,), (1395132767,), (1395132769,), (1395132802,), (1395132804,), (1395132806,), (1395132807,), (1395132809,), (1395132816,), (1395132831,), (1395132833,), (1395132836,), (1395132839,), (1395132841,), (1395132842,), (1395132843,), (1395132845,), (1395132881,), (1395132911,), (1395132913,), (1395133014,), (1395133029,), (1395133058,), (1395133082,), (1395133086,), (1395133099,), (1395133152,), (1395133167,), (1395133172,), (1395133183,), (1395133190,), (1395133194,), (1395133271,), (1395133279,), (1395133329,), (1395133334,), (1395133459,), (1395134320,), (1395134406,), (1395134407,), (1395134409,), (1395134412,), (1395134417,), (1395134578,), (1395133191,), (1395133196,), (1395133385,), (1395133404,), (1395133430,), (1395133448,), (1395133457,), (1395133461,), (1395133462,), (1395133467,), (1395133568,), (1395133572,), (1395133579,), (1395133583,), (1395133586,), (1395133589,), (1395133600,), (1395133720,), (1395133788,), (1395133814,), (1395133816,), (1395133852,), (1395133887,), (1395133891,), (1395133926,), (1395133927,), (1395133966,), (1395134017,), (1395134036,), (1395134049,), (1395134056,), (1395134060,), (1395134068,), (1395134071,), (1395134073,), (1395134075,), (1395134080,), (1395134089,), (1395134091,), (1395134093,), (1395134094,), (1395134097,), (1395134100,), (1395134109,), (1395134112,), (1395134114,), (1395134116,), (1395134121,), (1395134128,), (1395134153,), (1395134167,), (1395134168,), (1395134170,), (1395134171,), (1395134172,), (1395134175,), (1395134180,), (1395134186,), (1395134193,), (1395134201,), (1395134208,), (1395134213,), (1395134216,), (1395134219,), (1395134222,), (1395134225,), (1395134234,), (1395134253,), (1395134255,), (1395134257,), (1395134259,), (1395134262,), (1395134265,), (1395134269,), (1395134275,), (1395134281,), (1395134283,), (1395134287,), (1395134292,), (1395134308,), (1395134311,), (1395134313,), (1395134315,), (1395134317,), (1395134340,), (1395134341,), (1395134343,), (1395134347,), (1395134356,), (1395134360,), (1395134366,), (1395134370,), (1395134373,), (1395134375,), (1395134378,), (1395134381,), (1395134399,), (1395134402,), (1395134405,), (1395134387,), (1395134389,), (1395134392,), (1395134395,), (1395134518,), (1395134528,), (1395134533,), (1395134553,), (1395134574,), (1395134590,), (1395134591,), (1395134592,), (1395134611,), (1395134613,), (1395134615,), (1395134620,), (1395134626,), (1395134731,), (1395134760,), (1395134864,), (1395134868,), (1395134883,), (1395134889,), (1395134893,), (1395134902,), (1395134904,), (1395134908,), (1395134911,), (1395134922,), (1395134924,), (1395135122,), (1395135123,), (1395135125,), (1395135128,), (1395135133,), (1395135152,), (1395135154,), (1395135157,), (1395135161,), (1395135165,), (1395135168,), (1395135175,), (1395135176,), (1395135284,), (1395135287,), (1395135317,), (1395135321,), (1395135383,), (1395135385,), (1395135387,), (1395135671,), (1395135682,), (1395135683,), (1395135893,), (1395135955,), (1395135957,), (1395135981,), (1395135988,), (1395136020,), (1395136108,), (1395136290,), (1395136302,), (1395142392,), (1395142400,), (1395142401,), (1395142403,), (1395142430,), (1395142433,), (1395142436,), (1395142440,), (1395142450,), (1395142452,), (1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,), (1395138308,), (1395138315,), (1395138321,), (1395138325,), (1395138328,), (1395138335,), (1395138339,), (1395138346,), (1395138348,), (1395138352,), (1395138360,), (1395138363,), (1395138365,), (1395138366,), (1395138375,), (1395138381,), (1395138385,), (1395138392,), (1395138397,), (1395138398,), (1395138403,), (1395138435,), (1395138559,), (1395138575,), (1395138624,), (1395138638,), (1395138639,), (1395138643,), (1395138644,), (1395138646,), (1395138653,), (1395138655,), (1395138656,), (1395138658,), (1395138661,), (1395138664,), (1395138665,), (1395138670,), (1395138673,), (1395138677,), (1395138730,), (1395138737,), (1395138778,), (1395138804,), (1395138805,), (1395138822,), (1395138828,), (1395138845,), (1395138848,), (1395138849,), (1395138852,), (1395138856,), (1395138862,), (1395138864,), (1395138871,), (1395138881,), (1395138891,), (1395138896,), (1395139217,), (1395139236,), (1395139240,), (1395139313,), (1395139350,), (1395139433,), (1395139474,), (1395139495,), (1395139533,), (1395139674,), (1395139676,), (1395139678,), (1395139681,), (1395139689,), (1395139694,), (1395139702,), (1395139706,), (1395139710,), (1395139718,), (1395139731,), (1395139737,), (1395139741,), (1395139744,), (1395139751,), (1395139769,), (1395139772,), (1395139776,), (1395139808,), (1395139841,), (1395140038,), (1395140073,), (1395140151,), (1395140155,), (1395140190,), (1395140200,), (1395140327,), (1395140362,), (1395140366,), (1395140408,), (1395140412,), (1395140413,), (1395140419,), (1395140448,), (1395140552,), (1395140597,), (1395140759,), (1395140924,), (1395140998,), (1395141124,), (1395141128,), (1395141169,), (1395141182,), (1395141255,), (1395141290,), (1395141329,), (1395141332,), (1395141341,), (1395141345,), (1395141348,), (1395141349,), (1395141355,), (1395141371,), (1395141379,), (1395141382,), (1395141390,), (1395141395,), (1395141397,), (1395141417,), (1395141419,), (1395141427,), (1395141431,), (1395141432,), (1395141434,), (1395141440,), (1395141444,), (1395141456,), (1395141460,), (1395141464,), (1395141471,), (1395141507,), (1395141594,), (1395141598,), (1395141649,), (1395141653,), (1395141655,), (1395141659,), (1395141662,), (1395141671,), (1395141675,), (1395141680,), (1395141682,), (1395141684,), (1395141685,), (1395141689,), (1395141693,), (1395141695,), (1395141720,), (1395141728,), (1395141731,), (1395141736,), (1395141750,), (1395141751,), (1395141763,), (1395141784,), (1395141794,), (1395141800,), (1395141811,), (1395141815,), (1395141819,), (1395141825,), (1395141828,), (1395141867,), (1395141872,), (1395141877,), (1395141879,), (1395141884,), (1395141905,), (1395141910,), (1395141914,), (1395141919,), (1395141923,), (1395141927,), (1395141933,), (1395141936,), (1395141938,), (1395141942,), (1395141946,), (1395141951,), (1395142123,), (1395142124,), (1395142134,), (1395142135,), (1395142144,), (1395142149,), (1395142211,), (1395142214,), (1395142217,), (1395142222,), (1395142223,), (1395142224,), (1395142236,), (1395142238,), (1395142242,), (1395142248,), (1395142254,), (1395142259,), (1395142280,), (1395142282,), (1395142284,), (1395142287,), (1395142305,), (1395142311,), (1395142342,), (1395142347,), (1395142352,), (1395142355,), (1395142357,), (1395142359,), (1395142370,), (1395142377,), (1395142420,), (1395142425,), (1395144669,), (1395138359,), (1395138387,), (1395138505,), (1395138627,), (1395138628,), (1395138662,), (1395138767,), (1395138840,), (1395139436,), (1395139671,), (1395139696,), (1395139725,), (1395139756,), (1395140111,), (1395140112,), (1395140360,), (1395140476,), (1395141129,), (1395141334,), (1395141359,), (1395141392,), (1395141425,), (1395141447,), (1395141554,), (1395141656,), (1395141672,), (1395141707,), (1395141741,), (1395141801,), (1395141862,), (1395144519,), (1395144665,), (1395145554,), (1395145792,), (1395145944,), (1395145962,), (1395146145,), (1395146184,), (1395146196,), (1395146288,), (1395146292,), (1395146320,), (1395146322,), (1395146325,), (1395146328,), (1395146331,), (1395146368,), (1395146374,), (1395146377,), (1395146380,), (1395146383,), (1395146406,), (1395146411,), (1395146415,), (1395146417,), (1395146422,), (1395146427,), (1395146431,), (1395146444,), (1395146458,), (1395146460,), (1395146463,), (1395146468,), (1395146470,), (1395146475,), (1395146477,), (1395146479,), (1395146484,), (1395146531,), (1395146622,), (1395146628,), (1395146635,), (1395146639,), (1395146724,), (1395146744,), (1395146750,), (1395146792,), (1395147032,), (1395147036,), (1395147040,), (1395147052,), (1395147058,), (1395147062,), (1395147097,), (1395147103,), (1395146483,), (1395146489,), (1395146500,), (1395146503,), (1395146507,), (1395146512,), (1395146514,), (1395146516,), (1395146521,), (1395146524,), (1395146527,), (1395146535,), (1395146536,), (1395146541,), (1395146542,), (1395146549,), (1395146553,), (1395146556,), (1395146559,), (1395146564,), (1395146566,), (1395146569,), (1395146570,), (1395146583,), (1395146585,), (1395146589,), (1395146593,), (1395146596,), (1395146598,), (1395146606,), (1395146615,), (1395146643,), (1395146645,), (1395146646,), (1395146648,), (1395146653,), (1395146659,), (1395146678,), (1395146685,), (1395146689,), (1395146709,), (1395146715,), (1395146731,), (1395146736,), (1395146738,), (1395146741,), (1395146763,), (1395146769,), (1395146775,), (1395146782,), (1395146789,), (1395146834,), (1395146859,), (1395146873,), (1395146890,), (1395146894,), (1395146897,), (1395146905,), (1395146910,), (1395146914,), (1395146916,), (1395146920,), (1395146929,), (1395146945,), (1395146947,), (1395146952,), (1395146955,), (1395146957,), (1395146961,), (1395146977,), (1395146985,), (1395146999,), (1395147003,), (1395147007,), (1395147011,), (1395147074,), (1395147079,), (1395147088,), (1395147093,), (1395147113,), (1395147117,), (1395147126,), (1395147132,), (1395147164,), (1395147175,), (1395147180,), (1395147184,), (1395147185,), (1395147238,), (1395147244,), (1395147250,), (1395147531,), (1395147585,), (1395147621,), (1395147660,), (1395147667,), (1395156108,), (1395156110,), (1395156114,), (1395156224,), (1395147198,), (1395147208,), (1395147210,), (1395147255,), (1395147262,), (1395147270,), (1395147273,), (1395147278,), (1395147281,), (1395147286,), (1395147289,), (1395147294,), (1395147299,), (1395147305,), (1395147308,), (1395147322,), (1395147327,), (1395147330,), (1395147332,), (1395147335,), (1395147342,), (1395147356,), (1395147357,), (1395147361,), (1395147363,), (1395147366,), (1395147367,), (1395147370,), (1395147371,), (1395147375,), (1395147376,), (1395147380,), (1395147381,), (1395147388,), (1395147392,), (1395147395,), (1395147397,), (1395147400,), (1395147403,), (1395147408,), (1395147412,), (1395147416,), (1395147421,), (1395147426,), (1395147430,), (1395147443,), (1395147447,), (1395147451,), (1395147457,), (1395147461,), (1395147464,), (1395147472,), (1395147476,), (1395147479,), (1395147484,), (1395147487,), (1395147492,), (1395147502,), (1395147506,), (1395147510,), (1395147522,), (1395147525,), (1395147538,), (1395147542,), (1395147544,), (1395147550,), (1395147553,), (1395147557,), (1395147565,), (1395147570,), (1395147572,), (1395147576,), (1395147578,), (1395147592,), (1395147594,), (1395147597,), (1395147609,), (1395147614,), (1395147626,), (1395147628,), (1395147631,), (1395147635,), (1395147640,), (1395147644,), (1395147652,), (1395147654,), (1395147655,), (1395147657,), (1395147687,), (1395147693,), (1395147702,), (1395147710,), (1395147719,), (1395147724,), (1395147760,), (1395147782,), (1395147786,), (1395147977,), (1395148021,), (1395148074,), (1395148099,), (1395148123,), (1395148138,), (1395148323,), (1395156084,), (1395156088,), (1395156093,), (1395156101,), (1395156105,), (1395156107,), (1395147732,), (1395147736,), (1395147745,), (1395147748,), (1395147753,), (1395147770,), (1395147773,), (1395147776,), (1395147779,), (1395148226,), (1395148243,), (1395148246,), (1395148249,), (1395148253,), (1395148256,), (1395148268,), (1395148282,), (1395148296,), (1395148305,), (1395148314,), (1395148332,), (1395148342,), (1395148343,), (1395148352,), (1395148356,), (1395148358,), (1395148361,), (1395148366,), (1395148370,), (1395148374,), (1395148379,), (1395148381,), (1395148382,), (1395148387,), (1395148395,), (1395148397,), (1395148401,), (1395148406,), (1395148414,), (1395148419,), (1395148424,), (1395148428,), (1395148432,), (1395148436,), (1395148444,), (1395148447,), (1395148451,), (1395148461,), (1395148467,), (1395148472,), (1395148479,), (1395148482,), (1395148485,), (1395148488,), (1395148495,), (1395148499,), (1395148506,), (1395148513,), (1395148657,), (1395148671,), (1395148677,), (1395148719,), (1395148764,), (1395148768,), (1395148771,), (1395148775,), (1395148781,), (1395148785,), (1395148941,), (1395148981,), (1395149065,), (1395149114,), (1395149137,), (1395149158,), (1395149195,), (1395149211,), (1395149220,), (1395149223,), (1395155609,), (1395155612,), (1395155615,), (1395155656,), (1395155660,), (1395155673,), (1395155674,), (1395155675,), (1395155683,), (1395155693,), (1395155707,), (1395155733,), (1395155740,), (1395155744,), (1395155747,), (1395155749,), (1395155752,), (1395155757,), (1395155780,), (1395155781,), (1395155786,), (1395155845,), (1395155853,), (1395155858,), (1395155859,), (1395155861,), (1395155865,), (1395155872,), (1395155907,), (1395155920,), (1395155924,), (1395155932,), (1395155934,), (1395155935,), (1395155936,), (1395155993,), (1395155998,), (1395156005,), (1395156010,), (1395156015,), (1395156018,), (1395156021,), (1395156024,), (1395156045,), (1395156056,), (1395156058,), (1395156060,), (1395156063,), (1395156065,), (1395156067,), (1395149153,), (1395149170,), (1395149203,), (1395149215,), (1395149219,), (1395149222,), (1395149225,), (1395149228,), (1395149229,), (1395149235,), (1395149239,), (1395149241,), (1395149254,), (1395149264,), (1395149266,), (1395149287,), (1395149292,), (1395149297,), (1395149298,), (1395149303,), (1395149308,), (1395149317,), (1395149320,), (1395149326,), (1395149333,), (1395149335,), (1395149337,), (1395149338,), (1395149341,), (1395149344,), (1395149346,), (1395149347,), (1395149348,), (1395149351,), (1395149353,), (1395149355,), (1395149358,), (1395149362,), (1395149363,), (1395149370,), (1395149379,), (1395149380,), (1395149393,), (1395149396,), (1395149405,), (1395149407,), (1395149415,), (1395149418,), (1395149419,), (1395149423,), (1395149429,), (1395149445,), (1395149446,), (1395149450,), (1395149451,), (1395149452,), (1395149453,), (1395149458,), (1395149543,), (1395149562,), (1395149670,), (1395149679,), (1395149747,), (1395149793,), (1395149893,), (1395150033,), (1395150212,), (1395150275,), (1395150300,), (1395150359,), (1395150363,), (1395150366,), (1395150380,), (1395150402,), (1395150476,), (1395150582,), (1395150670,), (1395150727,), (1395150729,), (1395150734,), (1395150773,), (1395150782,), (1395150789,), (1395150792,), (1395150797,), (1395150802,), (1395150813,), (1395152553,), (1395152556,), (1395152559,), (1395152560,), (1395152563,), (1395152566,), (1395152594,), (1395152601,), (1395152646,), (1395152647,), (1395152648,), (1395152649,), (1395152650,), (1395152653,), (1395152680,), (1395152682,), (1395152686,), (1395152687,), (1395152691,), (1395152694,), (1395152697,), (1395152701,), (1395152780,), (1395152784,), (1395152791,), (1395152804,), (1395152807,), (1395152809,), (1395152834,), (1395152839,), (1395152846,), (1395152847,), (1395152850,), (1395152853,), (1395152855,), (1395152857,), (1395152939,), (1395152941,), (1395152942,), (1395152968,), (1395152969,), (1395152970,), (1395152973,), (1395152976,), (1395152979,), (1395153025,), (1395153029,), (1395153038,), (1395153043,), (1395153044,), (1395153046,), (1395153049,), (1395153054,), (1395153107,), (1395153116,), (1395153118,), (1395153119,), (1395153120,), (1395153128,), (1395153130,), (1395153574,), (1395153900,), (1395153943,), (1395154009,), (1395154088,), (1395154150,), (1395154206,), (1395154422,), (1395154551,), (1395154556,), (1395154557,), (1395154789,), (1395154793,), (1395155108,), (1395155110,), (1395155112,), (1395155113,), (1395155114,), (1395155138,), (1395155377,), (1395155380,), (1395155391,), (1395155428,), (1395155431,), (1395155434,), (1395155438,), (1395155441,), (1395155444,), (1395150790,), (1395150794,), (1395150796,), (1395150803,), (1395150804,), (1395150814,), (1395150816,), (1395150820,), (1395150826,), (1395150921,), (1395151005,), (1395151063,), (1395151121,), (1395151158,), (1395151178,), (1395151181,), (1395151184,), (1395151265,), (1395151286,), (1395151289,), (1395151311,), (1395151322,), (1395151329,), (1395151332,), (1395151339,), (1395151344,), (1395151348,), (1395151351,), (1395151353,), (1395151360,), (1395151361,), (1395151367,), (1395151387,), (1395151395,), (1395151399,), (1395151400,), (1395151413,), (1395151419,), (1395151445,), (1395151446,), (1395151450,), (1395151453,), (1395151456,), (1395151460,), (1395151464,), (1395151466,), (1395151467,), (1395151469,), (1395151470,), (1395151494,), (1395151498,), (1395151499,), (1395151501,), (1395151505,), (1395151506,), (1395151509,), (1395151517,), (1395151520,), (1395151521,), (1395151522,), (1395151528,), (1395151529,), (1395151531,), (1395151533,), (1395151538,), (1395151539,), (1395151540,), (1395151541,), (1395151543,), (1395151549,), (1395151554,), (1395151556,), (1395151558,), (1395151562,), (1395151566,), (1395151584,), (1395151587,), (1395151589,), (1395151591,), (1395151592,), (1395151595,), (1395151598,), (1395151601,), (1395151617,), (1395151620,), (1395151624,), (1395151626,), (1395151645,), (1395151648,), (1395151675,), (1395151678,), (1395151680,), (1395151682,), (1395151684,), (1395151685,), (1395151708,), (1395151710,), (1395151713,), (1395151714,), (1395151715,), (1395151718,), (1395151751,), (1395151752,), (1395151763,), (1395151769,), (1395151774,), (1395151779,), (1395151782,), (1395151783,), (1395151810,), (1395151892,), (1395151895,), (1395151898,), (1395151900,), (1395151955,), (1395151956,), (1395151981,), (1395151984,), (1395151994,), (1395151997,), (1395151999,), (1395152003,), (1395152007,), (1395152009,), (1395152060,), (1395152064,), (1395152084,), (1395152088,), (1395152090,), (1395152092,), (1395152094,), (1395152097,), (1395152167,), (1395152168,), (1395152171,), (1395152174,), (1395152177,), (1395152179,), (1395152223,), (1395152224,), (1395152253,), (1395152256,), (1395152279,), (1395152281,), (1395152283,), (1395152286,), (1395152290,), (1395152292,), (1395152321,), (1395152326,), (1395152329,), (1395152332,), (1395152335,), (1395152339,), (1395152343,), (1395152410,), (1395152426,), (1395152452,), (1395152460,), (1395152463,), (1395152465,), (1395152468,), (1395152470,), (1395152473,), (1395151693,), (1395151694,), (1395151696,), (1395151698,), (1395151703,), (1395151704,), (1395151728,), (1395151732,), (1395151734,), (1395151745,), (1395151786,), (1395151789,), (1395151797,), (1395151801,), (1395151805,), (1395151833,), (1395151837,), (1395151842,), (1395151846,), (1395151847,), (1395151850,), (1395151859,), (1395151862,), (1395151870,), (1395151875,), (1395151879,), (1395151883,), (1395151890,), (1395151891,), (1395151937,), (1395151938,), (1395151941,), (1395151942,), (1395151944,), (1395151945,), (1395151948,), (1395151949,), (1395151952,), (1395151953,), (1395151964,), (1395151968,), (1395151972,), (1395151977,), (1395152020,), (1395152024,), (1395152028,), (1395152032,), (1395152035,), (1395152038,), (1395152048,), (1395152050,), (1395152052,), (1395152055,), (1395152113,), (1395152123,), (1395152128,), (1395152132,), (1395152136,), (1395152160,), (1395152194,), (1395152195,), (1395152199,), (1395152200,), (1395152204,), (1395152205,), (1395152208,), (1395152209,), (1395152216,), (1395152217,), (1395152229,), (1395152242,), (1395152245,), (1395152249,), (1395152304,), (1395152307,), (1395152310,), (1395152313,), (1395152317,), (1395152359,), (1395152362,), (1395152365,), (1395152368,), (1395152372,), (1395152376,), (1395152393,), (1395152398,), (1395152401,), (1395152402,), (1395152450,), (1395152437,), (1395152440,), (1395152444,), (1395152448,), (1395152491,), (1395152503,), (1395152508,), (1395152511,), (1395152516,), (1395152522,), (1395152579,), (1395152583,), (1395152588,), (1395152591,), (1395152612,), (1395152614,), (1395152617,), (1395152621,), (1395152624,), (1395152628,), (1395152663,), (1395152668,), (1395152673,), (1395152676,), (1395152715,), (1395152721,), (1395152729,), (1395152734,), (1395152736,), (1395152739,), (1395152744,), (1395152748,), (1395152751,), (1395152755,), (1395152760,), (1395152772,), (1395152817,), (1395152821,), (1395152825,), (1395152828,), (1395152900,), (1395152911,), (1395152914,), (1395152918,), (1395152923,), (1395152926,), (1395152935,), (1395152936,), (1395152938,), (1395152948,), (1395152952,), (1395152956,), (1395152958,), (1395152962,), (1395152965,), (1395153011,), (1395153016,), (1395153018,), (1395153021,), (1395153067,), (1395153072,), (1395153075,), (1395153076,), (1395153078,), (1395153080,), (1395153083,), (1395153088,), (1395153093,), (1395153097,), (1395153101,), (1395153539,), (1395153394,), (1395153430,), (1395153463,), (1395153499,), (1395153690,), (1395153735,), (1395153768,), (1395153801,), (1395153817,), (1395153822,), (1395154308,), (1395154321,), (1395154327,), (1395154361,), (1395154397,), (1395154499,), (1395154503,), (1395154506,), (1395154508,), (1395154510,), (1395154512,), (1395154517,), (1395154520,), (1395154524,), (1395154528,), (1395154530,), (1395154533,), (1395154542,), (1395154545,), (1395154548,), (1395154608,), (1395154609,), (1395154644,), (1395154646,), (1395154681,), (1395154684,), (1395154719,), (1395154722,), (1395154755,), (1395154756,), (1395154911,), (1395154940,), (1395154976,), (1395155010,), (1395155047,), (1395155083,), (1395155330,), (1395155340,), (1395155343,), (1395155459,), (1395155460,), (1395155463,), (1395155465,), (1395155467,), (1395155468,), (1395155471,), (1395155472,), (1395155474,), (1395155475,), (1395155476,), (1395155477,), (1395155505,), (1395155508,), (1395155510,), (1395155512,), (1395155521,), (1395155530,), (1395155544,), (1395155548,), (1395155552,), (1395155556,), (1395155558,), (1395155561,), (1395155594,), (1395155604,), (1395155607,), (1395155624,), (1395155627,), (1395155631,), (1395155633,), (1395155635,), (1395155638,), (1395155642,), (1395155644,), (1395155648,), (1395155651,), (1395155720,), (1395155722,), (1395155724,), (1395155726,), (1395155730,), (1395155773,), (1395155777,), (1395155778,), (1395155825,), (1395155826,), (1395155805,), (1395155806,), (1395155809,), (1395155810,), (1395155813,), (1395155814,), (1395155818,), (1395155819,), (1395155823,), (1395155824,), (1395155829,), (1395155831,), (1395155833,), (1395155835,), (1395155840,), (1395155887,), (1395155891,), (1395155896,), (1395155901,), (1395155904,), (1395155947,), (1395155948,), (1395155951,), (1395155952,), (1395155955,), (1395155957,), (1395155961,), (1395155962,), (1395155966,), (1395155967,), (1395155972,), (1395155973,), (1395155982,), (1395155984,), (1395155986,), (1395155989,), (1395156027,), (1395156029,), (1395156034,), (1395156038,), (1395156041,), (1395156076,), (1395156078,), (1395156081,), (1395156126,), (1395156130,), (1395156135,), (1395156137,), (1395156139,), (1395156141,), (1395156165,), (1395156167,), (1395156171,), (1395156174,), (1395156177,), (1395156181,), (1395156185,), (1395156187,), (1395156191,), (1395156195,), (1395156199,), (1395156206,), (1395156213,), (1395156214,), (1395156215,), (1395156218,), (1395156221,), (1395156240,), (1395156242,), (1395156244,), (1395156245,), (1395156250,), (1395156251,), (1395156263,), (1395156265,), (1395156268,), (1395156271,), (1395156296,), (1395156305,), (1395156310,), (1395156314,), (1395156318,), (1395156328,), (1395156360,), (1395156364,), (1395156366,), (1395156370,), (1395156375,), (1395156405,), (1395156407,), (1395156412,), (1395156417,), (1395156422,), (1395156459,), (1395156466,), (1395156467,), (1395156468,), (1395156469,), (1395156470,), (1395156443,), (1395156445,), (1395156447,), (1395156451,), (1395156455,), (1395156478,), (1395156481,), (1395156485,), (1395156489,), (1395156509,), (1395156511,), (1395156513,), (1395156516,), (1395156520,), (1395156546,), (1395156549,), (1395156552,), (1395156619,), (1395156621,), (1395156623,), (1395156627,), (1395156631,), (1395156634,), (1395156647,), (1395156649,), (1395156654,), (1395156656,), (1395156658,), (1395156661,), (1395156665,), (1395156668,), (1395156694,), (1395156696,), (1395156699,), (1395156731,), (1395156744,), (1395156749,), (1395156752,), (1395156756,), (1395156759,), (1395156774,), (1395156776,), (1395156778,), (1395156781,), (1395156800,), (1395156803,), (1395156806,), (1395156810,), (1395156813,), (1395156817,), (1395156826,), (1395156830,), (1395156833,), (1395156838,), (1395156864,), (1395156866,), (1395156868,), (1395156870,), (1395156873,), (1395156900,), (1395156902,), (1395156904,), (1395156908,), (1395156918,), (1395156946,), (1395156948,), (1395156950,), (1395156954,), (1395156959,), (1395156962,), (1395156989,), (1395156992,), (1395156994,), (1395156998,), (1395157002,), (1395157006,), (1395157015,), (1395157017,), (1395157046,), (1395157025,), (1395157030,), (1395157037,), (1395157040,), (1395157044,), (1395157065,), (1395157067,), (1395157069,), (1395157072,), (1395157077,), (1395157120,), (1395157121,), (1395157123,), (1395157126,), (1395157130,), (1395157158,), (1395157159,), (1395157161,), (1395157164,), (1395157168,), (1395157197,), (1395157199,), (1395157201,), (1395157237,), (1395157240,), (1395157244,), (1395157249,), (1395157254,), (1395157270,), (1395157272,), (1395157274,), (1395157282,), (1395157306,), (1395157307,), (1395157309,), (1395157313,), (1395157316,), (1395157320,), (1395157337,), (1395157339,), (1395157347,), (1395157352,), (1395157358,), (1395157367,), (1395157421,), (1395157424,), (1395157428,), (1395157432,), (1395157436,), (1395157438,), (1395157448,), (1395157451,), (1395157455,), (1395157458,), (1395157478,), (1395157480,), (1395157484,), (1395157488,), (1395157492,), (1395157496,), (1395157513,), (1395157515,), (1395157518,), (1395157557,), (1395157559,), (1395157561,), (1395157564,), (1395157569,), (1395157571,), (1395157961,), (1395157971,), (1395157975,), (1395158051,), (1395158536,), (1395158398,), (1395158431,), (1395158467,), (1395158500,), (1395158739,), (1395158742,), (1395158764,), (1395158797,), (1395159020,), (1395159024,), (1395159027,), (1395159030,), (1395159034,), (1395159037,), (1395159082,), (1395159084,), (1395159086,), (1395159087,), (1395159091,), (1395159094,), (1395159107,), (1395159108,), (1395159110,), (1395159180,), (1395159214,), (1395159248,), (1395159281,), (1395159317,), (1395159589,), (1395159597,), (1395159614,), (1395159634,), (1395159668,), (1395159671,), (1395159674,), (1395159679,), (1395159684,), (1395159688,), (1395159706,), (1395159708,), (1395159715,), (1395159727,), (1395159735,), (1395159738,), (1395159806,), (1395159808,), (1395159810,), (1395159813,), (1395159817,), (1395159840,), (1395159842,), (1395159844,), (1395159847,), (1395159852,), (1395159855,), (1395159877,), (1395159879,), (1395159881,), (1395159885,), (1395159945,), (1395159954,), (1395159957,), (1395159961,), (1395159965,), (1395159969,), (1395159992,), (1395159993,), (1395159995,), (1395159999,), (1395160003,), (1395160006,), (1395160027,), (1395160028,), (1395160029,), (1395160030,), (1395160034,), (1395160057,), (1395160043,), (1395160047,), (1395160051,), (1395160055,), (1395160068,), (1395160075,), (1395160084,), (1395160088,), (1395160092,), (1395160316,), (1395160351,), (1395160385,), (1395160387,), (1395160390,), (1395160490,), (1395160493,), (1395160496,), (1395160500,), (1395160505,), (1395160509,), (1395160526,), (1395160527,), (1395160528,), (1395160530,), (1395160557,), (1395160560,), (1395160563,), (1395160568,), (1395160571,), (1395160597,), (1395160599,), (1395160601,), (1395160605,), (1395160610,), (1395160613,), (1395160631,), (1395160633,), (1395160635,), (1395160661,), (1395160707,), (1395160708,), (1395160709,), (1395160711,), (1395160715,), (1395160719,), (1395160732,), (1395160735,), (1395160737,), (1395160740,), (1395160747,), (1395160749,), (1395160753,), (1395160758,), (1395160762,), (1395160764,), (1395160780,), (1395160782,), (1395160784,), (1395160858,), (1395160861,), (1395160863,), (1395160867,), (1395160872,), (1395160882,), (1395160918,), (1395160921,), (1395160924,), (1395160928,), (1395160932,), (1395160957,), (1395160960,), (1395160962,), (1395160966,), (1395160970,), (1395161010,), (1395161013,), (1395161022,), (1395161023,), (1395161025,), (1395161027,), (1395160998,), (1395161000,), (1395161002,), (1395161006,), (1395161032,), (1395161034,), (1395161037,), (1395161048,), (1395161074,), (1395161096,), (1395161133,), (1395161135,), (1395161137,), (1395161140,), (1395161163,), (1395161165,), (1395161167,), (1395161169,), (1395161173,), (1395161176,), (1395161215,), (1395161225,), (1395161237,), (1395161242,), (1395161245,), (1395161270,), (1395161272,), (1395161274,), (1395161277,), (1395161281,), (1395161316,), (1395161319,), (1395161336,), (1395161369,), (1395161403,), (1395161427,), (1395161529,), (1395161530,), (1395161541,), (1395161553,), (1395161564,), (1395161587,), (1395161588,), (1395161589,), (1395161591,), (1395161595,), (1395161598,), (1395161612,), (1395161614,), (1395161616,), (1395161675,), (1395161676,), (1395161677,), (1395161679,), (1395161694,), (1395161732,), (1395161862,), (1395161864,), (1395161866,), (1395161869,), (1395161892,), (1395161900,), (1395161907,), (1395161915,), (1395161920,), (1395161927,), (1395161945,), (1395161946,), (1395161951,), (1395161956,), (1395161959,), (1395161976,), (1395161978,), (1395161980,), (1395161985,), (1395161988,), (1395161994,), (1395162013,), (1395162006,), (1395162007,), (1395162009,), (1395162034,), (1395162035,), (1395162044,), (1395162052,), (1395162066,), (1395162097,), (1395162106,), (1395162112,), (1395162152,), (1395162200,), (1395162450,), (1395162452,), (1395162458,), (1395162468,), (1395162472,), (1395162507,), (1395162510,), (1395162511,), (1395162517,), (1395162535,), (1395162537,), (1395162538,), (1395162541,), (1395162545,), (1395162548,), (1395162566,), (1395162568,), (1395162572,), (1395162576,), (1395162621,), (1395162626,), (1395162637,), (1395162642,), (1395162646,), (1395162656,), (1395162769,), (1395162818,), (1395162855,), (1395162878,), (1395162897,), (1395162941,), (1395162944,), (1395163033,), (1395163049,), (1395163055,), (1395163060,), (1395163082,), (1395163084,), (1395163086,), (1395163096,), (1395163099,), (1395163102,), (1395163105,), (1395163109,), (1395163112,), (1395163120,), (1395163123,), (1395163127,), (1395163133,), (1395163136,), (1395163150,), (1395163157,), (1395163163,), (1395163166,), (1395163170,), (1395163175,), (1395164025,), (1395164163,), (1395164233,), (1395164410,), (1395164413,), (1395164419,), (1395164424,), (1395168657,), (1395168661,), (1395168665,), (1395168677,), (1395168681,), (1395168684,), (1395168686,), (1395168689,), (1395168692,), (1395168704,), (1395168708,), (1395168711,), (1395168728,), (1395168733,), (1395168737,), (1395168739,), (1395168742,), (1395168747,), (1395168765,), (1395168780,), (1395168781,), (1395168784,), (1395168787,), (1395168789,), (1395168812,), (1395168815,), (1395168818,), (1395168823,), (1395168842,), (1395168848,), (1395168851,), (1395168853,), (1395168856,), (1395168865,), (1395168866,), (1395168869,), (1395168874,), (1395168877,), (1395168904,), (1395168905,), (1395168908,), (1395168948,), (1395168984,), (1395168993,), (1395169049,), (1395169070,), (1395169077,), (1395169079,), (1395169109,), (1395169114,), (1395169119,), (1395169122,), (1395169126,), (1395169149,), (1395169154,), (1395169158,), (1395169161,), (1395169164,), (1395169168,), (1395169178,), (1395169179,), (1395169183,), (1395169193,), (1395169214,), (1395169216,), (1395169219,), (1395169223,), (1395169227,), (1395169258,), (1395169248,), (1395169249,), (1395169254,), (1395169281,), (1395169282,), (1395169284,), (1395169288,), (1395169291,), (1395169312,), (1395169318,), (1395169322,), (1395169327,), (1395169334,), (1395169337,), (1395169340,), (1395169356,), (1395169359,), (1395169365,), (1395169369,), (1395169373,), (1395169378,), (1395169379,), (1395169380,), (1395169388,), (1395169391,), (1395169394,), (1395169416,), (1395169446,), (1395169463,), (1395169465,), (1395169466,), (1395169469,), (1395169472,), (1395169490,), (1395169637,), (1395169640,), (1395169642,), (1395169646,), (1395169823,), (1395169857,), (1395169890,), (1395169932,), (1395169967,), (1395170005,), (1395170341,), (1395170374,), (1395170408,), (1395170438,), (1395170563,), (1395170568,), (1395170573,), (1395170610,), (1395170675,), (1395170852,), (1395170853,), (1395170897,), (1395170975,), (1395171001,), (1395171014,), (1395171052,), (1395171103,), (1395171174,), (1395171210,), (1395171327,), (1395171333,), (1395171335,), (1395171340,), (1395171344,), (1395171842,), (1395171905,), (1395171926,), (1395171936,), (1395171971,), (1395172011,), (1395172254,), (1395172299,), (1395172346,), (1395172381,), (1395172424,), (1395172463,), (1395172498,), (1395172882,), (1395173258,), (1395173259,), (1395173648,), (1395173687,), (1395172130,), (1395172149,), (1395172156,), (1395172159,), (1395172228,), (1395172672,), (1395172719,), (1395172759,), (1395172795,), (1395172838,), (1395173007,), (1395173043,), (1395173076,), (1395173108,), (1395173149,), (1395173183,), (1395173238,), (1395173240,), (1395173253,), (1395173274,), (1395173276,), (1395173278,), (1395173310,), (1395173357,), (1395173395,), (1395173538,), (1395173575,), (1395173614,), (1395173778,), (1395173789,), (1395173793,), (1395173802,), (1395174052,), (1395174100,), (1395174145,), (1395174186,), (1395174228,), (1395174270,), (1395174561,), (1395174597,), (1395174621,), (1395174624,), (1395174806,), (1395174809,), (1395174824,), (1395174840,), (1395174844,), (1395174878,), (1395174925,), (1395174927,), (1395174929,), (1395174954,), (1395175010,), (1395175046,), (1395175080,), (1395175104,), (1395175109,), (1395175114,), (1395175136,), (1395175137,), (1395175138,), (1395175141,), (1395175164,), (1395175166,), (1395175168,), (1395175172,), (1395175185,), (1395175197,), (1395175222,), (1395175224,), (1395175226,), (1395175230,), (1395175234,), (1395175262,), (1395175266,), (1395175269,), (1395175272,), (1395175291,), (1395175332,), (1395175503,), (1395175496,), (1395175497,), (1395175500,), (1395175524,), (1395175526,), (1395175528,), (1395175532,), (1395175538,), (1395175542,), (1395175560,), (1395175562,), (1395175564,), (1395175568,), (1395175589,), (1395175594,), (1395175603,), (1395175612,), (1395175617,), (1395175622,), (1395175632,), (1395175634,), (1395175636,), (1395175640,), (1395175660,), (1395175661,), (1395175662,), (1395175664,), (1395175668,), (1395176008,), (1395176042,), (1395176059,), (1395176066,), (1395176072,), (1395176076,), (1395176239,), (1395176246,), (1395176248,), (1395176252,), (1395176257,), (1395176277,), (1395176280,), (1395176283,), (1395176286,), (1395176289,), (1395176330,), (1395176332,), (1395176334,), (1395176348,), (1395176355,), (1395176403,), (1395176414,), (1395176415,), (1395176417,), (1395176420,), (1395176423,), (1395176532,), (1395176564,), (1395176599,), (1395176620,), (1395176626,), (1395176630,), (1395176733,), (1395176736,), (1395176738,), (1395176837,), (1395176838,), (1395176839,), (1395176874,), (1395176883,), (1395176887,), (1395176891,), (1395176927,), (1395176931,), (1395176946,), (1395176947,), (1395176949,), (1395176911,), (1395176915,), (1395176918,), (1395176923,), (1395176956,), (1395177016,), (1395177018,), (1395177043,), (1395177046,), (1395177083,), (1395177086,), (1395177087,), (1395177130,), (1395177152,), (1395177154,), (1395177224,), (1395177225,), (1395177226,), (1395177228,), (1395177230,), (1395177255,), (1395177257,), (1395177259,), (1395177261,), (1395177306,), (1395177308,), (1395177310,), (1395177314,), (1395177318,), (1395177321,), (1395177328,), (1395177330,), (1395177332,), (1395177334,), (1395177337,), (1395177338,), (1395177341,), (1395177345,), (1395177349,), (1395177353,), (1395177371,), (1395177372,), (1395177374,), (1395177378,), (1395177402,), (1395177403,), (1395177404,), (1395177406,), (1395177412,), (1395177421,), (1395177459,), (1395177461,), (1395177463,), (1395177467,), (1395177494,), (1395177495,), (1395177497,), (1395177499,), (1395177501,), (1395177505,), (1395177552,), (1395177540,), (1395177542,), (1395177544,), (1395177548,), (1395177572,), (1395177574,), (1395177575,), (1395177581,), (1395177590,), (1395177594,), (1395177612,), (1395177613,), (1395177614,), (1395177616,), (1395177639,), (1395177640,), (1395177642,), (1395177646,), (1395177651,), (1395177654,), (1395177693,), (1395177705,), (1395177708,), (1395177710,), (1395177714,), (1395177717,), (1395177727,), (1395177729,), (1395177752,), (1395177861,), (1395177864,), (1395177867,), (1395177872,), (1395177877,), (1395177880,), (1395177895,), (1395177897,), (1395177898,), (1395177900,), (1395177925,), (1395177927,), (1395177929,), (1395177932,), (1395177937,), (1395177948,), (1395177974,), (1395177975,), (1395177976,), (1395177979,), (1395178013,), (1395178014,), (1395178015,), (1395178017,), (1395178021,), (1395178025,), (1395178046,), (1395178048,), (1395178049,), (1395178069,), (1395178074,), (1395178090,), (1395178092,), (1395178094,), (1395178098,), (1395178103,), (1395178805,), (1395178884,), (1395178955,), (1395179012,), (1395179073,), (1395179108,), (1395179161,), (1395179173,), (1395179206,), (1395179742,), (1395179765,), (1395179769,), (1395179776,), (1395179635,), (1395179679,), (1395179720,), (1395179734,), (1395179739,), (1395179749,), (1395179753,), (1395179757,), (1395179761,), (1395179782,), (1395179784,), (1395179788,), (1395179793,), (1395179798,), (1395179800,), (1395179818,), (1395179819,), (1395179820,), (1395179843,), (1395179845,), (1395179847,), (1395179851,), (1395179856,), (1395179860,), (1395179879,), (1395179880,), (1395179881,), (1395179883,), (1395179902,), (1395179903,), (1395179905,), (1395179909,), (1395179970,), (1395179972,), (1395179973,), (1395179976,), (1395179980,), (1395179983,), (1395180014,), (1395180033,), (1395180036,), (1395180041,), (1395180111,), (1395180112,), (1395180113,), (1395180116,), (1395180138,), (1395180140,), (1395180145,), (1395180149,), (1395180163,), (1395180209,), (1395180210,), (1395180295,), (1395180323,), (1395180328,), (1395180336,), (1395180342,), (1395180347,), (1395180381,), (1395180387,), (1395180391,), (1395180413,), (1395180414,), (1395180415,), (1395180450,), (1395180459,), (1395180461,), (1395180464,), (1395180467,), (1395180490,), (1395180868,), (1395180902,), (1395180941,), (1395180978,), (1395181015,), (1395181051,), (1395181388,), (1395181420,), (1395181452,), (1395181487,), (1395181522,), (1395181553,), (1395181554,), (1395181572,), (1395181629,), (1395181685,), (1395181753,), (1395182275,), (1395182313,), (1395182357,), (1395182426,), (1395182490,), (1395182676,), (1395182677,), (1395182678,), (1395182680,), (1395182724,), (1395182726,), (1395182728,), (1395182731,), (1395182735,), (1395182738,), (1395182750,), (1395182763,), (1395182765,), (1395182789,), (1395182793,), (1395182809,), (1395182812,), (1395182816,), (1395182819,), (1395182822,), (1395182844,), (1395182845,), (1395182846,), (1395182848,), (1395182876,), (1395182878,), (1395182879,), (1395182881,), (1395182884,), (1395182888,), (1395183021,), (1395183056,), (1395183176,), (1395183206,), (1395183241,), (1395183274,), (1395183312,), (1395182918,), (1395182920,), (1395182953,), (1395182988,), (1395183422,), (1395183455,), (1395183490,), (1395183524,), (1395183563,), (1395183574,), (1395183585,), (1395183586,), (1395183588,), (1395183592,), (1395183596,), (1395183618,), (1395183619,), (1395183620,), (1395183623,), (1395183627,), (1395183629,), (1395183644,), (1395183645,), (1395183646,), (1395183649,), (1395183652,), (1395183815,), (1395183834,), (1395183843,), (1395183861,), (1395183872,), (1395183901,), (1395183903,), (1395183906,), (1395183912,), (1395183936,), (1395184107,), (1395184108,), (1395184109,), (1395184111,), (1395184126,), (1395184138,), (1395184158,), (1395184160,), (1395184162,), (1395184166,), (1395184196,), (1395184197,), (1395184198,), (1395184200,), (1395184205,), (1395184208,), (1395184271,), (1395184272,), (1395184278,), (1395184309,), (1395184342,), (1395184374,), (1395184418,), (1395184420,), (1395184421,), (1395184423,), (1395184448,), (1395184449,), (1395184452,), (1395184456,), (1395184460,), (1395184489,), (1395184490,), (1395184491,), (1395184497,), (1395184510,), (1395184564,), (1395184566,), (1395184572,), (1395184783,), (1395184784,), (1395184786,), (1395184794,), (1395184829,), (1395184993,), (1395184981,), (1395184983,), (1395184985,), (1395184988,), (1395185603,), (1395185604,), (1395185605,), (1395185646,), (1395185647,), (1395185648,), (1395185670,), (1395185674,), (1395185680,), (1395185811,), (1395185813,), (1395185814,), (1395185817,), (1395186384,), (1395186387,), (1395186909,), (1395186775,), (1395186807,), (1395186860,), (1395187189,), (1395187197,), (1395187230,), (1395187262,), (1395187397,), (1395187398,), (1395187399,), (1395187401,), (1395187405,), (1395187410,), (1395187427,), (1395187429,), (1395187431,), (1395187434,), (1395187438,), (1395187762,), (1395187794,), (1395187831,), (1395187861,), (1395187893,), (1395188217,), (1395188220,), (1395188221,), (1395188224,), (1395188226,), (1395188437,), (1395188438,), (1395188440,), (1395188462,), (1395188502,), (1395188589,), (1395188590,), (1395188591,), (1395188593,), (1395188615,), (1395188617,), (1395188619,), (1395188649,), (1395188682,), (1395188717,), (1395189058,), (1395189090,), (1395189121,), (1395189152,), (1395189185,), (1395189540,), (1395189574,), (1395189605,), (1395189637,), (1395189676,), (1395189714,), (1395190145,), (1395201957,), (1395201922,), (1395201942,), (1395201954,), (1395202112,), (1395202114,), (1395202117,), (1395202120,), (1395202265,), (1395202266,), (1395202268,), (1395202272,), (1395202276,), (1395202280,), (1395202296,), (1395202297,), (1395202298,), (1395202311,), (1395202322,), (1395202425,), (1395202428,), (1395202630,), (1395202632,), (1395202634,), (1395202637,), (1395202876,), (1395203026,), (1395203057,), (1395203059,), (1395203083,), (1395203084,), (1395203119,), (1395203128,), (1395203186,), (1395203188,), (1395203190,), (1395203214,), (1395203217,), (1395203219,), (1395203221,), (1395203223,), (1395203226,), (1395203248,), (1395203249,), (1395203250,), (1395203253,), (1395203278,), (1395203281,), (1395203285,), (1395203290,), (1395203331,), (1395203333,), (1395203334,), (1395203336,), (1395203340,), (1395203343,), (1395203364,), (1395203366,), (1395203369,), (1395203371,), (1395203403,), (1395203404,), (1395203405,), (1395203407,), (1395203410,), (1395203414,), (1395203436,), (1395203438,), (1395203441,), (1395203444,), (1395203526,), (1395203566,), (1395203600,), (1395203632,), (1395203668,), (1395204001,), (1395204008,), (1395204013,), (1395204017,), (1395204021,), (1395204060,), (1395204063,), (1395204074,), (1395204101,), (1395204132,), (1395204163,), (1395204053,), (1395204054,), (1395204055,), (1395204057,), (1395204266,), (1395204298,), (1395204333,), (1395204366,), (1395204399,), (1395204765,), (1395204797,), (1395204831,), (1395204861,), (1395204893,), (1395205002,), (1395205034,), (1395205077,), (1395205118,), (1395205787,), (1395205816,), (1395205861,), (1395205918,), (1395205970,), (1395205974,), (1395206174,), (1395206204,), (1395206215,), (1395206219,), (1395206223,), (1395206412,), (1395206413,), (1395206414,), (1395206416,), (1395206418,), (1395206421,), (1395206628,), (1395206657,), (1395206687,), (1395206991,), (1395206992,), (1395206995,), (1395207000,), (1395207005,), (1395207008,), (1395207221,), (1395207251,), (1395207282,), (1395207313,), (1395207345,), (1395207574,), (1395207606,), (1395207655,), (1395207697,), (1395207700,), (1395207716,), (1395207933,), (1395207934,), (1395207935,), (1395207937,), (1395208077,), (1395208081,), (1395208084,), (1395208088,), (1395208118,), (1395208120,), (1395208122,), (1395208125,), (1395208129,), (1395208132,), (1395208164,), (1395208167,), (1395208170,), (1395208176,), (1395208181,), (1395208220,), (1395208208,), (1395208211,), (1395208215,), (1395208433,), (1395208466,), (1395208506,), (1395208566,), (1395208626,), (1395209356,), (1395209416,), (1395209464,), (1395209498,), (1395209667,), (1395209699,), (1395209723,), (1395209730,), (1395209873,), (1395209877,), (1395209878,), (1395209880,), (1395209882,), (1395210012,), (1395210828,), (1395210873,), (1395210875,), (1395210878,), (1395210883,), (1395210888,), (1395210926,), (1395210929,), (1395210932,), (1395210937,), (1395210943,), (1395210946,), (1395211097,), (1395211107,), (1395211119,), (1395211121,), (1395211123,), (1395211125,), (1395211129,), (1395211157,), (1395211171,), (1395211177,), (1395211181,), (1395211076,), (1395211080,), (1395211084,), (1395211088,), (1395211092,), (1395211140,), (1395211146,), (1395211149,), (1395211153,), (1395211155,), (1395211160,), (1395211162,), (1395211164,), (1395211167,), (1395211170,), (1395211313,), (1395211345,), (1395211379,), (1395211415,), (1395211448,), (1395211482,), (1395211685,), (1395211686,), (1395211687,), (1395211690,), (1395211719,), (1395211958,), (1395211971,), (1395211973,), (1395211976,), (1395211981,), (1395212144,), (1395212145,), (1395212147,), (1395212154,), (1395212161,), (1395212179,), (1395212212,), (1395212217,), (1395212220,), (1395212225,), (1395212230,), (1395212248,), (1395212249,), (1395212250,), (1395212251,), (1395212253,), (1395212399,), (1395212408,), (1395212410,), (1395212413,), (1395212417,), (1395212422,), (1395212664,), (1395212696,), (1395212732,), (1395212770,), (1395212794,), (1395212798,), (1395212807,), (1395212808,), (1395212814,), (1395212820,), (1395212835,), (1395212838,), (1395212840,), (1395212841,), (1395212842,), (1395212844,), (1395212852,), (1395212853,), (1395212854,), (1395212862,), (1395212874,), (1395212898,), (1395212905,), (1395212906,), (1395212909,), (1395212914,), (1395212972,), (1395212974,), (1395212976,), (1395212980,), (1395212986,), (1395213207,), (1395213170,), (1395213192,), (1395213196,), (1395213203,), (1395213386,), (1395213445,), (1395213496,), (1395213661,), (1395213662,), (1395213663,), (1395213664,), (1395213736,), (1395213737,), (1395213747,), (1395213749,), (1395213774,), (1395213775,), (1395213776,), (1395213778,), (1395213780,), (1395213784,), (1395213808,), (1395213809,), (1395213811,), (1395213815,), (1395213819,), (1395213843,), (1395213844,), (1395213845,), (1395213848,), (1395213897,), (1395213898,), (1395213900,), (1395213905,), (1395213910,), (1395214144,), (1395214147,), (1395214148,), (1395214161,), (1395214177,), (1395214279,), (1395214289,), (1395214295,), (1395214310,), (1395214314,), (1395214318,), (1395214325,), (1395214327,), (1395214334,), (1395214336,), (1395214381,), (1395214386,), (1395214390,), (1395214394,), (1395214398,), (1395214401,), (1395214410,), (1395214413,), (1395214416,), (1395214419,), (1395214464,), (1395214466,), (1395214468,), (1395214471,), (1395214477,), (1395214481,), (1395214951,), (1395214983,), (1395215017,), (1395215051,), (1395215162,), (1395215220,), (1395215279,), (1395215343,), (1395215406,), (1395215810,), (1395215694,), (1395215745,), (1395215788,), (1395216254,), (1395216316,), (1395216383,), (1395216447,), (1395216989,), (1395217013,), (1395217014,), (1395217016,), (1395217019,), (1395217022,), (1395217229,), (1395217264,), (1395217276,), (1395217288,), (1395217321,), (1395217332,), (1395217353,), (1395217355,), (1395217359,), (1395217363,), (1395217367,), (1395217375,), (1395217386,), (1395217387,), (1395217388,), (1395217390,), (1395217392,), (1395217394,), (1395217402,), (1395217404,), (1395217407,), (1395217410,), (1395217413,), (1395217419,), (1395217440,), (1395217444,), (1395217448,), (1395217451,), (1395217496,), (1395217498,), (1395217500,), (1395217504,), (1395217509,), (1395217552,), (1395217562,), (1395217564,), (1395217566,), (1395217597,), (1395217601,), (1395217631,), (1395217633,), (1395217635,), (1395217637,), (1395217649,), (1395217650,), (1395217651,), (1395217652,), (1395217656,), (1395217657,), (1395217690,), (1395217692,), (1395217694,), (1395217696,), (1395220651,), (1395220672,), (1395220673,), (1395220674,), (1395220678,), (1395220679,), (1395220680,), (1395220702,), (1395220703,), (1395220704,), (1395220705,), (1395220706,), (1395220708,), (1395220713,), (1395220746,), (1395220751,), (1395220753,), (1395219196,), (1395219230,), (1395219258,), (1395219289,), (1395219318,), (1395219349,), (1395219481,), (1395219514,), (1395219538,), (1395219541,), (1395219545,), (1395219548,), (1395219550,), (1395219579,), (1395219610,), (1395219642,), (1395219673,), (1395219704,), (1395219766,), (1395219768,), (1395219778,), (1395219811,), (1395219821,), (1395219823,), (1395219855,), (1395219857,), (1395219859,), (1395219860,), (1395219862,), (1395219871,), (1395219873,), (1395219875,), (1395219878,), (1395219881,), (1395219884,), (1395219912,), (1395219915,), (1395219918,), (1395219920,), (1395219947,), (1395219948,), (1395219953,), (1395219956,), (1395219994,), (1395219995,), (1395220147,), (1395220150,), (1395220189,), (1395220191,), (1395220194,), (1395220211,), (1395220269,), (1395220271,), (1395220300,), (1395220335,), (1395220366,), (1395220468,), (1395220482,), (1395220505,), (1395220539,), (1395220566,), (1395220569,), (1395220571,), (1395220572,), (1395220573,), (1395220598,), (1395219828,), (1395219836,), (1395219838,), (1395219840,), (1395219841,), (1395219846,), (1395219864,), (1395219892,), (1395219894,), (1395219901,), (1395219906,), (1395219908,), (1395219909,), (1395219923,), (1395219926,), (1395219930,), (1395219932,), (1395219934,), (1395219936,), (1395219938,), (1395219939,), (1395219959,), (1395219961,), (1395219963,), (1395219966,), (1395219968,), (1395219974,), (1395219991,), (1395219993,), (1395219996,), (1395219999,), (1395220002,), (1395220004,), (1395220113,), (1395220136,), (1395220139,), (1395220141,), (1395220143,), (1395220145,), (1395220154,), (1395220157,), (1395220161,), (1395220163,), (1395220167,), (1395220169,), (1395220176,), (1395220179,), (1395220180,), (1395220181,), (1395220197,), (1395220199,), (1395220201,), (1395220213,), (1395220215,), (1395220220,), (1395220225,), (1395220228,), (1395220238,), (1395220244,), (1395220260,), (1395220266,), (1395220267,), (1395220268,), (1395220398,), (1395220574,), (1395220575,), (1395220576,), (1395220625,), (1395220629,), (1395220644,), (1395220645,), (1395220648,), (1395220649,), (1395220650,), (1395220584,), (1395220586,), (1395220590,), (1395220593,), (1395220596,), (1395220601,), (1395220602,), (1395220613,), (1395220623,), (1395220653,), (1395220656,), (1395220659,), (1395220662,), (1395220665,), (1395220668,), (1395220688,), (1395220690,), (1395220695,), (1395220698,), (1395220700,), (1395220721,), (1395220724,), (1395220727,), (1395220730,), (1395220732,), (1395220733,), (1395220734,), (1395220735,), (1395220737,), (1395220740,), (1395220743,), (1395220754,), (1395220759,), (1395220764,), (1395220766,), (1395220769,), (1395220777,), (1395220778,), (1395220779,), (1395220781,), (1395220784,), (1395220786,), (1395220809,), (1395220811,), (1395220813,), (1395220815,), (1395220836,), (1395220837,), (1395220838,), (1395220840,), (1395220843,), (1395220845,), (1395220854,), (1395220855,), (1395220856,), (1395220859,), (1395220874,), (1395220880,), (1395220887,), (1395220890,), (1395220893,), (1395220896,), (1395220905,), (1395220906,), (1395220908,), (1395220915,), (1395220918,), (1395220937,), (1395220955,), (1395220990,), (1395221023,), (1395221059,), (1395221212,), (1395221242,), (1395221277,), (1395221312,), (1395221352,), (1395221426,), (1395221370,), (1395221371,), (1395221372,), (1395221387,), (1395221594,), (1395221596,), (1395221601,), (1395221613,), (1395221625,), (1395221630,), (1395221678,), (1395221680,), (1395221681,), (1395221684,), (1395221689,), (1395221691,), (1395221720,), (1395221722,), (1395221724,), (1395221974,), (1395222007,), (1395222036,), (1395222069,), (1395222099,), (1395222132,), (1395222491,), (1395222500,), (1395222501,), (1395222527,), (1395222684,), (1395222720,), (1395222750,), (1395222782,), (1395222792,), (1395222797,), (1395222949,), (1395222950,), (1395222951,), (1395222954,), (1395222997,), (1395222999,), (1395223000,), (1395223004,), (1395223008,), (1395223155,), (1395223177,), (1395223178,), (1395223180,), (1395223184,), (1395223216,), (1395223217,), (1395223218,), (1395223219,), (1395223222,), (1395223224,), (1395223264,), (1395223266,), (1395223268,), (1395223271,), (1395223279,), (1395223285,), (1395223309,), (1395223310,), (1395223311,), (1395223316,), (1395223322,), (1395223355,), (1395223357,), (1395223359,), (1395223398,), (1395223401,), (1395223402,), (1395223403,), (1395223405,), (1395223474,), (1395223444,), (1395223450,), (1395223452,), (1395223464,), (1395223568,), (1395223598,), (1395223628,), (1395223762,), (1395223768,), (1395223769,), (1395223840,), (1395223842,), (1395223918,), (1395223964,), (1395224669,), (1395224714,), (1395225148,), (1395225208,), (1395225263,), (1395225296,), (1395225330,), (1395225364,), (1395225429,), (1395225430,), (1395225431,), (1395225433,), (1395225440,), (1395225463,), (1395225465,), (1395225467,), (1395225470,), (1395225472,), (1395225477,), (1395225533,), (1395225534,), (1395225535,), (1395225536,), (1395225679,), (1395225711,), (1395225743,), (1395225765,), (1395225769,), (1395225872,), (1395225873,), (1395225874,), (1395225875,), (1395225893,), (1395225926,), (1395225977,), (1395225978,), (1395225980,), (1395225984,), (1395225988,), (1395226010,), (1395226011,), (1395226013,), (1395226014,), (1395226017,), (1395226021,), (1395226049,), (1395226053,), (1395226056,), (1395226065,), (1395226067,), (1395226071,), (1395226080,), (1395226041,), (1395226043,), (1395226046,), (1395226083,), (1395226085,), (1395226089,), (1395226093,), (1395226100,), (1395226102,), (1395226113,), (1395226115,), (1395226117,), (1395226125,), (1395226272,), (1395226276,), (1395226277,), (1395226280,), (1395226283,), (1395226287,), (1395226311,), (1395226313,), (1395226315,), (1395226318,), (1395226352,), (1395226353,), (1395226356,), (1395226361,), (1395226365,), (1395226369,), (1395226380,), (1395226381,), (1395226382,), (1395226383,), (1395226385,), (1395226386,), (1395226389,), (1395226393,), (1395226396,), (1395226636,), (1395226664,), (1395226697,), (1395226729,), (1395226763,), (1395226801,), (1395227117,), (1395227126,), (1395227127,), (1395227130,), (1395227133,), (1395227148,), (1395227150,), (1395227152,), (1395227155,), (1395227159,), (1395227163,), (1395227187,), (1395227188,), (1395227189,), (1395227192,), (1395227197,), (1395227265,), (1395227293,), (1395227356,), (1395227357,), (1395227648,), (1395227642,), (1395227643,), (1395227645,), (1395227673,), (1395227674,), (1395227676,), (1395227678,), (1395227681,), (1395227684,), (1395227712,), (1395227713,), (1395227714,), (1395227716,), (1395227718,), (1395227743,), (1395227745,), (1395227747,), (1395227750,), (1395227753,), (1395227772,), (1395227774,), (1395227776,), (1395227811,), (1395227813,), (1395227816,), (1395227821,), (1395227826,), (1395227831,), (1395227848,), (1395227850,), (1395227855,), (1395227860,), (1395227893,), (1395227895,), (1395227897,), (1395227901,), (1395227905,), (1395227925,), (1395227926,), (1395227927,), (1395227929,), (1395227990,), (1395227993,), (1395227996,), (1395227999,), (1395228003,), (1395228052,), (1395228032,), (1395228036,), (1395228039,), (1395228046,), (1395228078,), (1395228081,), (1395228083,), (1395228085,), (1395228125,), (1395228127,), (1395228128,), (1395228129,), (1395228132,), (1395228135,), (1395228162,), (1395228164,), (1395228166,), (1395228168,), (1395228192,), (1395228193,), (1395228194,), (1395228198,), (1395228208,), (1395228245,), (1395228251,), (1395228254,), (1395228264,), (1395228272,), (1395228288,), (1395228290,), (1395228294,), (1395228299,), (1395228303,), (1395228334,), (1395228337,), (1395228339,), (1395228342,), (1395228346,), (1395228367,), (1395228368,), (1395228369,), (1395228371,), (1395228375,), (1395228378,), (1395228400,), (1395228402,), (1395228404,), (1395228407,), (1395228411,), (1395228466,), (1395228470,), (1395228478,), (1395228484,), (1395228486,), (1395228489,), (1395228515,), (1395228518,), (1395228519,), (1395228520,), (1395228524,), (1395228552,), (1395228555,), (1395228560,), (1395228564,), (1395228587,), (1395228613,), (1395228646,), (1395228679,), (1395228712,), (1395228749,), (1395228879,), (1395228881,), (1395228883,), (1395228886,), (1395228909,), (1395228910,), (1395228912,), (1395228914,), (1395228919,), (1395228924,), (1395228960,), (1395228952,), (1395228954,), (1395228956,), (1395228982,), (1395228985,), (1395228992,), (1395229006,), (1395229008,), (1395229031,), (1395229033,), (1395229035,), (1395229039,), (1395229044,), (1395229410,), (1395229436,), (1395229439,), (1395229444,), (1395229449,), (1395229452,), (1395229601,), (1395229607,), (1395229646,), (1395229653,), (1395229704,), (1395229709,), (1395229713,), (1395229720,), (1395229722,), (1395229726,), (1395229740,), (1395229748,), (1395229760,), (1395229763,), (1395229804,), (1395229811,), (1395229812,), (1395229814,), (1395229818,), (1395229823,), (1395229845,), (1395229847,), (1395229849,), (1395229853,), (1395230145,), (1395230178,), (1395230205,), (1395230209,), (1395230217,), (1395230226,), (1395230247,), (1395230249,), (1395230251,), (1395230281,), (1395230284,), (1395230291,), (1395230297,), (1395230302,), (1395230321,), (1395230356,), (1395230358,), (1395230362,), (1395230388,), (1395230389,), (1395230390,), (1395230392,), (1395230396,), (1395230400,), (1395230425,), (1395230428,), (1395230432,), (1395234157,), (1395233379,), (1395233967,), (1395234031,), (1395234097,), (1395235035,), (1395235079,), (1395235113,), (1395235135,), (1395235563,), (1395235654,), (1395235734,), (1395235790,), (1395235856,), (1395236355,), (1395236357,), (1395236359,), (1395236369,), (1395236404,), (1395236610,), (1395236614,), (1395236615,), (1395236616,), (1395236641,), (1395237020,), (1395237051,), (1395237059,), (1395237061,), (1395237063,), (1395237067,), (1395237250,), (1395237252,), (1395237257,), (1395237289,), (1395237375,), (1395237404,), (1395237432,), (1395237463,), (1395237495,), (1395237760,), (1395237775,), (1395237778,), (1395237781,), (1395237819,), (1395238020,), (1395238037,), (1395238046,), (1395238048,), (1395238101,), (1395238125,), (1395238144,), (1395238147,), (1395238151,), (1395238181,), (1395238182,), (1395238183,), (1395238185,), (1395238188,), (1395238224,), (1395238245,), (1395238270,), (1395238314,), (1395238342,), (1395238344,), (1395238345,), (1395238350,), (1395238359,), (1395238367,), (1395238401,), (1395238403,), (1395238405,), (1395238433,), (1395238434,), (1395238435,), (1395238437,), (1395238441,), (1395238445,), (1395238462,), (1395238464,), (1395238468,), (1395238472,), (1395238477,), (1395238481,), (1395238505,), (1395238506,), (1395238507,), (1395238509,), (1395238545,), (1395238548,), (1395238551,), (1395238555,), (1395238559,), (1395238575,), (1395238576,), (1395238577,), (1395238580,), (1395238585,), (1395238611,), (1395238613,), (1395238615,), (1395238618,), (1395238643,), (1395238644,), (1395238645,), (1395238648,), (1395238651,), (1395238654,), (1395238687,), (1395238688,), (1395238690,), (1395238694,), (1395238717,), (1395238718,), (1395238719,), (1395238721,), (1395238725,), (1395238728,), (1395238753,), (1395238755,), (1395238757,), (1395238760,), (1395238783,), (1395238784,), (1395238785,), (1395238786,), (1395238790,), (1395238792,), (1395238808,), (1395238811,), (1395238813,), (1395238816,), (1395238822,), (1395238831,), (1395238860,), (1395238864,), (1395238868,), (1395238880,), (1395238881,), (1395238882,), (1395238883,), (1395238852,), (1395238853,), (1395238856,), (1395238889,), (1395238891,), (1395238894,), (1395238898,), (1395238902,), (1395238906,), (1395238948,), (1395238949,), (1395238950,), (1395238953,), (1395238998,), (1395239000,), (1395239002,), (1395239005,), (1395239010,), (1395239015,), (1395239027,), (1395239030,), (1395239035,), (1395239059,), (1395239062,), (1395239064,), (1395239068,), (1395239072,), (1395239112,), (1395239114,), (1395239122,), (1395239125,), (1395239129,), (1395239182,), (1395239202,), (1395239204,), (1395239207,), (1395239240,), (1395239241,), (1395239242,), (1395239243,), (1395239246,), (1395239249,), (1395239285,), (1395239287,), (1395239289,), (1395239293,), (1395239310,), (1395239333,), (1395239355,), (1395239361,), (1395239365,), (1395239369,), (1395239383,), (1395239385,), (1395239387,), (1395239391,), (1395239503,), (1395239510,), (1395239511,), (1395239512,), (1395239516,), (1395239559,), (1395239561,), (1395239563,), (1395239567,), (1395239572,), (1395239766,), (1395239768,), (1395239772,), (1395239777,), (1395239781,), (1395239796,), (1395239967,), (1395239942,), (1395239943,), (1395239949,), (1395239959,), (1395239986,), (1395239988,), (1395239989,), (1395239991,), (1395239994,), (1395239999,), (1395240023,), (1395240025,), (1395240027,), (1395240030,), (1395240059,), (1395240060,), (1395240061,), (1395240064,), (1395240091,), (1395240132,), (1395240135,), (1395240137,), (1395240140,), (1395240143,), (1395240162,), (1395240163,), (1395240164,), (1395240167,), (1395240175,), (1395240179,), (1395240199,), (1395240201,), (1395240203,), (1395240205,), (1395240209,), (1395240550,), (1395240609,), (1395240653,), (1395240685,), (1395240718,), (1395241102,), (1395241145,), (1395241183,), (1395241224,), (1395241262,), (1395241296,), (1395241539,), (1395241540,), (1395241541,), (1395241543,), (1395241578,), (1395241579,), (1395241583,), (1395241588,), (1395241592,), (1395241595,), (1395241605,), (1395241607,), (1395241608,), (1395241612,), (1395241613,), (1395241616,), (1395241621,), (1395241625,), (1395241650,), (1395241652,), (1395241654,), (1395241657,), (1395242234,), (1395242294,), (1395242338,), (1395242374,), (1395242410,), (1395242448,), (1395243042,), (1395242905,), (1395242950,), (1395242980,), (1395243011,), (1395243621,), (1395243637,), (1395243639,), (1395243642,), (1395243677,), (1395243933,), (1395243934,), (1395243939,), (1395243967,), (1395243989,), (1395244055,), (1395244057,), (1395244059,), (1395244062,), (1395244066,), (1395244085,), (1395244115,), (1395244116,), (1395244117,), (1395244120,), (1395244125,), (1395244129,), (1395244140,), (1395244144,), (1395244146,), (1395244147,), (1395244151,), (1395244157,), (1395244158,), (1395244162,), (1395244167,), (1395244171,), (1395244202,), (1395244204,), (1395244206,), (1395244210,), (1395244215,), (1395244232,), (1395244234,), (1395244236,), (1395244238,), (1395244241,), (1395244246,), (1395244274,), (1395244275,), (1395244277,), (1395244281,), (1395244285,), (1395244289,), (1395244303,), (1395244306,), (1395244309,), (1395244313,), (1395244316,), (1395244319,), (1395244357,), (1395244359,), (1395244383,), (1395244388,), (1395244393,), (1395244394,), (1395244430,), (1395244440,), (1395244446,), (1395244450,), (1395244454,), (1395244458,), (1395244463,), (1395244471,), (1395244487,), (1395244510,), (1395244513,), (1395244516,), (1395244519,), (1395244563,), (1395244595,), (1395244625,), (1395244657,), (1395244699,), (1395244706,), (1395244709,), (1395244712,), (1395244715,), (1395244718,), (1395244882,), (1395244787,), (1395244822,), (1395244852,), (1395245033,), (1395245073,), (1395245096,), (1395245100,), (1395245114,), (1395245118,), (1395245180,), (1395245182,), (1395245184,), (1395245187,), (1395245206,), (1395245208,), (1395245214,), (1395245225,), (1395245230,), (1395245250,), (1395245252,), (1395245254,), (1395245259,), (1395245284,), (1395245646,), (1395245668,), (1395245669,), (1395245671,), (1395245678,), (1395245785,), (1395245787,), (1395245789,), (1395245793,), (1395245797,), (1395245800,), (1395245862,), (1395245863,), (1395245864,), (1395245867,), (1395245919,), (1395245949,), (1395245981,), (1395246014,), (1395246049,), (1395246089,), (1395246243,), (1395246244,), (1395246246,), (1395246250,), (1395246287,), (1395246288,), (1395246289,), (1395246292,), (1395246297,), (1395246300,), (1395246333,), (1395246335,), (1395246337,), (1395246341,), (1395246344,), (1395246369,), (1395246370,), (1395246371,), (1395246373,), (1395246398,), (1395246401,), (1395246405,), (1395246410,), (1395246415,), (1395246417,), (1395246444,), (1395246448,), (1395246449,), (1395246488,), (1395246477,), (1395246478,), (1395246479,), (1395246481,), (1395246484,), (1395246503,), (1395246504,), (1395246505,), (1395246508,), (1395246511,), (1395246514,), (1395246530,), (1395246531,), (1395246925,), (1395246934,), (1395246935,), (1395246936,), (1395246939,), (1395246942,), (1395247136,), (1395247161,), (1395247166,), (1395247169,), (1395247201,), (1395247202,), (1395247204,), (1395247208,), (1395247211,), (1395247215,), (1395247226,), (1395247227,), (1395247228,), (1395247229,), (1395247240,), (1395247242,), (1395247245,), (1395247249,), (1395247290,), (1395247292,), (1395247294,), (1395247297,), (1395247301,), (1395247304,), (1395247351,), (1395247353,), (1395247355,), (1395247358,), (1395247360,), (1395247365,), (1395247388,), (1395247391,), (1395247395,), (1395247423,), (1395247426,), (1395247427,), (1395247428,), (1395247430,), (1395247460,), (1395247470,), (1395247472,), (1395247474,), (1395247478,), (1395247496,), (1395247497,), (1395247498,), (1395247502,), (1395247536,), (1395247850,), (1395247856,), (1395247863,), (1395247866,), (1395247871,), (1395247873,), (1395247885,), (1395247886,), (1395247888,), (1395247890,), (1395247935,), (1395247946,), (1395247949,), (1395247951,), (1395247952,), (1395247923,), (1395247924,), (1395247926,), (1395247929,), (1395247932,), (1395247982,), (1395248005,), (1395248009,), (1395248039,), (1395248064,), (1395248066,), (1395248068,), (1395248071,), (1395248075,), (1395248087,), (1395248116,), (1395248117,), (1395248118,), (1395248121,), (1395248125,), (1395248420,), (1395248453,), (1395248460,), (1395248463,), (1395248493,), (1395248494,), (1395248503,), (1395248505,), (1395248514,), (1395248525,), (1395248549,), (1395248551,), (1395248553,), (1395248556,), (1395248578,), (1395248579,), (1395248580,), (1395248582,), (1395248585,), (1395248589,), (1395248610,), (1395248611,), (1395248642,), (1395248652,), (1395248685,), (1395248715,), (1395248749,), (1395248784,), (1395248889,), (1395248891,), (1395248895,), (1395248899,), (1395248903,), (1395248907,), (1395248915,), (1395248916,), (1395248917,), (1395248918,), (1395248919,), (1395248922,), (1395248927,), (1395248953,), (1395248955,), (1395248957,), (1395248960,), (1395248964,), (1395248968,), (1395249556,), (1395249589,), (1395249622,), (1395249657,), (1395249687,), (1395249938,), (1395250001,), (1395250042,), (1395250076,), (1395250124,), (1395250555,), (1395250625,), (1395250692,), (1395251369,), (1395251400,), (1395251433,), (1395250451,), (1395250485,), (1395250518,), (1395250928,), (1395250978,), (1395251015,), (1395251050,), (1395251104,), (1395251181,), (1395251476,), (1395251480,), (1395251485,), (1395251488,), (1395251491,), (1395251522,), (1395251702,), (1395251704,), (1395251728,), (1395251736,), (1395251777,), (1395251778,), (1395251780,), (1395251784,), (1395251789,), (1395251792,), (1395251809,), (1395251810,), (1395251813,), (1395251818,), (1395251823,), (1395251825,), (1395251835,), (1395251838,), (1395251843,), (1395251848,), (1395251851,), (1395251859,), (1395251863,), (1395251868,), (1395251873,), (1395251887,), (1395251889,), (1395251891,), (1395251894,), (1395251901,), (1395251951,), (1395251953,), (1395251955,), (1395251960,), (1395251964,), (1395251980,), (1395251982,), (1395251984,), (1395251998,), (1395252005,), (1395252070,), (1395252071,), (1395252073,), (1395252085,), (1395252090,), (1395252094,), (1395252130,), (1395252137,), (1395252143,), (1395252152,), (1395252162,), (1395252165,), (1395252169,), (1395252173,), (1395252222,), (1395252224,), (1395252225,), (1395252230,), (1395252240,), (1395252242,), (1395252287,), (1395252288,), (1395252295,), (1395252302,), (1395252307,), (1395252464,), (1395252465,), (1395252467,), (1395252469,), (1395252471,), (1395252524,), (1395252533,), (1395252535,), (1395252537,), (1395252539,), (1395252541,), (1395252506,), (1395252508,), (1395252512,), (1395252517,), (1395252521,), (1395252546,), (1395252548,), (1395252553,), (1395252558,), (1395252803,), (1395252834,), (1395252863,), (1395252880,), (1395252883,), (1395252888,), (1395253168,), (1395253180,), (1395253185,), (1395253193,), (1395253640,), (1395253706,), (1395253762,), (1395253794,), (1395253830,), (1395253868,), (1395254065,), (1395254066,), (1395254067,), (1395254070,), (1395254075,), (1395254330,), (1395254332,), (1395254333,), (1395254371,), (1395254458,), (1395254459,), (1395254460,), (1395254463,), (1395254468,), (1395254494,), (1395254496,), (1395254497,), (1395254500,), (1395254506,), (1395254511,), (1395254564,), (1395254567,), (1395254576,), (1395254586,), (1395254590,), (1395254794,), (1395254797,), (1395254800,), (1395254822,), (1395254826,), (1395254829,), (1395254851,), (1395254882,), (1395254916,), (1395254939,), (1395254951,), (1395254955,), (1395254957,), (1395254962,), (1395254970,), (1395255068,), (1395255070,), (1395255071,), (1395255073,), (1395255077,), (1395255090,), (1395255115,), (1395255116,), (1395255117,), (1395255118,), (1395255138,), (1395255140,), (1395255142,), (1395255148,), (1395255152,), (1395255195,), (1395255199,), (1395255215,), (1395255217,), (1395255219,), (1395255220,), (1395255183,), (1395255184,), (1395255187,), (1395255191,), (1395255229,), (1395255233,), (1395255237,), (1395255241,), (1395255246,), (1395255262,), (1395255263,), (1395255264,), (1395255266,), (1395255271,), (1395255276,), (1395255309,), (1395255310,), (1395255311,), (1395255312,), (1395255318,), (1395255341,), (1395255342,), (1395255343,), (1395255345,), (1395255350,), (1395255353,), (1395255379,), (1395255380,), (1395255384,), (1395255389,), (1395255393,), (1395255395,), (1395255405,), (1395255407,), (1395255409,), (1395255411,), (1395255456,), (1395255461,), (1395255466,), (1395255470,), (1395255474,), (1395255478,), (1395255491,), (1395255527,), (1395255557,), (1395255590,), (1395255644,), (1395255645,), (1395255646,), (1395255648,), (1395255652,), (1395255683,), (1395255685,), (1395255687,), (1395255691,), (1395255723,), (1395255724,), (1395255725,), (1395255728,), (1395255731,), (1395255734,), (1395255764,), (1395255778,), (1395257846,), (1395257871,), (1395257874,), (1395257984,), (1395258558,), (1395259108,), (1395260003,), (1395260038,), (1395260046,), (1395260049,), (1395260053,), (1395260057,), (1395260195,), (1395260226,), (1395260407,), (1395260409,), (1395260465,), (1395260472,), (1395260473,), (1395260476,), (1395260480,), (1395260533,), (1395260535,), (1395260537,), (1395260539,), (1395260571,), (1395260573,), (1395260576,), (1395260581,), (1395260586,), (1395260591,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19112025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28722077]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] map_info['map_portfolio_photo'] : {28722077: [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571, 1395260539, 1395260537, 1395260535, 1395260533, 1395260480, 1395260476, 1395260473, 1395260472, 1395260465, 1395260409, 1395260407, 1395260226, 1395260195, 1395260057, 1395260053, 1395260049, 1395260046, 1395260038, 1395260003, 1395259108, 1395258558, 1395257984, 1395257874, 1395257871]} final : True mtd_id 4302 list_pids : [1395260591, 1395260586, 1395260581, 1395260576, 1395260573, 1395260571] Looping around the photos to save general results len do output : 1 /28722077Didn'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, '4080367') ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367') ('4302', None, None, None, None, None, None, None, '4080367') ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '28722077', 'None', None, None, None, None, '4080367'), ('4302', '28722077', '1395260591', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260586', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260581', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260576', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260573', None, None, None, None, None, '4080367'), ('4302', '28722077', '1395260571', None, None, None, None, None, '4080367')] time used for this insertion : 0.013885498046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.444061756134033 time spend to save output : 0.014101982116699219 total time spend for step 5 : 4.458163738250732 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 (4080367) 2.08user 2.65system 0:10.85elapsed 43%CPU (0avgtext+0avgdata 159216maxresident)k 16inputs+5984outputs (4major+63983minor)pagefaults 0swaps