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 : 3697705 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 (4261789) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4261789) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616211 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4261789'] with mtr_portfolio_ids : ['29616211'] and first list_photo_ids : [] new path : /proc/3697705/ Name: python3 Umask: 0002 State: R (running) Tgid: 3697705 Ngid: 0 Pid: 3697705 PPid: 3697704 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3697705 NSpid: 3697705 NSpgid: 3696678 NSsid: 3696678 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105216 kB VmRSS: 105216 kB RssAnon: 66284 kB RssFile: 38932 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 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: 48 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3697705', 'Ngid': '0', 'Pid': '3697705', 'PPid': '3697704', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3697705', 'NSpid': '3697705', 'NSpgid': '3696678', 'NSsid': '3696678', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105216 kB', 'VmRSS': '105216 kB', 'RssAnon': '66284 kB', 'RssFile': '38932 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 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': '48', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '3697705', '1113364', '0', '1113364', '872092', '105216', b'', 'marlene', '4261789') 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 (29616211) 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 (4261789 ) ) 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 (29616211) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400527141, 'portfolio_id': 29616211}, {'photo_id': 1400526939, 'portfolio_id': 29616211}, {'photo_id': 1400526937, 'portfolio_id': 29616211}, {'photo_id': 1400526904, 'portfolio_id': 29616211}, {'photo_id': 1400526902, 'portfolio_id': 29616211}, {'photo_id': 1400526870, 'portfolio_id': 29616211}, {'photo_id': 1400526869, 'portfolio_id': 29616211}, {'photo_id': 1400526730, 'portfolio_id': 29616211}, {'photo_id': 1400526696, 'portfolio_id': 29616211}, {'photo_id': 1400526663, 'portfolio_id': 29616211}, {'photo_id': 1400526630, 'portfolio_id': 29616211}, {'photo_id': 1400526330, 'portfolio_id': 29616211}, {'photo_id': 1400526329, 'portfolio_id': 29616211}, {'photo_id': 1400526314, 'portfolio_id': 29616211}] map_portfolio_id_photo_id: {29616211: [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314]} ##### 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.016967058181762695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 23 05:49:58 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 (29616211) 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 : 29616211 get user id for portfolio 29616211 get sub ptf for main ptf 29616211, type 3726 and hashtags ['papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'flou', 'mal_croppe', 'cartonnette', 'kraft', 'autre_refus', 'environnement', 'Carton_gris'] 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`=29616211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','Teint_Dans_La_Masse','plastique','metal','flou','mal_croppe','cartonnette','kraft','autre_refus','environnement','Carton_gris')) 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`=29616211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','Teint_Dans_La_Masse','plastique','metal','flou','mal_croppe','cartonnette','kraft','autre_refus','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29616211, 'sub_port_id': 29616212, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217568, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'plastique': {'main_port_id': 29616211, 'sub_port_id': 29616213, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217569, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'kraft': {'main_port_id': 29616211, 'sub_port_id': 29616214, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217570, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'flou': {'main_port_id': 29616211, 'sub_port_id': 29616215, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217571, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'mal_croppe': {'main_port_id': 29616211, 'sub_port_id': 29616216, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217572, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'cartonnette': {'main_port_id': 29616211, 'sub_port_id': 29616217, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217573, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'Carton_brun': {'main_port_id': 29616211, 'sub_port_id': 29616218, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217574, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'autre_refus': {'main_port_id': 29616211, 'sub_port_id': 29616219, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217575, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'papier': {'main_port_id': 29616211, 'sub_port_id': 29616220, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217576, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'environnement': {'main_port_id': 29616211, 'sub_port_id': 29616221, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217577, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'metal': {'main_port_id': 29616211, 'sub_port_id': 29616222, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217578, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}, 'Carton_gris': {'main_port_id': 29616211, 'sub_port_id': 29616223, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217579, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29616212 , 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=29616211 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 (29616212) result : ((1400527149,), (1400527150,), (1400527281,), (1400527282,), (1400528408,), (1400528409,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616213 , 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=29616211 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 (29616213) result : ((1400528427,), (1400528428,), (1400528429,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616214 , 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=29616211 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 (29616214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616215 , 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=29616211 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 (29616215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616216 , 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=29616211 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 (29616216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616217 , 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=29616211 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 (29616217) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616218 , 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=29616211 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 (29616218) result : ((1400528417,), (1400528418,), (1400528419,), (1400528420,), (1400528423,), (1400528424,), (1400528425,), (1400528426,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616219 , 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=29616211 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 (29616219) result : ((1400527283,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616220 , 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=29616211 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 (29616220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616221 , 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=29616211 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 (29616221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616222 , 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=29616211 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 (29616222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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 29616223 , 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=29616211 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 (29616223) result : ((1400528412,), (1400528413,), (1400528414,), (1400528415,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29616211) result : ((1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,)) 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`=29616211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','Teint_Dans_La_Masse','plastique','metal','flou','mal_croppe','cartonnette','kraft','autre_refus','environnement','Carton_gris')) 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`=29616211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','Teint_Dans_La_Masse','plastique','metal','flou','mal_croppe','cartonnette','kraft','autre_refus','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29616211, 'sub_port_id': 29616224, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217580, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'plastique': {'main_port_id': 29616211, 'sub_port_id': 29616225, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217581, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'kraft': {'main_port_id': 29616211, 'sub_port_id': 29616226, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217582, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'flou': {'main_port_id': 29616211, 'sub_port_id': 29616227, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217583, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'mal_croppe': {'main_port_id': 29616211, 'sub_port_id': 29616228, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217584, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'cartonnette': {'main_port_id': 29616211, 'sub_port_id': 29616229, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217585, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'Carton_brun': {'main_port_id': 29616211, 'sub_port_id': 29616230, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217586, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'autre_refus': {'main_port_id': 29616211, 'sub_port_id': 29616231, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217587, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'papier': {'main_port_id': 29616211, 'sub_port_id': 29616232, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217588, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'environnement': {'main_port_id': 29616211, 'sub_port_id': 29616233, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217589, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'metal': {'main_port_id': 29616211, 'sub_port_id': 29616234, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217590, 'last_updated_at': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 13, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}, 'Carton_gris': {'main_port_id': 29616211, 'sub_port_id': 29616235, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20217591, 'last_updated_at': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 13, 58, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29616235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29616223 lien utilise dans velours : https://marlene.fotonower.com/velours/29616224,29616225,29616226,29616227,29616228,29616229,29616230,29616231,29616232,29616233,29616234,29616235?tags=Teint_Dans_La_Masse,plastique,kraft,flou,mal_croppe,cartonnette,Carton_brun,autre_refus,papier,environnement,metal,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29616211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] map_info['map_portfolio_photo'] : {29616211: [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314]} final : False mtd_id 4302 list_pids : [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] Looping around the photos to save general results len do output : 1 /29616211. 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, '4261789') ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29616211', "{'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223}", None, None, None, None, '4261789'), ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789')] time used for this insertion : 0.016714096069335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8339755535125732 time spend to save output : 0.017008066177368164 total time spend for step 1 : 1.8509836196899414 step2:final Tue Dec 23 05:49: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 (29616211) 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 29616211 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400526314,1400526330,1400526329,1400526730,1400526696,1400526663,1400526630,1400526937,1400526939,1400526902,1400526904,1400526869,1400526870,1400527141); 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([29616211]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} new output for save of step final : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] map_info['map_portfolio_photo'] : {29616211: [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314]} final : False mtd_id 4302 list_pids : [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] Looping around the photos to save general results len do output : 14 /1400527141.Didn't retrieve data . /1400526939.Didn't retrieve data . /1400526937.Didn't retrieve data . /1400526904.Didn't retrieve data . /1400526902.Didn't retrieve data . /1400526870.Didn't retrieve data . /1400526869.Didn't retrieve data . /1400526730.Didn't retrieve data . /1400526696.Didn't retrieve data . /1400526663.Didn't retrieve data . /1400526630.Didn't retrieve data . /1400526330.Didn't retrieve data . /1400526329.Didn't retrieve data . /1400526314.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, '4261789') ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29616211', '1400527141', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526939', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526937', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526904', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526902', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526870', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526869', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526730', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526696', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526663', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526630', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526330', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526329', '0.046194094391859175', None, None, None, None, '4261789'), ('4302', '29616211', '1400526314', '0.046194094391859175', None, None, None, None, '4261789')] time used for this insertion : 0.01779341697692871 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07702064514160156 time spend to save output : 0.018407106399536133 total time spend for step 2 : 0.0954277515411377 step3:velours_tree Tue Dec 23 05:49: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 : {29616211: [{'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223}]} input_args_next_step : {29616211: ()} output_args : {29616211: [{'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223}]} args : 29616211 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 : ({'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29616211) 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([29616211]) 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.23932623863220215 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.23937463760375977 step4:send_mail_cod Tue Dec 23 05:50:00 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 : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} input_args_next_step : {1400527141: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400527141 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526939 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526937 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526904 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526902 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526870 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526869 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526730 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526696 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526663 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526630 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526330 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526329 depend.output_id : 0 input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ()} output_args : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',)} args : 1400526314 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 : {29616211: [{'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223}]} input_args_next_step : {1400527141: ('0.046194094391859175',), 1400526939: ('0.046194094391859175',), 1400526937: ('0.046194094391859175',), 1400526904: ('0.046194094391859175',), 1400526902: ('0.046194094391859175',), 1400526870: ('0.046194094391859175',), 1400526869: ('0.046194094391859175',), 1400526730: ('0.046194094391859175',), 1400526696: ('0.046194094391859175',), 1400526663: ('0.046194094391859175',), 1400526630: ('0.046194094391859175',), 1400526330: ('0.046194094391859175',), 1400526329: ('0.046194094391859175',), 1400526314: ('0.046194094391859175',), 29616211: ()} output_args : {29616211: [{'Teint_Dans_La_Masse': 29616212, 'plastique': 29616213, 'kraft': 29616214, 'flou': 29616215, 'mal_croppe': 29616216, 'cartonnette': 29616217, 'Carton_brun': 29616218, 'autre_refus': 29616219, 'papier': 29616220, 'environnement': 29616221, 'metal': 29616222, 'Carton_gris': 29616223}]} args : 29616211 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 :15, first value : ('0.046194094391859175',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29616211) 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 (1400527141,1400526939,1400526937,1400526904,1400526902,1400526870,1400526869,1400526730,1400526696,1400526663,1400526630,1400526330,1400526329,1400526314) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400526314 begin to download photo : 1400526630 begin to download photo : 1400526730 begin to download photo : 1400526902 begin to download photo : 1400526939 download finish for photo 1400526314 begin to download photo : 1400526329 download finish for photo 1400526630 begin to download photo : 1400526663 download finish for photo 1400526730 begin to download photo : 1400526869 download finish for photo 1400526939 begin to download photo : 1400527141 download finish for photo 1400526902 begin to download photo : 1400526904 download finish for photo 1400526329 begin to download photo : 1400526330 download finish for photo 1400526869 begin to download photo : 1400526870 download finish for photo 1400527141 download finish for photo 1400526904 begin to download photo : 1400526937 download finish for photo 1400526663 begin to download photo : 1400526696 download finish for photo 1400526330 download finish for photo 1400526870 download finish for photo 1400526696 download finish for photo 1400526937 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29616211_23-12-2025_05_50_00.pdf 29616213 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=29616213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400528427: '1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079356_0.png', 1400528428: '1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079363_0.png', 1400528429: '1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079378_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/8b42ff42d69c2d652de1f5190778d270_28705715.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cbc8a31750782f3232886390b8b7bc59_93121402.png change filename to text .imagette296162131766465400/ imagette296162131766465400/1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079356_0.png.png imagette296162131766465400/1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079363_0.png.png imagette296162131766465400/1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079378_0.png.png imagette296162141766465401/ imagette296162151766465401/ imagette296162161766465401/ imagette296162171766465401/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cbc8a31750782f3232886390b8b7bc59_93427743.png imagette296162131766465400 29616214 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=29616214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296162141766465401 29616215 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=29616215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296162151766465401 29616216 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=29616216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296162161766465401 29616217 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=29616217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296162171766465401 29616219 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=29616219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400527283: '1766408486_2176542_1400526630_82b8be11113099099170917424c9b927_rle_crop_4078070708_0.png'} change filename to text .imagette296162191766465401/ imagette296162191766465401/1766408486_2176542_1400526630_82b8be11113099099170917424c9b927_rle_crop_4078070708_0.png.png imagette296162221766465401/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/626465267b996d44a51635670f602427_25382751.png imagette296162191766465401 29616222 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=29616222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296162221766465401 29616212 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=29616212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400527149: '1766408467_2175211_1400526730_7f26fc07d17d9b42c317cd4975b56db6_rle_crop_4078070623_0.png', 1400527150: '1766408467_2175211_1400526329_463b118107e3f2a76513509fd7850c63_rle_crop_4078070630_0.png', 1400527281: '1766408486_2176542_1400526696_357843e43a5d514129360c5bc7ea68e3_rle_crop_4078070690_0.png', 1400527282: '1766408486_2176542_1400526663_7fad1179075a4904e6e1f912c74a18c1_rle_crop_4078070696_0.png', 1400528408: '1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079392_0.png', 1400528409: '1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079403_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/e816edc4099c0fea433580aea20364b0_31996771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/88d45cde5cdf12b40980db26fd5d304e_86779235.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7c37bfaedb208b2e5685c2345b55eb9a_33567962.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/6eca09fdc131e472d05a1e6bd64c035e_90974890.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/66b87f47423540f4ccb94400ad834025_78582848.png change filename to text .imagette296162121766465401/ imagette296162121766465401/1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079392_0.png.png imagette296162121766465401/1766408467_2175211_1400526329_463b118107e3f2a76513509fd7850c63_rle_crop_4078070630_0.png.png imagette296162121766465401/1766408467_2175211_1400526730_7f26fc07d17d9b42c317cd4975b56db6_rle_crop_4078070623_0.png.png imagette296162121766465401/1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079403_0.png.png imagette296162121766465401/1766408486_2176542_1400526696_357843e43a5d514129360c5bc7ea68e3_rle_crop_4078070690_0.png.png imagette296162121766465401/1766408486_2176542_1400526663_7fad1179075a4904e6e1f912c74a18c1_rle_crop_4078070696_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/66b87f47423540f4ccb94400ad834025_27830861.png imagette296162121766465401 29616218 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=29616218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400528417: '1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079353_0.png', 1400528418: '1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079357_0.png', 1400528419: '1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079364_0.png', 1400528420: '1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079365_0.png', 1400528423: '1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079379_0.png', 1400528424: '1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079380_0.png', 1400528425: '1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079390_0.png', 1400528426: '1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079401_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/fc3c6fabcb609ccec2e51855c8d69635_2960937.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/e728b54010584789eba372f7bcfb786d_97394175.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/16ae0b39991600daef1a3ace6da71d74_92538457.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/fef094ec0c3e2ef3d33a1fabd29c2989_31048832.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/16ae0b39991600daef1a3ace6da71d74_32132308.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/fef094ec0c3e2ef3d33a1fabd29c2989_21323602.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/c8c3ef251d1505685aae0d3e29b520fd_12305351.png change filename to text .imagette296162181766465402/ imagette296162181766465402/1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079380_0.png.png imagette296162181766465402/1766409547_2228801_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57_rle_crop_4078079379_0.png.png imagette296162181766465402/1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079390_0.png.png imagette296162181766465402/1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079365_0.png.png imagette296162181766465402/1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079401_0.png.png imagette296162181766465402/1766409547_2228801_1400526904_ba2707365144be786490a335401e147e_rle_crop_4078079364_0.png.png imagette296162181766465402/1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079353_0.png.png imagette296162181766465402/1766409547_2228801_1400527141_18557864e937a86a0a42380faa44da22_rle_crop_4078079357_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/c8c3ef251d1505685aae0d3e29b520fd_30739202.png imagette296162181766465402 29616223 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=29616223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400528412: '1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079393_0.png', 1400528413: '1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079391_0.png', 1400528414: '1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079404_0.png', 1400528415: '1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079402_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/82c3f0e9f2d64325f078f222c9d66078_4643299.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/36e0ff2b334b32c60420156b80ff7c5b_51250195.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/82c3f0e9f2d64325f078f222c9d66078_41860486.png change filename to text .imagette296162231766465403/ imagette296162231766465403/1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079393_0.png.png imagette296162231766465403/1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079402_0.png.png imagette296162231766465403/1766409547_2228801_1400526869_d735c9697305068490251aaab5e80895_rle_crop_4078079404_0.png.png imagette296162231766465403/1766409547_2228801_1400526870_8adb05298b44eff5a1dadc12efa115ca_rle_crop_4078079391_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/36e0ff2b334b32c60420156b80ff7c5b_69031417.png imagette296162231766465403 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29616211 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29616224,29616225,29616226,29616227,29616228,29616229,29616230,29616231,29616232,29616233,29616234,29616235?tags=Teint_Dans_La_Masse,plastique,kraft,flou,mal_croppe,cartonnette,Carton_brun,autre_refus,papier,environnement,metal,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1400527141] : ('0.046194094391859175',) no score found for photo 1400527141 We are sending mail with results at report@fotonower.com args[1400526939] : ('0.046194094391859175',) no score found for photo 1400526939 We are sending mail with results at report@fotonower.com args[1400526937] : ('0.046194094391859175',) no score found for photo 1400526937 We are sending mail with results at report@fotonower.com args[1400526904] : ('0.046194094391859175',) no score found for photo 1400526904 We are sending mail with results at report@fotonower.com args[1400526902] : ('0.046194094391859175',) no score found for photo 1400526902 We are sending mail with results at report@fotonower.com args[1400526870] : ('0.046194094391859175',) no score found for photo 1400526870 We are sending mail with results at report@fotonower.com args[1400526869] : ('0.046194094391859175',) no score found for photo 1400526869 We are sending mail with results at report@fotonower.com args[1400526730] : ('0.046194094391859175',) no score found for photo 1400526730 We are sending mail with results at report@fotonower.com args[1400526696] : ('0.046194094391859175',) no score found for photo 1400526696 We are sending mail with results at report@fotonower.com args[1400526663] : ('0.046194094391859175',) no score found for photo 1400526663 We are sending mail with results at report@fotonower.com args[1400526630] : ('0.046194094391859175',) no score found for photo 1400526630 We are sending mail with results at report@fotonower.com args[1400526330] : ('0.046194094391859175',) no score found for photo 1400526330 We are sending mail with results at report@fotonower.com args[1400526329] : ('0.046194094391859175',) no score found for photo 1400526329 We are sending mail with results at report@fotonower.com args[1400526314] : ('0.046194094391859175',) no score found for photo 1400526314 We are sending mail with results at report@fotonower.com refus_total : 0.046194094391859175 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=29616211 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_P29616211_23-12-2025_05_50_00.pdf results_Auto_P29616211_23-12-2025_05_50_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616211_23-12-2025_05_50_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','29616211','results_Auto_P29616211_23-12-2025_05_50_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616211_23-12-2025_05_50_00.pdf','pdf','','0.17','0.046194094391859175') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29616211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] map_info['map_portfolio_photo'] : {29616211: [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314]} final : False mtd_id 4302 list_pids : [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] 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, '4261789') ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '29616211', '1400527141', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789')] time used for this insertion : 0.0186917781829834 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.949741840362549 time spend to save output : 0.01896381378173828 total time spend for step 4 : 4.968705654144287 step5:split_time_score Tue Dec 23 05:50:05 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 : ['29616211'] 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 : [('29616211',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29616211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400526939: {'path': 'temp/1766465400_3697705_1400526939_a9862ed5dce3e5d01a529015b80e3441.jpg', 'extension': 'jpg'}, 1400527141: {'path': 'temp/1766465400_3697705_1400527141_18557864e937a86a0a42380faa44da22.jpg', 'extension': 'jpg'}, 1400526314: {'path': 'temp/1766465400_3697705_1400526314_a54e2632fcd86f3404047cf74f2325bd.jpg', 'extension': 'jpg'}, 1400526329: {'path': 'temp/1766465400_3697705_1400526329_463b118107e3f2a76513509fd7850c63.jpg', 'extension': 'jpg'}, 1400526330: {'path': 'temp/1766465400_3697705_1400526330_1217339d5557e94d393b627324fafb6f.jpg', 'extension': 'jpg'}, 1400526730: {'path': 'temp/1766465400_3697705_1400526730_7f26fc07d17d9b42c317cd4975b56db6.jpg', 'extension': 'jpg'}, 1400526869: {'path': 'temp/1766465400_3697705_1400526869_d735c9697305068490251aaab5e80895.jpg', 'extension': 'jpg'}, 1400526870: {'path': 'temp/1766465400_3697705_1400526870_8adb05298b44eff5a1dadc12efa115ca.jpg', 'extension': 'jpg'}, 1400526630: {'path': 'temp/1766465400_3697705_1400526630_82b8be11113099099170917424c9b927.jpg', 'extension': 'jpg'}, 1400526663: {'path': 'temp/1766465400_3697705_1400526663_7fad1179075a4904e6e1f912c74a18c1.jpg', 'extension': 'jpg'}, 1400526696: {'path': 'temp/1766465400_3697705_1400526696_357843e43a5d514129360c5bc7ea68e3.jpg', 'extension': 'jpg'}, 1400526902: {'path': 'temp/1766465400_3697705_1400526902_7f18d0f8f259b93fd101f9ba6b3cbb57.jpg', 'extension': 'jpg'}, 1400526904: {'path': 'temp/1766465400_3697705_1400526904_ba2707365144be786490a335401e147e.jpg', 'extension': 'jpg'}, 1400526937: {'path': 'temp/1766465400_3697705_1400526937_a4358725e6947c8ba6802431902a58d1.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 = 29616211; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29616211 group by h (('13', 14),) 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=29616211 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 (29616211) 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 (29616211) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22122025 29616211 Nombre de photos uploadées : 14 / 23040 (0%) 22122025 29616211 Nombre de photos taguées (types de déchets): 0 / 14 (0%) 22122025 29616211 Nombre de photos taguées (volume) : 0 / 14 (0%) [{'photo_id': 1400526314, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/a54e2632fcd86f3404047cf74f2325bd.jpg', 'username': None, 'uploaded_at': 1766408233, 'text': 'image_22122025_13_45_34_10144.jpg'}, {'photo_id': 1400526330, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/1217339d5557e94d393b627324fafb6f.jpg', 'username': None, 'uploaded_at': 1766408288, 'text': 'image_22122025_13_56_34_10142.jpg'}, {'photo_id': 1400526329, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/463b118107e3f2a76513509fd7850c63.jpg', 'username': None, 'uploaded_at': 1766408288, 'text': 'image_22122025_13_57_24_009123m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400526730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7f26fc07d17d9b42c317cd4975b56db6.jpg', 'username': None, 'uploaded_at': 1766408403, 'text': 'image_22122025_13_57_54_010134m0.jpg 2e-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.9604644775390625e-06 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009307861328125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29616211, '2025-12-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-22' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2771760,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.26178455352783203 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= 2771760 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29602779, 'dashboard_result_id': 18642091, '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_P29602779_23-12-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29603008, 'dashboard_result_id': 18642092, '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_P29603008_23-12-2025_05_35_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29603274, 'dashboard_result_id': 18642093, '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_P29603274_23-12-2025_05_36_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29603683, 'dashboard_result_id': 18642094, '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_P29603683_23-12-2025_05_36_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29604042, 'dashboard_result_id': 18642095, '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_P29604042_23-12-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29604335, 'dashboard_result_id': 18642096, '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_P29604335_23-12-2025_05_37_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29604724, 'dashboard_result_id': 18642097, '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_P29604724_23-12-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29605207, 'dashboard_result_id': 18642098, '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_P29605207_23-12-2025_05_38_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29605649, 'dashboard_result_id': 18642099, '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_P29605649_23-12-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29606145, 'dashboard_result_id': 18642100, '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_P29606145_23-12-2025_05_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29606515, 'dashboard_result_id': 18642101, '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_P29606515_23-12-2025_05_40_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29607020, 'dashboard_result_id': 18642102, '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_P29607020_23-12-2025_05_41_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29607507, 'dashboard_result_id': 18642103, '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_P29607507_23-12-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29607852, 'dashboard_result_id': 18642104, '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_P29607852_23-12-2025_05_41_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29608495, 'dashboard_result_id': 18642105, '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_P29608495_23-12-2025_05_42_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29609473, 'dashboard_result_id': 18642106, '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_P29609473_23-12-2025_05_43_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29609821, 'dashboard_result_id': 18642107, '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_P29609821_23-12-2025_05_44_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29610266, 'dashboard_result_id': 18642108, '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_P29610266_23-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29610911, 'dashboard_result_id': 18642109, '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_P29610911_23-12-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29611460, 'dashboard_result_id': 18642110, '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_P29611460_23-12-2025_05_46_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29612129, 'dashboard_result_id': 18642111, '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_P29612129_23-12-2025_05_46_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29612545, 'dashboard_result_id': 18642112, '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_P29612545_23-12-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29612629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612634, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29613249, 'dashboard_result_id': 18642113, '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_P29613249_23-12-2025_05_47_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613268, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29613842, 'dashboard_result_id': 18642114, '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_P29613842_23-12-2025_05_48_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613861, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29614416, 'dashboard_result_id': 18642115, '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_P29614416_23-12-2025_05_48_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29614460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29614461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29614462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29614463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29614464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29614465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29614466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29614467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29614468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29614469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29614470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29614471, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29615035, 'dashboard_result_id': 18642116, '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_P29615035_23-12-2025_05_49_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29615042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29615043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29615044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29615045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29615046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29615047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29615048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29615049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29615050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29615051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29615052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29615053, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29616211, 'dashboard_result_id': 18642117, '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_P29616211_22-12-2025_14_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616223, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29616336, 'dashboard_result_id': 18642118, '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_P29616336_22-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616355, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29616754, 'dashboard_result_id': 18642119, '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_P29616754_22-12-2025_14_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29616768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616779, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29617208, 'dashboard_result_id': 18642120, '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_P29617208_22-12-2025_14_54_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617235, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29617825, 'dashboard_result_id': 18642121, '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_P29617825_22-12-2025_15_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617839, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29618046, 'dashboard_result_id': 18642122, '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_P29618046_22-12-2025_15_23_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618073, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29618918, 'dashboard_result_id': 18642123, '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_P29618918_22-12-2025_15_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618934, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29619317, 'dashboard_result_id': 18642124, '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_P29619317_22-12-2025_15_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619345, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29619913, 'dashboard_result_id': 18642125, '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_P29619913_22-12-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619964, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29620347, 'dashboard_result_id': 18642126, '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_P29620347_22-12-2025_16_19_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29620398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29620399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29620400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29620401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29620402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29620403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29620404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29620405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29620406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29620407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29620408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29620409, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29621036, 'dashboard_result_id': 18642127, '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_P29621036_22-12-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29621040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621051, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29621537, 'dashboard_result_id': 18642128, '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_P29621537_22-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29621547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621552, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29621928, 'dashboard_result_id': 18642129, '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_P29621928_22-12-2025_17_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622019, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29622718, 'dashboard_result_id': 18642130, '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_P29622718_22-12-2025_18_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622771, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29623930, 'dashboard_result_id': 18642131, '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_P29623930_22-12-2025_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29623935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29623936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29623937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29623938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29623939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29623940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29623941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29623942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29623943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29623944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29623945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29623946, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29624348, 'dashboard_result_id': 18642132, '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_P29624348_22-12-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624366, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29624759, 'dashboard_result_id': 18642133, '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_P29624759_22-12-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624787, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624788, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29625358, 'dashboard_result_id': 18642134, '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_P29625358_22-12-2025_19_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29625374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625378, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29625707, 'dashboard_result_id': 18642135, '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_P29625707_22-12-2025_19_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29625853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625864, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29626222, 'dashboard_result_id': 18642136, '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_P29626222_22-12-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29626231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626242, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29626967, 'dashboard_result_id': 18642137, '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_P29626967_22-12-2025_19_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29626992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626997, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29627576, 'dashboard_result_id': 18642138, '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_P29627576_22-12-2025_20_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29627609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29627610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29627611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29627612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29627613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29627614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29627615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29627616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29627617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29627618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29627619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29627620, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29627992, 'dashboard_result_id': 18642139, '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_P29627992_22-12-2025_20_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628029, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29628640, 'dashboard_result_id': 18642140, '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_P29628640_22-12-2025_20_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628684, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29629308, 'dashboard_result_id': 18642141, '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_P29629308_22-12-2025_21_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29629350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29629351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29629352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29629354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29629355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29629356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29629357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29629358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29629359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29629360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29629361, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29630376, 'dashboard_result_id': 18642142, '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_P29630376_22-12-2025_21_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630392, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29630699, 'dashboard_result_id': 18642143, '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_P29630699_22-12-2025_21_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630725, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29631142, 'dashboard_result_id': 18642144, '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_P29631142_22-12-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29631149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631160, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29631564, 'dashboard_result_id': 18642145, '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_P29631564_22-12-2025_22_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29631587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631588, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29632329, 'dashboard_result_id': 18642146, '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_P29632329_22-12-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29632365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29632366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29632367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29632368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29632369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29632370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29632371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29632372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29632373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29632374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29632375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29632376, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29632998, 'dashboard_result_id': 18642147, '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_P29632998_22-12-2025_22_55_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29633032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29633033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29633034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29633035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29633036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29633037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29633038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29633039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29633040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29633042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29633043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29633044, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29634037, 'dashboard_result_id': 18642148, '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_P29634037_22-12-2025_23_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29634041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634052, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29634208, 'dashboard_result_id': 18642149, '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_P29634208_22-12-2025_23_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29634221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634227, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29635105, 'dashboard_result_id': 18642150, '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_P29635105_22-12-2025_23_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635126, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29635562, 'dashboard_result_id': 18642151, '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_P29635562_22-12-2025_23_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635577, 'pht': 3726}}"}, {'dashboat_entry_day': 2771760, 'dashboard_run_id': 2784471, 'mtr_portfolio_id': 29635950, 'dashboard_result_id': 18642152, '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_P29635950_23-12-2025_01_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29635955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635964, '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 = 29602779 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': 4261763, 'mtr_portfolio_id': 29602779, 'created_at': datetime.datetime(2025, 12, 23, 5, 34, 30), 'result': '0.09297707194337346', 'result_long': None, 'result_double': None}] Qualite : 0.09297707194337346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29602779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_23-12-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29602779 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_P29602779_23-12-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}" where mtr_portfolio_id = 29602779 and dashboard_run_id = 2784471 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`=29602779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642091, 0.09297707194337346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_23-12-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, '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 = 29603008 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': 4261764, 'mtr_portfolio_id': 29603008, 'created_at': datetime.datetime(2025, 12, 23, 5, 35, 28), 'result': '0.04088288636876773', 'result_long': None, 'result_double': None}] Qualite : 0.04088288636876773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_23-12-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603008 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_P29603008_23-12-2025_05_35_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, 'pht': 3726}}" where mtr_portfolio_id = 29603008 and dashboard_run_id = 2784471 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`=29603008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642092, 0.04088288636876773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_23-12-2025_05_35_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, '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 = 29603274 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': 4261765, 'mtr_portfolio_id': 29603274, 'created_at': datetime.datetime(2025, 12, 23, 5, 36), 'result': '0.06405908482306392', 'result_long': None, 'result_double': None}] Qualite : 0.06405908482306392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603274_23-12-2025_05_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603274 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_P29603274_23-12-2025_05_36_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, 'pht': 3726}}" where mtr_portfolio_id = 29603274 and dashboard_run_id = 2784471 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`=29603274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642093, 0.06405908482306392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603274_23-12-2025_05_36_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603292, '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 = 29603683 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': 4261766, 'mtr_portfolio_id': 29603683, 'created_at': datetime.datetime(2025, 12, 23, 5, 36, 13), 'result': '0.05902097707356931', 'result_long': None, 'result_double': None}] Qualite : 0.05902097707356931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603683_23-12-2025_05_36_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603683 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_P29603683_23-12-2025_05_36_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, 'pht': 3726}}" where mtr_portfolio_id = 29603683 and dashboard_run_id = 2784471 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`=29603683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642094, 0.05902097707356931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603683_23-12-2025_05_36_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603702, '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 = 29604042 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': 4261767, 'mtr_portfolio_id': 29604042, 'created_at': datetime.datetime(2025, 12, 23, 5, 37), 'result': '0.04489124609382333', 'result_long': None, 'result_double': None}] Qualite : 0.04489124609382333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604042_23-12-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604042 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_P29604042_23-12-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, 'pht': 3726}}" where mtr_portfolio_id = 29604042 and dashboard_run_id = 2784471 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`=29604042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642095, 0.04489124609382333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604042_23-12-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29604044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604055, '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 = 29604335 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': 4261768, 'mtr_portfolio_id': 29604335, 'created_at': datetime.datetime(2025, 12, 23, 5, 37, 30), 'result': '0.05122256868244998', 'result_long': None, 'result_double': None}] Qualite : 0.05122256868244998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604335_23-12-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604335 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_P29604335_23-12-2025_05_37_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, 'pht': 3726}}" where mtr_portfolio_id = 29604335 and dashboard_run_id = 2784471 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`=29604335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642096, 0.05122256868244998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604335_23-12-2025_05_37_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604353, '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 = 29604724 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': 4261769, 'mtr_portfolio_id': 29604724, 'created_at': datetime.datetime(2025, 12, 23, 5, 38, 1), 'result': '0.05976254900222288', 'result_long': None, 'result_double': None}] Qualite : 0.05976254900222288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29604724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604724_23-12-2025_05_38_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29604724 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_P29604724_23-12-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, 'pht': 3726}}" where mtr_portfolio_id = 29604724 and dashboard_run_id = 2784471 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`=29604724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642097, 0.05976254900222288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29604724_23-12-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29604731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29604732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29604733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29604734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29604735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29604736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29604738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29604739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29604740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29604741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29604742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29604743, '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 = 29605207 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': 4261770, 'mtr_portfolio_id': 29605207, 'created_at': datetime.datetime(2025, 12, 23, 5, 38, 30), 'result': '0.04688025765582562', 'result_long': None, 'result_double': None}] Qualite : 0.04688025765582562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29605207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605207_23-12-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29605207 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_P29605207_23-12-2025_05_38_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, 'pht': 3726}}" where mtr_portfolio_id = 29605207 and dashboard_run_id = 2784471 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`=29605207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642098, 0.04688025765582562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605207_23-12-2025_05_38_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605243, '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 = 29605649 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': 4261771, 'mtr_portfolio_id': 29605649, 'created_at': datetime.datetime(2025, 12, 23, 5, 39, 30), 'result': '0.026298693504500596', 'result_long': None, 'result_double': None}] Qualite : 0.026298693504500596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29605649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605649_23-12-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29605649 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_P29605649_23-12-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, 'pht': 3726}}" where mtr_portfolio_id = 29605649 and dashboard_run_id = 2784471 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`=29605649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642099, 0.026298693504500596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29605649_23-12-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29605671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29605672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29605673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29605674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29605675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29605676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29605677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29605678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29605679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29605680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29605681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29605682, '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 = 29606145 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': 4261772, 'mtr_portfolio_id': 29606145, 'created_at': datetime.datetime(2025, 12, 23, 5, 39, 59), 'result': '0.0468878964374005', 'result_long': None, 'result_double': None}] Qualite : 0.0468878964374005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29606145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606145_23-12-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29606145 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_P29606145_23-12-2025_05_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, 'pht': 3726}}" where mtr_portfolio_id = 29606145 and dashboard_run_id = 2784471 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`=29606145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642100, 0.0468878964374005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606145_23-12-2025_05_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29606156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606160, '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 = 29606515 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': 4261773, 'mtr_portfolio_id': 29606515, 'created_at': datetime.datetime(2025, 12, 23, 5, 40, 28), 'result': '0.04824729738148222', 'result_long': None, 'result_double': None}] Qualite : 0.04824729738148222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29606515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606515_23-12-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29606515 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_P29606515_23-12-2025_05_40_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, 'pht': 3726}}" where mtr_portfolio_id = 29606515 and dashboard_run_id = 2784471 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`=29606515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642101, 0.04824729738148222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29606515_23-12-2025_05_40_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29606520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29606521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29606522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29606523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29606524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29606525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29606526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29606527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29606528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29606529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29606530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29606531, '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 = 29607020 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': 4261774, 'mtr_portfolio_id': 29607020, 'created_at': datetime.datetime(2025, 12, 23, 5, 41, 7), 'result': '0.07901969165883638', 'result_long': None, 'result_double': None}] Qualite : 0.07901969165883638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607020_23-12-2025_05_41_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607020 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_P29607020_23-12-2025_05_41_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, 'pht': 3726}}" where mtr_portfolio_id = 29607020 and dashboard_run_id = 2784471 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`=29607020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642102, 0.07901969165883638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607020_23-12-2025_05_41_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29607024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607035, '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 = 29607507 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': 4261775, 'mtr_portfolio_id': 29607507, 'created_at': datetime.datetime(2025, 12, 23, 5, 41, 29), 'result': '0.057422688599700226', 'result_long': None, 'result_double': None}] Qualite : 0.057422688599700226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607507_23-12-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607507 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_P29607507_23-12-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, 'pht': 3726}}" where mtr_portfolio_id = 29607507 and dashboard_run_id = 2784471 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`=29607507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642103, 0.057422688599700226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607507_23-12-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607525, '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 = 29607852 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': 4261776, 'mtr_portfolio_id': 29607852, 'created_at': datetime.datetime(2025, 12, 23, 5, 41, 56), 'result': '0.04880118052063187', 'result_long': None, 'result_double': None}] Qualite : 0.04880118052063187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29607852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607852_23-12-2025_05_41_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29607852 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_P29607852_23-12-2025_05_41_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, 'pht': 3726}}" where mtr_portfolio_id = 29607852 and dashboard_run_id = 2784471 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`=29607852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642104, 0.04880118052063187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29607852_23-12-2025_05_41_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29607863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29607864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29607865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29607866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29607867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29607868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29607869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29607870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29607871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29607872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29607873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29607874, '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 = 29608495 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': 4261777, 'mtr_portfolio_id': 29608495, 'created_at': datetime.datetime(2025, 12, 23, 5, 42, 30), 'result': '0.04721089581362373', 'result_long': None, 'result_double': None}] Qualite : 0.04721089581362373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29608495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29608495_23-12-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29608495 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_P29608495_23-12-2025_05_42_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, 'pht': 3726}}" where mtr_portfolio_id = 29608495 and dashboard_run_id = 2784471 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`=29608495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642105, 0.04721089581362373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29608495_23-12-2025_05_42_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29608505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29608506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29608507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29608509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29608510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29608512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29608513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29608514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29608516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29608517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29608518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29608519, '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 = 29609473 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': 4261778, 'mtr_portfolio_id': 29609473, 'created_at': datetime.datetime(2025, 12, 23, 5, 43, 30), 'result': '0.04616365784067553', 'result_long': None, 'result_double': None}] Qualite : 0.04616365784067553 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29609473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609473_23-12-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29609473 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_P29609473_23-12-2025_05_43_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, 'pht': 3726}}" where mtr_portfolio_id = 29609473 and dashboard_run_id = 2784471 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`=29609473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642106, 0.04616365784067553, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609473_23-12-2025_05_43_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609487, '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 = 29609821 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': 4261779, 'mtr_portfolio_id': 29609821, 'created_at': datetime.datetime(2025, 12, 23, 5, 44, 1), 'result': '0.05197343052593313', 'result_long': None, 'result_double': None}] Qualite : 0.05197343052593313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29609821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609821_23-12-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29609821 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_P29609821_23-12-2025_05_44_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, 'pht': 3726}}" where mtr_portfolio_id = 29609821 and dashboard_run_id = 2784471 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`=29609821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642107, 0.05197343052593313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29609821_23-12-2025_05_44_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29609827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29609828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29609829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29609830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29609831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29609832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29609833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29609834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29609835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29609836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29609837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29609838, '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 = 29610266 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': 4261780, 'mtr_portfolio_id': 29610266, 'created_at': datetime.datetime(2025, 12, 23, 5, 44, 29), 'result': '0.041405209714555094', 'result_long': None, 'result_double': None}] Qualite : 0.041405209714555094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29610266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610266_23-12-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29610266 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_P29610266_23-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, 'pht': 3726}}" where mtr_portfolio_id = 29610266 and dashboard_run_id = 2784471 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`=29610266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642108, 0.041405209714555094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610266_23-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610292, '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 = 29610911 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': 4261781, 'mtr_portfolio_id': 29610911, 'created_at': datetime.datetime(2025, 12, 23, 5, 45, 30), 'result': '0.08853204803891286', 'result_long': None, 'result_double': None}] Qualite : 0.08853204803891286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29610911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610911_23-12-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29610911 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_P29610911_23-12-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, 'pht': 3726}}" where mtr_portfolio_id = 29610911 and dashboard_run_id = 2784471 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`=29610911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642109, 0.08853204803891286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29610911_23-12-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29610915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29610916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29610917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29610918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29610919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29610920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29610921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29610922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29610923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29610924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29610925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29610926, '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 = 29611460 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': 4261782, 'mtr_portfolio_id': 29611460, 'created_at': datetime.datetime(2025, 12, 23, 5, 45, 59), 'result': '0.062266264032388406', 'result_long': None, 'result_double': None}] Qualite : 0.062266264032388406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29611460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29611460_23-12-2025_05_46_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29611460 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_P29611460_23-12-2025_05_46_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, 'pht': 3726}}" where mtr_portfolio_id = 29611460 and dashboard_run_id = 2784471 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`=29611460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642110, 0.062266264032388406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29611460_23-12-2025_05_46_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29611492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29611493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29611494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29611495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29611496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29611497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29611498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29611499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29611500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29611501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29611502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29611503, '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 = 29612129 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': 4261783, 'mtr_portfolio_id': 29612129, 'created_at': datetime.datetime(2025, 12, 23, 5, 46, 11), 'result': '0.062309087984060284', 'result_long': None, 'result_double': None}] Qualite : 0.062309087984060284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29612129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_23-12-2025_05_46_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29612129 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_P29612129_23-12-2025_05_46_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, 'pht': 3726}}" where mtr_portfolio_id = 29612129 and dashboard_run_id = 2784471 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`=29612129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642111, 0.062309087984060284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612129_23-12-2025_05_46_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29612154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612165, '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 = 29612545 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': 4261784, 'mtr_portfolio_id': 29612545, 'created_at': datetime.datetime(2025, 12, 23, 5, 46, 29), 'result': '0.05058248756862014', 'result_long': None, 'result_double': None}] Qualite : 0.05058248756862014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29612545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612545_23-12-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29612545 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_P29612545_23-12-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29612629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612634, 'pht': 3726}}" where mtr_portfolio_id = 29612545 and dashboard_run_id = 2784471 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`=29612545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642112, 0.05058248756862014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29612545_23-12-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29612623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29612624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29612625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29612626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29612627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29612628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29612629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29612630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29612631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29612632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29612633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29612634, '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 = 29613249 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': 4261785, 'mtr_portfolio_id': 29613249, 'created_at': datetime.datetime(2025, 12, 23, 5, 47, 28), 'result': '0.058811483911604574', 'result_long': None, 'result_double': None}] Qualite : 0.058811483911604574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29613249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29613249_23-12-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29613249 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_P29613249_23-12-2025_05_47_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613268, 'pht': 3726}}" where mtr_portfolio_id = 29613249 and dashboard_run_id = 2784471 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`=29613249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642113, 0.058811483911604574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29613249_23-12-2025_05_47_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613268, '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 = 29613842 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': 4261786, 'mtr_portfolio_id': 29613842, 'created_at': datetime.datetime(2025, 12, 23, 5, 48), 'result': '0.043540993285897014', 'result_long': None, 'result_double': None}] Qualite : 0.043540993285897014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29613842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29613842_23-12-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29613842 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_P29613842_23-12-2025_05_48_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613861, 'pht': 3726}}" where mtr_portfolio_id = 29613842 and dashboard_run_id = 2784471 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`=29613842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642114, 0.043540993285897014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29613842_23-12-2025_05_48_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29613849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29613850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29613852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29613853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29613854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29613855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29613856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29613857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29613858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29613859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29613860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29613861, '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 = 29614416 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': 4261787, 'mtr_portfolio_id': 29614416, 'created_at': datetime.datetime(2025, 12, 23, 5, 48, 31), 'result': '0.054009181668358754', 'result_long': None, 'result_double': None}] Qualite : 0.054009181668358754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29614416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29614416_23-12-2025_05_48_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29614416 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_P29614416_23-12-2025_05_48_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29614460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29614461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29614462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29614463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29614464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29614465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29614466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29614467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29614468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29614469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29614470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29614471, 'pht': 3726}}" where mtr_portfolio_id = 29614416 and dashboard_run_id = 2784471 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`=29614416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642115, 0.054009181668358754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29614416_23-12-2025_05_48_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29614460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29614461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29614462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29614463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29614464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29614465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29614466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29614467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29614468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29614469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29614470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29614471, '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 = 29615035 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': 4261788, 'mtr_portfolio_id': 29615035, 'created_at': datetime.datetime(2025, 12, 23, 5, 49, 28), 'result': '0.06125725888332889', 'result_long': None, 'result_double': None}] Qualite : 0.06125725888332889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29615035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29615035_23-12-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29615035 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_P29615035_23-12-2025_05_49_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29615042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29615043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29615044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29615045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29615046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29615047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29615048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29615049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29615050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29615051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29615052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29615053, 'pht': 3726}}" where mtr_portfolio_id = 29615035 and dashboard_run_id = 2784471 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`=29615035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642116, 0.06125725888332889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29615035_23-12-2025_05_49_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29615042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29615043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29615044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29615045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29615046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29615047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29615048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29615049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29615050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29615051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29615052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29615053, '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 = 29616211 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': 4261789, 'mtr_portfolio_id': 29616211, 'created_at': datetime.datetime(2025, 12, 23, 5, 49, 59), 'result': '0.046194094391859175', 'result_long': None, 'result_double': None}] Qualite : 0.046194094391859175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29616211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616211_23-12-2025_05_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29616211 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_P29616211_23-12-2025_05_50_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616223, 'pht': 3726}}" where mtr_portfolio_id = 29616211 and dashboard_run_id = 2784471 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`=29616211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642117, 0.046194094391859175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616211_23-12-2025_05_50_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616223, '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 = 29616336 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': 4257814, 'mtr_portfolio_id': 29616336, 'created_at': datetime.datetime(2025, 12, 22, 14, 16, 59), 'result': '0.061556905565506', 'result_long': None, 'result_double': None}] Qualite : 0.061556905565506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29616336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616336_22-12-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29616336 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_P29616336_22-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616355, 'pht': 3726}}" where mtr_portfolio_id = 29616336 and dashboard_run_id = 2784471 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`=29616336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642118, 0.061556905565506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616336_22-12-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29616348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616355, '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 = 29616754 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': 4257863, 'mtr_portfolio_id': 29616754, 'created_at': datetime.datetime(2025, 12, 22, 14, 32, 56), 'result': '0.06769769783360059', 'result_long': None, 'result_double': None}] Qualite : 0.06769769783360059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29616754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616754_22-12-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29616754 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_P29616754_22-12-2025_14_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29616768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616779, 'pht': 3726}}" where mtr_portfolio_id = 29616754 and dashboard_run_id = 2784471 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`=29616754 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642119, 0.06769769783360059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29616754_22-12-2025_14_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29616768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29616769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29616770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29616771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29616772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29616773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29616774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29616775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29616776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29616777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29616778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29616779, '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 = 29617208 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': 4257929, 'mtr_portfolio_id': 29617208, 'created_at': datetime.datetime(2025, 12, 22, 14, 54, 59), 'result': '0.05081501810362228', 'result_long': None, 'result_double': None}] Qualite : 0.05081501810362228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29617208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29617208_22-12-2025_14_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29617208 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_P29617208_22-12-2025_14_54_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617235, 'pht': 3726}}" where mtr_portfolio_id = 29617208 and dashboard_run_id = 2784471 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`=29617208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642120, 0.05081501810362228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29617208_22-12-2025_14_54_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617235, '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 = 29617825 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': 4258036, 'mtr_portfolio_id': 29617825, 'created_at': datetime.datetime(2025, 12, 22, 15, 2, 58), 'result': '0.06157457181918586', 'result_long': None, 'result_double': None}] Qualite : 0.06157457181918586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29617825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29617825_22-12-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29617825 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_P29617825_22-12-2025_15_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617839, 'pht': 3726}}" where mtr_portfolio_id = 29617825 and dashboard_run_id = 2784471 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`=29617825 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642121, 0.06157457181918586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29617825_22-12-2025_15_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29617828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29617829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29617830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29617831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29617832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29617833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29617834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29617835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29617836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29617837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29617838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29617839, '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 = 29618046 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': 4258085, 'mtr_portfolio_id': 29618046, 'created_at': datetime.datetime(2025, 12, 22, 15, 23, 1), 'result': '0.09397094254169064', 'result_long': None, 'result_double': None}] Qualite : 0.09397094254169064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29618046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29618046_22-12-2025_15_23_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29618046 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_P29618046_22-12-2025_15_23_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618073, 'pht': 3726}}" where mtr_portfolio_id = 29618046 and dashboard_run_id = 2784471 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`=29618046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642122, 0.09397094254169064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29618046_22-12-2025_15_23_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618073, '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 = 29618918 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': 4258177, 'mtr_portfolio_id': 29618918, 'created_at': datetime.datetime(2025, 12, 22, 15, 32, 59), 'result': '0.07404773852463789', 'result_long': None, 'result_double': None}] Qualite : 0.07404773852463789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29618918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29618918_22-12-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29618918 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_P29618918_22-12-2025_15_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618934, 'pht': 3726}}" where mtr_portfolio_id = 29618918 and dashboard_run_id = 2784471 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`=29618918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642123, 0.07404773852463789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29618918_22-12-2025_15_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29618923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29618924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29618925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29618926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29618927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29618928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29618929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29618930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29618931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29618932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29618933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29618934, '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 = 29619317 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': 4258226, 'mtr_portfolio_id': 29619317, 'created_at': datetime.datetime(2025, 12, 22, 15, 48, 58), 'result': '0.10438221007265991', 'result_long': None, 'result_double': None}] Qualite : 0.10438221007265991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29619317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29619317_22-12-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29619317 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_P29619317_22-12-2025_15_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619345, 'pht': 3726}}" where mtr_portfolio_id = 29619317 and dashboard_run_id = 2784471 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`=29619317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642124, 0.10438221007265991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29619317_22-12-2025_15_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619345, '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 = 29619913 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': 4258314, 'mtr_portfolio_id': 29619913, 'created_at': datetime.datetime(2025, 12, 22, 16, 2, 58), 'result': '0.052641305230163866', 'result_long': None, 'result_double': None}] Qualite : 0.052641305230163866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29619913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29619913_22-12-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29619913 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_P29619913_22-12-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619964, 'pht': 3726}}" where mtr_portfolio_id = 29619913 and dashboard_run_id = 2784471 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`=29619913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642125, 0.052641305230163866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29619913_22-12-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29619953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29619954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29619955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29619956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29619957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29619958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29619959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29619960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29619961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29619962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29619963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29619964, '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 = 29620347 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': 4258397, 'mtr_portfolio_id': 29620347, 'created_at': datetime.datetime(2025, 12, 22, 16, 19, 32), 'result': '0.05454980933210423', 'result_long': None, 'result_double': None}] Qualite : 0.05454980933210423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29620347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29620347_22-12-2025_16_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29620347 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_P29620347_22-12-2025_16_19_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29620398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29620399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29620400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29620401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29620402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29620403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29620404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29620405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29620406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29620407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29620408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29620409, 'pht': 3726}}" where mtr_portfolio_id = 29620347 and dashboard_run_id = 2784471 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`=29620347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642126, 0.05454980933210423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29620347_22-12-2025_16_19_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29620398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29620399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29620400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29620401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29620402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29620403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29620404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29620405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29620406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29620407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29620408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29620409, '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 = 29621036 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': 4258501, 'mtr_portfolio_id': 29621036, 'created_at': datetime.datetime(2025, 12, 22, 16, 32, 58), 'result': '0.0584225659893214', 'result_long': None, 'result_double': None}] Qualite : 0.0584225659893214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29621036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621036_22-12-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29621036 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_P29621036_22-12-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29621040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621051, 'pht': 3726}}" where mtr_portfolio_id = 29621036 and dashboard_run_id = 2784471 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`=29621036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642127, 0.0584225659893214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621036_22-12-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29621040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621051, '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 = 29621537 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': 4258566, 'mtr_portfolio_id': 29621537, 'created_at': datetime.datetime(2025, 12, 22, 17, 2, 58), 'result': '0.007382039076977103', 'result_long': None, 'result_double': None}] Qualite : 0.007382039076977103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29621537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621537_22-12-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29621537 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_P29621537_22-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29621547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621552, 'pht': 3726}}" where mtr_portfolio_id = 29621537 and dashboard_run_id = 2784471 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`=29621537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642128, 0.007382039076977103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621537_22-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29621541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29621542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29621543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29621544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29621545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29621546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29621547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29621548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29621549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29621550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29621551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29621552, '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 = 29621928 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': 4258638, 'mtr_portfolio_id': 29621928, 'created_at': datetime.datetime(2025, 12, 22, 17, 19), 'result': '0.07153829592004535', 'result_long': None, 'result_double': None}] Qualite : 0.07153829592004535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29621928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621928_22-12-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29621928 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_P29621928_22-12-2025_17_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622019, 'pht': 3726}}" where mtr_portfolio_id = 29621928 and dashboard_run_id = 2784471 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`=29621928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642129, 0.07153829592004535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29621928_22-12-2025_17_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622019, '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 = 29622718 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': 4258712, 'mtr_portfolio_id': 29622718, 'created_at': datetime.datetime(2025, 12, 22, 18, 5, 30), 'result': '0.0218511217665107', 'result_long': None, 'result_double': None}] Qualite : 0.0218511217665107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29622718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29622718_22-12-2025_18_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29622718 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_P29622718_22-12-2025_18_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622771, 'pht': 3726}}" where mtr_portfolio_id = 29622718 and dashboard_run_id = 2784471 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`=29622718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642130, 0.0218511217665107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29622718_22-12-2025_18_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29622760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29622761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29622762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29622763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29622764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29622765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29622766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29622767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29622768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29622769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29622770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29622771, '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 = 29623930 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': 4258860, 'mtr_portfolio_id': 29623930, 'created_at': datetime.datetime(2025, 12, 22, 18, 18, 59), 'result': '0.03653274552379722', 'result_long': None, 'result_double': None}] Qualite : 0.03653274552379722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29623930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29623930_22-12-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29623930 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_P29623930_22-12-2025_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29623935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29623936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29623937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29623938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29623939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29623940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29623941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29623942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29623943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29623944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29623945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29623946, 'pht': 3726}}" where mtr_portfolio_id = 29623930 and dashboard_run_id = 2784471 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`=29623930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642131, 0.03653274552379722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29623930_22-12-2025_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29623935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29623936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29623937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29623938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29623939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29623940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29623941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29623942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29623943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29623944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29623945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29623946, '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 = 29624348 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': 4258921, 'mtr_portfolio_id': 29624348, 'created_at': datetime.datetime(2025, 12, 22, 18, 32, 59), 'result': '0.028655009855459452', 'result_long': None, 'result_double': None}] Qualite : 0.028655009855459452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29624348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29624348_22-12-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29624348 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_P29624348_22-12-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624366, 'pht': 3726}}" where mtr_portfolio_id = 29624348 and dashboard_run_id = 2784471 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`=29624348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642132, 0.028655009855459452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29624348_22-12-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624366, '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 = 29624759 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': 4258986, 'mtr_portfolio_id': 29624759, 'created_at': datetime.datetime(2025, 12, 22, 18, 49), 'result': '0.04331090498750892', 'result_long': None, 'result_double': None}] Qualite : 0.04331090498750892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29624759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29624759_22-12-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29624759 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_P29624759_22-12-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624787, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624788, 'pht': 3726}}" where mtr_portfolio_id = 29624759 and dashboard_run_id = 2784471 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`=29624759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642133, 0.04331090498750892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29624759_22-12-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29624777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29624778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29624779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29624780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29624781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29624782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29624783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29624784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29624785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29624786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29624787, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29624788, '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 = 29625358 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': 4259072, 'mtr_portfolio_id': 29625358, 'created_at': datetime.datetime(2025, 12, 22, 19, 3, 27), 'result': '0.03509017711967076', 'result_long': None, 'result_double': None}] Qualite : 0.03509017711967076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29625358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29625358_22-12-2025_19_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29625358 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_P29625358_22-12-2025_19_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29625374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625378, 'pht': 3726}}" where mtr_portfolio_id = 29625358 and dashboard_run_id = 2784471 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`=29625358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642134, 0.03509017711967076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29625358_22-12-2025_19_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29625374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625378, '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 = 29625707 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': 4259138, 'mtr_portfolio_id': 29625707, 'created_at': datetime.datetime(2025, 12, 22, 19, 16, 59), 'result': '0.03634612862810504', 'result_long': None, 'result_double': None}] Qualite : 0.03634612862810504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29625707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29625707_22-12-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29625707 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_P29625707_22-12-2025_19_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29625853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625864, 'pht': 3726}}" where mtr_portfolio_id = 29625707 and dashboard_run_id = 2784471 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`=29625707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642135, 0.03634612862810504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29625707_22-12-2025_19_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29625853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29625854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29625855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29625856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29625857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29625858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29625859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29625860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29625861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29625862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29625863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29625864, '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 = 29626222 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': 4259231, 'mtr_portfolio_id': 29626222, 'created_at': datetime.datetime(2025, 12, 22, 19, 32, 58), 'result': '0.043260386925014625', 'result_long': None, 'result_double': None}] Qualite : 0.043260386925014625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29626222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29626222_22-12-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29626222 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_P29626222_22-12-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29626231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626242, 'pht': 3726}}" where mtr_portfolio_id = 29626222 and dashboard_run_id = 2784471 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`=29626222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642136, 0.043260386925014625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29626222_22-12-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29626231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626242, '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 = 29626967 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': 4259373, 'mtr_portfolio_id': 29626967, 'created_at': datetime.datetime(2025, 12, 22, 19, 49, 1), 'result': '0.05713398219631746', 'result_long': None, 'result_double': None}] Qualite : 0.05713398219631746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29626967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29626967_22-12-2025_19_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29626967 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_P29626967_22-12-2025_19_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29626992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626997, 'pht': 3726}}" where mtr_portfolio_id = 29626967 and dashboard_run_id = 2784471 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`=29626967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642137, 0.05713398219631746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29626967_22-12-2025_19_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29626986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29626987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29626988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29626989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29626990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29626991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29626992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29626993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29626994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29626995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29626996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29626997, '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 = 29627576 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': 4259497, 'mtr_portfolio_id': 29627576, 'created_at': datetime.datetime(2025, 12, 22, 20, 3, 31), 'result': '0.0412116534462391', 'result_long': None, 'result_double': None}] Qualite : 0.0412116534462391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29627576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29627576_22-12-2025_20_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29627576 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_P29627576_22-12-2025_20_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29627609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29627610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29627611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29627612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29627613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29627614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29627615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29627616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29627617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29627618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29627619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29627620, 'pht': 3726}}" where mtr_portfolio_id = 29627576 and dashboard_run_id = 2784471 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`=29627576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642138, 0.0412116534462391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29627576_22-12-2025_20_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29627609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29627610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29627611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29627612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29627613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29627614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29627615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29627616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29627617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29627618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29627619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29627620, '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 = 29627992 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': 4259573, 'mtr_portfolio_id': 29627992, 'created_at': datetime.datetime(2025, 12, 22, 20, 16, 57), 'result': '0.05600814553977391', 'result_long': None, 'result_double': None}] Qualite : 0.05600814553977391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29627992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29627992_22-12-2025_20_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29627992 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_P29627992_22-12-2025_20_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628029, 'pht': 3726}}" where mtr_portfolio_id = 29627992 and dashboard_run_id = 2784471 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`=29627992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642139, 0.05600814553977391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29627992_22-12-2025_20_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628029, '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 = 29628640 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': 4259658, 'mtr_portfolio_id': 29628640, 'created_at': datetime.datetime(2025, 12, 22, 20, 33), 'result': '0.045000537020314896', 'result_long': None, 'result_double': None}] Qualite : 0.045000537020314896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29628640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29628640_22-12-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29628640 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_P29628640_22-12-2025_20_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628684, 'pht': 3726}}" where mtr_portfolio_id = 29628640 and dashboard_run_id = 2784471 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`=29628640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642140, 0.045000537020314896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29628640_22-12-2025_20_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29628672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29628673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29628674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29628675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29628676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29628677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29628678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29628679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29628680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29628681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29628682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29628684, '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 = 29629308 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': 4259770, 'mtr_portfolio_id': 29629308, 'created_at': datetime.datetime(2025, 12, 22, 21, 8, 59), 'result': '0.06654447512619045', 'result_long': None, 'result_double': None}] Qualite : 0.06654447512619045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29629308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29629308_22-12-2025_21_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29629308 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_P29629308_22-12-2025_21_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29629350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29629351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29629352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29629354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29629355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29629356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29629357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29629358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29629359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29629360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29629361, 'pht': 3726}}" where mtr_portfolio_id = 29629308 and dashboard_run_id = 2784471 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`=29629308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642141, 0.06654447512619045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29629308_22-12-2025_21_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29629350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29629351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29629352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29629354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29629355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29629356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29629357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29629358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29629359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29629360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29629361, '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 = 29630376 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': 4259925, 'mtr_portfolio_id': 29630376, 'created_at': datetime.datetime(2025, 12, 22, 21, 32, 56), 'result': '0.07246146884418922', 'result_long': None, 'result_double': None}] Qualite : 0.07246146884418922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29630376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29630376_22-12-2025_21_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29630376 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_P29630376_22-12-2025_21_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630392, 'pht': 3726}}" where mtr_portfolio_id = 29630376 and dashboard_run_id = 2784471 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`=29630376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642142, 0.07246146884418922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29630376_22-12-2025_21_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630392, '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 = 29630699 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': 4259978, 'mtr_portfolio_id': 29630699, 'created_at': datetime.datetime(2025, 12, 22, 21, 48, 56), 'result': '0.036621010893094746', 'result_long': None, 'result_double': None}] Qualite : 0.036621010893094746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29630699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29630699_22-12-2025_21_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29630699 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_P29630699_22-12-2025_21_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630725, 'pht': 3726}}" where mtr_portfolio_id = 29630699 and dashboard_run_id = 2784471 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`=29630699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642143, 0.036621010893094746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29630699_22-12-2025_21_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29630714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29630715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29630716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29630717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29630718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29630719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29630720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29630721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29630722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29630723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29630724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29630725, '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 = 29631142 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': 4260057, 'mtr_portfolio_id': 29631142, 'created_at': datetime.datetime(2025, 12, 22, 22, 3), 'result': '0.05482462398168502', 'result_long': None, 'result_double': None}] Qualite : 0.05482462398168502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29631142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29631142_22-12-2025_22_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29631142 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_P29631142_22-12-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29631149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631160, 'pht': 3726}}" where mtr_portfolio_id = 29631142 and dashboard_run_id = 2784471 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`=29631142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642144, 0.05482462398168502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29631142_22-12-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29631149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631160, '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 = 29631564 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': 4260164, 'mtr_portfolio_id': 29631564, 'created_at': datetime.datetime(2025, 12, 22, 22, 18, 58), 'result': '0.061183518040155226', 'result_long': None, 'result_double': None}] Qualite : 0.061183518040155226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29631564 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29631564_22-12-2025_22_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29631564 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_P29631564_22-12-2025_22_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29631587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631588, 'pht': 3726}}" where mtr_portfolio_id = 29631564 and dashboard_run_id = 2784471 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`=29631564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642145, 0.061183518040155226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29631564_22-12-2025_22_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29631577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29631578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29631579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29631580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29631581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29631582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29631583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29631584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29631585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29631586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29631587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29631588, '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 = 29632329 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': 4260233, 'mtr_portfolio_id': 29632329, 'created_at': datetime.datetime(2025, 12, 22, 22, 32, 58), 'result': '0.06477887232470221', 'result_long': None, 'result_double': None}] Qualite : 0.06477887232470221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29632329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29632329_22-12-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29632329 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_P29632329_22-12-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29632365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29632366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29632367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29632368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29632369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29632370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29632371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29632372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29632373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29632374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29632375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29632376, 'pht': 3726}}" where mtr_portfolio_id = 29632329 and dashboard_run_id = 2784471 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`=29632329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642146, 0.06477887232470221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29632329_22-12-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29632365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29632366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29632367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29632368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29632369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29632370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29632371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29632372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29632373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29632374, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29632375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29632376, '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 = 29632998 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': 4260293, 'mtr_portfolio_id': 29632998, 'created_at': datetime.datetime(2025, 12, 22, 22, 54, 59), 'result': '0.06301335169250781', 'result_long': None, 'result_double': None}] Qualite : 0.06301335169250781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29632998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29632998_22-12-2025_22_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29632998 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_P29632998_22-12-2025_22_55_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29633032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29633033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29633034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29633035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29633036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29633037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29633038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29633039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29633040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29633042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29633043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29633044, 'pht': 3726}}" where mtr_portfolio_id = 29632998 and dashboard_run_id = 2784471 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`=29632998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642147, 0.06301335169250781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29632998_22-12-2025_22_55_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29633032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29633033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29633034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29633035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29633036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29633037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29633038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29633039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29633040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29633042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29633043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29633044, '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 = 29634037 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': 4260363, 'mtr_portfolio_id': 29634037, 'created_at': datetime.datetime(2025, 12, 22, 23, 3, 1), 'result': '0.06972681460824842', 'result_long': None, 'result_double': None}] Qualite : 0.06972681460824842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29634037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29634037_22-12-2025_23_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29634037 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_P29634037_22-12-2025_23_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29634041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634052, 'pht': 3726}}" where mtr_portfolio_id = 29634037 and dashboard_run_id = 2784471 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`=29634037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642148, 0.06972681460824842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29634037_22-12-2025_23_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29634041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634052, '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 = 29634208 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': 4260386, 'mtr_portfolio_id': 29634208, 'created_at': datetime.datetime(2025, 12, 22, 23, 19, 1), 'result': '0.04514321456059077', 'result_long': None, 'result_double': None}] Qualite : 0.04514321456059077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29634208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29634208_22-12-2025_23_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29634208 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_P29634208_22-12-2025_23_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29634221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634227, 'pht': 3726}}" where mtr_portfolio_id = 29634208 and dashboard_run_id = 2784471 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`=29634208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642149, 0.04514321456059077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29634208_22-12-2025_23_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29634216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29634217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29634218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29634219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29634220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29634221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29634222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29634223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29634224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29634225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29634226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29634227, '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 = 29635105 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': 4260459, 'mtr_portfolio_id': 29635105, 'created_at': datetime.datetime(2025, 12, 22, 23, 33), 'result': '0.03356199292987944', 'result_long': None, 'result_double': None}] Qualite : 0.03356199292987944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29635105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635105_22-12-2025_23_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29635105 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_P29635105_22-12-2025_23_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635126, 'pht': 3726}}" where mtr_portfolio_id = 29635105 and dashboard_run_id = 2784471 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`=29635105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642150, 0.03356199292987944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635105_22-12-2025_23_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635126, '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 = 29635562 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': 4260520, 'mtr_portfolio_id': 29635562, 'created_at': datetime.datetime(2025, 12, 22, 23, 49), 'result': '0.04093208276072428', 'result_long': None, 'result_double': None}] Qualite : 0.04093208276072428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29635562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635562_22-12-2025_23_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29635562 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_P29635562_22-12-2025_23_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635577, 'pht': 3726}}" where mtr_portfolio_id = 29635562 and dashboard_run_id = 2784471 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`=29635562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642151, 0.04093208276072428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635562_22-12-2025_23_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29635566, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635577, '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 = 29635950 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': 4260563, 'mtr_portfolio_id': 29635950, 'created_at': datetime.datetime(2025, 12, 23, 1, 10, 58), 'result': '0.060236762793301514', 'result_long': None, 'result_double': None}] Qualite : 0.060236762793301514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29635950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635950_23-12-2025_01_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29635950 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_P29635950_23-12-2025_01_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29635955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635964, 'pht': 3726}}" where mtr_portfolio_id = 29635950 and dashboard_run_id = 2784471 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`=29635950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642152, 0.060236762793301514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29635950_23-12-2025_01_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29635953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29635954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29635955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29635956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29635957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29635958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29635959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29635960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29635961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29635962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29635963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29635964, '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 (29602779,29603008,29603274,29603683,29604042,29604335,29604724,29605207,29605649,29606145,29606515,29607020,29607507,29607852,29608495,29609473,29609821,29610266,29610911,29611460,29612129,29612545,29613249,29613842,29614416,29615035,29616211,29616336,29616754,29617208,29617825,29618046,29618918,29619317,29619913,29620347,29621036,29621537,29621928,29622718,29623930,29624348,29624759,29625358,29625707,29626222,29626967,29627576,29627992,29628640,29629308,29630376,29630699,29631142,29631564,29632329,29632998,29634037,29634208,29635105,29635562,29635950) result : ((1400481079,), (1400485550,), (1400485599,), (1400486088,), (1400486090,), (1400486092,), (1400486094,), (1400486105,), (1400486109,), (1400486112,), (1400486129,), (1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,), (1400486345,), (1400486347,), (1400486349,), (1400486352,), (1400486361,), (1400486373,), (1400486380,), (1400486382,), (1400486384,), (1400486386,), (1400486387,), (1400486388,), (1400486410,), (1400486412,), (1400486414,), (1400486423,), (1400486425,), (1400486427,), (1400486429,), (1400486430,), (1400486437,), (1400486440,), (1400486443,), (1400486464,), (1400486571,), (1400486629,), (1400486453,), (1400486454,), (1400486456,), (1400486462,), (1400486508,), (1400486510,), (1400486511,), (1400486513,), (1400486515,), (1400486516,), (1400486521,), (1400486523,), (1400486525,), (1400486526,), (1400486530,), (1400486531,), (1400486541,), (1400486542,), (1400486543,), (1400486551,), (1400486561,), (1400486563,), (1400486566,), (1400486567,), (1400486568,), (1400486569,), (1400486570,), (1400486576,), (1400486577,), (1400486582,), (1400486583,), (1400486588,), (1400486589,), (1400486592,), (1400486593,), (1400486595,), (1400486596,), (1400486597,), (1400486598,), (1400486608,), (1400486609,), (1400486610,), (1400486611,), (1400486613,), (1400486615,), (1400486628,), (1400486630,), (1400486631,), (1400486632,), (1400486633,), (1400486635,), (1400486637,), (1400486652,), (1400486653,), (1400486654,), (1400486655,), (1400486662,), (1400486664,), (1400486666,), (1400486668,), (1400486670,), (1400486671,), (1400486689,), (1400486691,), (1400486693,), (1400486695,), (1400486697,), (1400486698,), (1400486701,), (1400486704,), (1400486705,), (1400486713,), (1400486715,), (1400486717,), (1400486722,), (1400486737,), (1400486741,), (1400486752,), (1400486755,), (1400486757,), (1400486759,), (1400486761,), (1400486763,), (1400486776,), (1400486777,), (1400486778,), (1400486780,), (1400486794,), (1400486801,), (1400486810,), (1400486811,), (1400486813,), (1400486815,), (1400486817,), (1400486850,), (1400486836,), (1400486844,), (1400486848,), (1400486853,), (1400486855,), (1400486857,), (1400486859,), (1400486860,), (1400486877,), (1400486879,), (1400486881,), (1400486882,), (1400486893,), (1400486896,), (1400486899,), (1400487007,), (1400487128,), (1400487147,), (1400487149,), (1400487164,), (1400487167,), (1400487170,), (1400487174,), (1400487187,), (1400487188,), (1400487190,), (1400487204,), (1400487206,), (1400487208,), (1400487209,), (1400487225,), (1400487227,), (1400487228,), (1400487230,), (1400487233,), (1400487261,), (1400487262,), (1400487263,), (1400487264,), (1400487266,), (1400487268,), (1400487274,), (1400487276,), (1400487305,), (1400487323,), (1400487324,), (1400487326,), (1400487328,), (1400487350,), (1400487352,), (1400487355,), (1400487357,), (1400487360,), (1400487362,), (1400487371,), (1400487373,), (1400487377,), (1400487380,), (1400487382,), (1400487385,), (1400487401,), (1400487404,), (1400487407,), (1400487409,), (1400487412,), (1400487415,), (1400487429,), (1400487422,), (1400487424,), (1400487427,), (1400487432,), (1400487434,), (1400487436,), (1400487463,), (1400487464,), (1400487465,), (1400487466,), (1400487481,), (1400487482,), (1400487483,), (1400487484,), (1400487486,), (1400487488,), (1400487503,), (1400487504,), (1400487505,), (1400487506,), (1400487514,), (1400487516,), (1400487518,), (1400487520,), (1400487523,), (1400487541,), (1400487543,), (1400487545,), (1400487547,), (1400487550,), (1400487553,), (1400487563,), (1400487566,), (1400487570,), (1400487573,), (1400487576,), (1400487579,), (1400487597,), (1400487598,), (1400487599,), (1400487601,), (1400487609,), (1400487612,), (1400487614,), (1400487617,), (1400487622,), (1400487626,), (1400487628,), (1400487630,), (1400487632,), (1400487634,), (1400487637,), (1400487640,), (1400487657,), (1400487659,), (1400487661,), (1400487663,), (1400487675,), (1400487696,), (1400487707,), (1400487719,), (1400487734,), (1400487735,), (1400487737,), (1400487739,), (1400487762,), (1400487765,), (1400487768,), (1400487772,), (1400487793,), (1400487785,), (1400487787,), (1400487789,), (1400487791,), (1400487809,), (1400487812,), (1400487814,), (1400487816,), (1400487818,), (1400487827,), (1400487829,), (1400487831,), (1400487834,), (1400487837,), (1400487839,), (1400487857,), (1400487859,), (1400487862,), (1400487865,), (1400487867,), (1400487869,), (1400487873,), (1400487874,), (1400487877,), (1400487879,), (1400487881,), (1400487883,), (1400487889,), (1400487890,), (1400487892,), (1400487893,), (1400487897,), (1400487898,), (1400487901,), (1400487902,), (1400487904,), (1400487905,), (1400487906,), (1400487907,), (1400487924,), (1400487926,), (1400487933,), (1400487935,), (1400487936,), (1400487937,), (1400487942,), (1400487945,), (1400487948,), (1400487952,), (1400487955,), (1400487964,), (1400487973,), (1400487974,), (1400487975,), (1400487981,), (1400487984,), (1400487987,), (1400487993,), (1400487995,), (1400487997,), (1400488017,), (1400488025,), (1400488033,), (1400488041,), (1400488043,), (1400488046,), (1400488059,), (1400488061,), (1400488063,), (1400488065,), (1400488068,), (1400488084,), (1400488086,), (1400488088,), (1400488090,), (1400488107,), (1400488108,), (1400488110,), (1400488112,), (1400488114,), (1400488115,), (1400488121,), (1400488150,), (1400488154,), (1400488156,), (1400488157,), (1400488177,), (1400488179,), (1400488183,), (1400488186,), (1400488191,), (1400488232,), (1400488217,), (1400488225,), (1400488247,), (1400488249,), (1400488251,), (1400488253,), (1400488255,), (1400488269,), (1400488271,), (1400488291,), (1400488293,), (1400488295,), (1400488297,), (1400488300,), (1400488302,), (1400488327,), (1400488329,), (1400488331,), (1400488333,), (1400488345,), (1400488347,), (1400488349,), (1400488351,), (1400488354,), (1400488375,), (1400488377,), (1400488379,), (1400488381,), (1400488398,), (1400488400,), (1400488401,), (1400488403,), (1400488405,), (1400488406,), (1400488418,), (1400488420,), (1400488426,), (1400488428,), (1400488430,), (1400488432,), (1400488445,), (1400488447,), (1400488449,), (1400488451,), (1400488454,), (1400488468,), (1400488470,), (1400488472,), (1400488488,), (1400488490,), (1400488514,), (1400488516,), (1400488518,), (1400488520,), (1400488537,), (1400488540,), (1400488543,), (1400488547,), (1400488564,), (1400488718,), (1400488750,), (1400488788,), (1400489129,), (1400488963,), (1400488966,), (1400488970,), (1400489009,), (1400489078,), (1400489460,), (1400490978,), (1400491447,), (1400491464,), (1400491465,), (1400491467,), (1400491469,), (1400491482,), (1400491495,), (1400491497,), (1400491499,), (1400491501,), (1400491521,), (1400491531,), (1400491537,), (1400491539,), (1400491541,), (1400491550,), (1400491553,), (1400491555,), (1400491558,), (1400491561,), (1400491571,), (1400491573,), (1400491575,), (1400491584,), (1400491586,), (1400491588,), (1400491608,), (1400491611,), (1400491613,), (1400491615,), (1400491617,), (1400491626,), (1400491627,), (1400491628,), (1400491629,), (1400491632,), (1400491662,), (1400491663,), (1400491674,), (1400491676,), (1400491678,), (1400491682,), (1400491703,), (1400491704,), (1400491705,), (1400491706,), (1400491708,), (1400491711,), (1400491724,), (1400491725,), (1400491726,), (1400491728,), (1400491730,), (1400491732,), (1400491749,), (1400491752,), (1400491756,), (1400491758,), (1400491761,), (1400491762,), (1400491765,), (1400491768,), (1400491771,), (1400491773,), (1400491778,), (1400491780,), (1400491783,), (1400491785,), (1400491787,), (1400491815,), (1400491806,), (1400491813,), (1400491823,), (1400491825,), (1400491827,), (1400491829,), (1400491832,), (1400491835,), (1400491873,), (1400491881,), (1400491882,), (1400491884,), (1400491886,), (1400491887,), (1400491897,), (1400491899,), (1400491901,), (1400491943,), (1400491945,), (1400491947,), (1400491948,), (1400491950,), (1400491951,), (1400491961,), (1400491963,), (1400491966,), (1400491969,), (1400491986,), (1400491988,), (1400491990,), (1400491994,), (1400492004,), (1400492005,), (1400492007,), (1400492009,), (1400492012,), (1400492015,), (1400492031,), (1400492033,), (1400492035,), (1400492055,), (1400492056,), (1400492059,), (1400492062,), (1400492073,), (1400492075,), (1400492077,), (1400492108,), (1400492111,), (1400492113,), (1400492115,), (1400492117,), (1400492119,), (1400492126,), (1400492128,), (1400492130,), (1400492131,), (1400492134,), (1400492151,), (1400492153,), (1400492155,), (1400492181,), (1400492185,), (1400492187,), (1400492189,), (1400492197,), (1400492199,), (1400492203,), (1400492205,), (1400492206,), (1400492214,), (1400492211,), (1400492328,), (1400492342,), (1400492354,), (1400492370,), (1400492372,), (1400492376,), (1400492384,), (1400492386,), (1400492390,), (1400492394,), (1400492399,), (1400492405,), (1400492414,), (1400492415,), (1400492416,), (1400492417,), (1400492418,), (1400492422,), (1400492423,), (1400492425,), (1400492426,), (1400492428,), (1400492429,), (1400492432,), (1400492433,), (1400492436,), (1400492438,), (1400492439,), (1400492440,), (1400492442,), (1400492444,), (1400492482,), (1400492498,), (1400492500,), (1400492501,), (1400492519,), (1400492521,), (1400492523,), (1400492525,), (1400492528,), (1400492589,), (1400492591,), (1400492593,), (1400492594,), (1400492620,), (1400492622,), (1400492624,), (1400492708,), (1400492747,), (1400492780,), (1400492822,), (1400492857,), (1400493235,), (1400493297,), (1400493302,), (1400493306,), (1400493329,), (1400493396,), (1400493397,), (1400493399,), (1400493401,), (1400493415,), (1400493417,), (1400493420,), (1400493423,), (1400493430,), (1400493432,), (1400493442,), (1400493443,), (1400493445,), (1400493447,), (1400493449,), (1400493451,), (1400493461,), (1400493464,), (1400493517,), (1400493506,), (1400493508,), (1400493510,), (1400493512,), (1400493515,), (1400493524,), (1400493526,), (1400493528,), (1400493529,), (1400493532,), (1400493549,), (1400493569,), (1400493571,), (1400493585,), (1400493592,), (1400493594,), (1400493668,), (1400493670,), (1400493693,), (1400493726,), (1400493761,), (1400493800,), (1400493803,), (1400493806,), (1400493809,), (1400493812,), (1400493817,), (1400493841,), (1400493844,), (1400493846,), (1400493848,), (1400493863,), (1400493866,), (1400493870,), (1400493875,), (1400493878,), (1400493881,), (1400493887,), (1400493888,), (1400493908,), (1400493909,), (1400493984,), (1400493986,), (1400493988,), (1400494005,), (1400494006,), (1400494008,), (1400494009,), (1400494012,), (1400494030,), (1400494028,), (1400494029,), (1400494042,), (1400494043,), (1400494046,), (1400494049,), (1400494052,), (1400494058,), (1400494060,), (1400494065,), (1400494069,), (1400494072,), (1400494078,), (1400494079,), (1400494081,), (1400494082,), (1400494087,), (1400494093,), (1400494102,), (1400494107,), (1400494121,), (1400494127,), (1400494128,), (1400494152,), (1400494154,), (1400494156,), (1400494172,), (1400494173,), (1400494175,), (1400494177,), (1400494180,), (1400494208,), (1400494214,), (1400494226,), (1400494275,), (1400494323,), (1400494342,), (1400494344,), (1400494345,), (1400494372,), (1400494373,), (1400494374,), (1400494471,), (1400494487,), (1400494522,), (1400494559,), (1400494600,), (1400494771,), (1400494772,), (1400494773,), (1400494774,), (1400494777,), (1400494778,), (1400495126,), (1400495130,), (1400495131,), (1400495134,), (1400495137,), (1400495140,), (1400495301,), (1400495327,), (1400495331,), (1400495334,), (1400495337,), (1400495339,), (1400495349,), (1400495385,), (1400495420,), (1400495448,), (1400495450,), (1400495489,), (1400495551,), (1400495563,), (1400495590,), (1400495588,), (1400495603,), (1400495605,), (1400495607,), (1400495637,), (1400495665,), (1400495666,), (1400495684,), (1400495706,), (1400495710,), (1400495718,), (1400495741,), (1400495792,), (1400495794,), (1400495796,), (1400495811,), (1400495813,), (1400495817,), (1400495821,), (1400495828,), (1400495834,), (1400495839,), (1400495843,), (1400495844,), (1400495846,), (1400495848,), (1400495867,), (1400495869,), (1400495871,), (1400495873,), (1400495876,), (1400495895,), (1400495896,), (1400495908,), (1400495953,), (1400495955,), (1400495959,), (1400496694,), (1400496699,), (1400496703,), (1400496706,), (1400496709,), (1400496715,), (1400496716,), (1400503438,), (1400503345,), (1400503375,), (1400503407,), (1400503660,), (1400503680,), (1400503812,), (1400503836,), (1400503905,), (1400503959,), (1400503960,), (1400504014,), (1400504016,), (1400504018,), (1400504028,), (1400504072,), (1400504074,), (1400504210,), (1400504212,), (1400504225,), (1400504227,), (1400504229,), (1400504231,), (1400504235,), (1400504255,), (1400504257,), (1400504259,), (1400504298,), (1400504299,), (1400504301,), (1400504304,), (1400504306,), (1400504308,), (1400504375,), (1400504409,), (1400504550,), (1400504601,), (1400504610,), (1400504615,), (1400504635,), (1400504629,), (1400504631,), (1400504633,), (1400504646,), (1400504648,), (1400504650,), (1400504652,), (1400504672,), (1400504674,), (1400504676,), (1400504678,), (1400504766,), (1400504801,), (1400504835,), (1400505036,), (1400505047,), (1400505069,), (1400505084,), (1400505085,), (1400505110,), (1400505111,), (1400505113,), (1400505116,), (1400505119,), (1400505129,), (1400505131,), (1400505133,), (1400505148,), (1400505149,), (1400505151,), (1400505153,), (1400505156,), (1400505159,), (1400505166,), (1400505168,), (1400505170,), (1400505172,), (1400505243,), (1400505272,), (1400505307,), (1400505312,), (1400505316,), (1400505319,), (1400505341,), (1400505335,), (1400505338,), (1400505378,), (1400505380,), (1400505398,), (1400506202,), (1400506243,), (1400506278,), (1400506317,), (1400506579,), (1400506584,), (1400506586,), (1400506769,), (1400506807,), (1400506836,), (1400506838,), (1400506841,), (1400506928,), (1400506931,), (1400506933,), (1400506935,), (1400506938,), (1400506975,), (1400506983,), (1400507558,), (1400507577,), (1400507591,), (1400507593,), (1400507604,), (1400507606,), (1400507608,), (1400507610,), (1400507614,), (1400507615,), (1400507687,), (1400507689,), (1400507691,), (1400507693,), (1400508004,), (1400508046,), (1400508111,), (1400508202,), (1400508563,), (1400508597,), (1400508636,), (1400508648,), (1400508667,), (1400509143,), (1400509145,), (1400509165,), (1400509204,), (1400509246,), (1400509248,), (1400509253,), (1400509255,), (1400509264,), (1400509271,), (1400509274,), (1400509277,), (1400509280,), (1400509286,), (1400509306,), (1400509308,), (1400509320,), (1400509322,), (1400509324,), (1400509580,), (1400509560,), (1400509563,), (1400509578,), (1400509623,), (1400509625,), (1400509627,), (1400509659,), (1400509661,), (1400509806,), (1400509808,), (1400509810,), (1400509836,), (1400509838,), (1400509840,), (1400509854,), (1400509856,), (1400509912,), (1400509914,), (1400509916,), (1400509918,), (1400509921,), (1400509923,), (1400509949,), (1400509951,), (1400509953,), (1400509956,), (1400509959,), (1400509967,), (1400510067,), (1400510070,), (1400510112,), (1400510133,), (1400510136,), (1400510138,), (1400510223,), (1400510225,), (1400510227,), (1400510229,), (1400510244,), (1400510246,), (1400510248,), (1400510259,), (1400510260,), (1400510261,), (1400510320,), (1400510322,), (1400510324,), (1400510347,), (1400510348,), (1400510350,), (1400510387,), (1400510374,), (1400510375,), (1400510378,), (1400510381,), (1400510384,), (1400510541,), (1400510556,), (1400510557,), (1400510558,), (1400510560,), (1400510727,), (1400510759,), (1400510821,), (1400510918,), (1400510945,), (1400510949,), (1400511049,), (1400511083,), (1400511117,), (1400511367,), (1400511403,), (1400511481,), (1400511662,), (1400511666,), (1400511667,), (1400511830,), (1400511865,), (1400511895,), (1400511928,), (1400511961,), (1400512125,), (1400512126,), (1400512146,), (1400512194,), (1400512288,), (1400512378,), (1400512545,), (1400512550,), (1400512551,), (1400512552,), (1400512579,), (1400512580,), (1400512581,), (1400512606,), (1400512607,), (1400512608,), (1400512609,), (1400512621,), (1400512634,), (1400512677,), (1400512678,), (1400512679,), (1400512680,), (1400512681,), (1400512707,), (1400512708,), (1400512709,), (1400512730,), (1400512731,), (1400512732,), (1400512735,), (1400512737,), (1400512741,), (1400512752,), (1400512753,), (1400512756,), (1400512759,), (1400512762,), (1400512764,), (1400512772,), (1400512773,), (1400512774,), (1400512775,), (1400512776,), (1400512778,), (1400512782,), (1400512786,), (1400512789,), (1400512793,), (1400512802,), (1400512807,), (1400512826,), (1400512817,), (1400512818,), (1400512819,), (1400512820,), (1400512823,), (1400512834,), (1400512835,), (1400512836,), (1400512837,), (1400512840,), (1400512855,), (1400512856,), (1400512857,), (1400512874,), (1400512875,), (1400512876,), (1400512878,), (1400512881,), (1400512884,), (1400512906,), (1400512907,), (1400512908,), (1400512909,), (1400512918,), (1400512919,), (1400512920,), (1400512956,), (1400512957,), (1400512958,), (1400512959,), (1400512962,), (1400512984,), (1400512985,), (1400512986,), (1400512989,), (1400512992,), (1400512995,), (1400513021,), (1400513022,), (1400513025,), (1400513028,), (1400513031,), (1400513034,), (1400513039,), (1400513041,), (1400513046,), (1400513047,), (1400513048,), (1400513049,), (1400513054,), (1400513055,), (1400513061,), (1400513064,), (1400513068,), (1400513072,), (1400513073,), (1400513074,), (1400513075,), (1400513078,), (1400513089,), (1400513090,), (1400513091,), (1400513092,), (1400513095,), (1400513125,), (1400513126,), (1400513127,), (1400513130,), (1400513157,), (1400513170,), (1400513205,), (1400513239,), (1400513273,), (1400513532,), (1400513597,), (1400513661,), (1400513720,), (1400513995,), (1400513907,), (1400513962,), (1400514590,), (1400514601,), (1400514610,), (1400514636,), (1400514921,), (1400514923,), (1400514955,), (1400514968,), (1400514971,), (1400514975,), (1400514999,), (1400515015,), (1400515016,), (1400515018,), (1400515023,), (1400515027,), (1400515030,), (1400515034,), (1400515039,), (1400515042,), (1400515044,), (1400515046,), (1400515048,), (1400515305,), (1400515332,), (1400515357,), (1400515358,), (1400515361,), (1400515363,), (1400515552,), (1400515555,), (1400515557,), (1400515559,), (1400515582,), (1400515646,), (1400515648,), (1400515650,), (1400515653,), (1400515677,), (1400515679,), (1400515681,), (1400515683,), (1400515686,), (1400515689,), (1400515719,), (1400515721,), (1400515723,), (1400515725,), (1400515728,), (1400515774,), (1400515806,), (1400515837,), (1400515898,), (1400515899,), (1400515900,), (1400515901,), (1400515932,), (1400515935,), (1400515939,), (1400515943,), (1400515946,), (1400515950,), (1400515984,), (1400515987,), (1400515993,), (1400515996,), (1400515999,), (1400516003,), (1400516009,), (1400516012,), (1400516014,), (1400516017,), (1400516018,), (1400516021,), (1400516031,), (1400516044,), (1400516046,), (1400516070,), (1400516066,), (1400516068,), (1400516186,), (1400516188,), (1400516190,), (1400516373,), (1400516374,), (1400516376,), (1400516378,), (1400516409,), (1400516447,), (1400516765,), (1400516795,), (1400516797,), (1400516805,), (1400516816,), (1400516859,), (1400516861,), (1400516878,), (1400516880,), (1400516882,), (1400516884,), (1400516887,), (1400516888,), (1400516905,), (1400516907,), (1400516909,), (1400516911,), (1400516916,), (1400516945,), (1400516947,), (1400516949,), (1400516955,), (1400516958,), (1400516961,), (1400516986,), (1400516992,), (1400516999,), (1400517025,), (1400517029,), (1400517032,), (1400517037,), (1400517042,), (1400517055,), (1400517057,), (1400517059,), (1400517061,), (1400517064,), (1400517066,), (1400517076,), (1400517077,), (1400517079,), (1400517099,), (1400517100,), (1400517101,), (1400517102,), (1400517105,), (1400517108,), (1400517124,), (1400517132,), (1400517135,), (1400517136,), (1400517187,), (1400517189,), (1400517207,), (1400517218,), (1400517390,), (1400517419,), (1400517421,), (1400517425,), (1400517430,), (1400517434,), (1400517450,), (1400517447,), (1400517448,), (1400517449,), (1400517613,), (1400517614,), (1400517619,), (1400517725,), (1400517757,), (1400517791,), (1400517827,), (1400517860,), (1400517899,), (1400518291,), (1400518332,), (1400518376,), (1400518407,), (1400518600,), (1400518608,), (1400518610,), (1400518612,), (1400518640,), (1400518804,), (1400518806,), (1400518808,), (1400518810,), (1400518823,), (1400518825,), (1400518827,), (1400518852,), (1400518874,), (1400518876,), (1400518888,), (1400518902,), (1400518912,), (1400518924,), (1400518926,), (1400518927,), (1400518928,), (1400518931,), (1400518932,), (1400518955,), (1400518956,), (1400518957,), (1400518968,), (1400518969,), (1400518970,), (1400518971,), (1400518974,), (1400518988,), (1400518990,), (1400518991,), (1400518992,), (1400518995,), (1400519015,), (1400519017,), (1400519021,), (1400519025,), (1400519029,), (1400519032,), (1400519038,), (1400519039,), (1400519040,), (1400519044,), (1400519050,), (1400519057,), (1400519061,), (1400519065,), (1400519084,), (1400519085,), (1400519086,), (1400519087,), (1400519132,), (1400519119,), (1400519127,), (1400519128,), (1400519129,), (1400519152,), (1400519157,), (1400519158,), (1400519159,), (1400519162,), (1400519187,), (1400519193,), (1400519211,), (1400519212,), (1400519213,), (1400519214,), (1400519216,), (1400519232,), (1400519233,), (1400519242,), (1400519246,), (1400519249,), (1400519251,), (1400519271,), (1400519273,), (1400519275,), (1400519279,), (1400519283,), (1400519287,), (1400519311,), (1400519313,), (1400519328,), (1400519332,), (1400519336,), (1400519340,), (1400519345,), (1400519349,), (1400519354,), (1400519355,), (1400519356,), (1400519357,), (1400519381,), (1400519383,), (1400519386,), (1400519388,), (1400519391,), (1400519394,), (1400519417,), (1400519418,), (1400519431,), (1400519432,), (1400519433,), (1400519459,), (1400519627,), (1400519628,), (1400519629,), (1400520008,), (1400520033,), (1400520047,), (1400520052,), (1400520056,), (1400520190,), (1400520223,), (1400520256,), (1400520291,), (1400520324,), (1400520484,), (1400520473,), (1400520481,), (1400520605,), (1400520608,), (1400520609,), (1400520611,), (1400520613,), (1400520615,), (1400520845,), (1400520854,), (1400520856,), (1400520892,), (1400520905,), (1400520906,), (1400520966,), (1400520976,), (1400520978,), (1400521013,), (1400521036,), (1400521037,), (1400521040,), (1400521051,), (1400521052,), (1400521053,), (1400521054,), (1400521745,), (1400521746,), (1400521747,), (1400521748,), (1400521751,), (1400521952,), (1400522000,), (1400522022,), (1400522035,), (1400522095,), (1400522097,), (1400522099,), (1400522101,), (1400522104,), (1400522122,), (1400522124,), (1400522126,), (1400522128,), (1400522131,), (1400522144,), (1400522904,), (1400526314,), (1400526329,), (1400526330,), (1400526630,), (1400526663,), (1400526696,), (1400526730,), (1400526869,), (1400526870,), (1400526902,), (1400526904,), (1400526937,), (1400526939,), (1400527141,), (1400527139,), (1400527325,), (1400527344,), (1400527355,), (1400527369,), (1400527370,), (1400527371,), (1400527374,), (1400527377,), (1400527383,), (1400527398,), (1400527410,), (1400527411,), (1400527412,), (1400527413,), (1400527445,), (1400527446,), (1400527447,), (1400527506,), (1400527508,), (1400527510,), (1400527512,), (1400527529,), (1400527532,), (1400527557,), (1400527559,), (1400527594,), (1400527596,), (1400527598,), (1400527600,), (1400527603,), (1400527648,), (1400527650,), (1400527652,), (1400527654,), (1400527675,), (1400527728,), (1400527730,), (1400527769,), (1400527932,), (1400527934,), (1400527938,), (1400527942,), (1400527947,), (1400527953,), (1400527985,), (1400527986,), (1400527988,), (1400527990,), (1400527992,), (1400527995,), (1400528000,), (1400528001,), (1400528003,), (1400528005,), (1400528008,), (1400528009,), (1400528017,), (1400528019,), (1400528027,), (1400528032,), (1400528052,), (1400528057,), (1400528066,), (1400528060,), (1400528062,), (1400528064,), (1400528247,), (1400528270,), (1400528272,), (1400528281,), (1400528299,), (1400528302,), (1400528372,), (1400528374,), (1400528376,), (1400528390,), (1400528392,), (1400528394,), (1400528396,), (1400528400,), (1400528403,), (1400528434,), (1400528436,), (1400528438,), (1400528440,), (1400528728,), (1400528758,), (1400528783,), (1400528824,), (1400528829,), (1400528831,), (1400528833,), (1400528836,), (1400528846,), (1400528848,), (1400528850,), (1400528852,), (1400528855,), (1400528857,), (1400528882,), (1400528884,), (1400528886,), (1400528889,), (1400528891,), (1400528893,), (1400528918,), (1400528919,), (1400528920,), (1400528922,), (1400528924,), (1400528925,), (1400528932,), (1400528933,), (1400528935,), (1400528937,), (1400528943,), (1400528946,), (1400528954,), (1400528957,), (1400528960,), (1400528962,), (1400528973,), (1400528974,), (1400528976,), (1400528978,), (1400529021,), (1400529023,), (1400529024,), (1400529026,), (1400529028,), (1400529037,), (1400529039,), (1400529041,), (1400529043,), (1400529046,), (1400529048,), (1400529074,), (1400529076,), (1400529079,), (1400529080,), (1400529082,), (1400529125,), (1400529121,), (1400529123,), (1400529147,), (1400529149,), (1400529151,), (1400529153,), (1400529155,), (1400529156,), (1400529166,), (1400529168,), (1400529170,), (1400529173,), (1400529175,), (1400529177,), (1400529204,), (1400529205,), (1400529206,), (1400529209,), (1400529211,), (1400529213,), (1400529216,), (1400529225,), (1400529227,), (1400529229,), (1400529231,), (1400529234,), (1400529236,), (1400529252,), (1400529253,), (1400529254,), (1400529283,), (1400529286,), (1400529287,), (1400529289,), (1400529308,), (1400529310,), (1400529311,), (1400529312,), (1400529315,), (1400529316,), (1400529490,), (1400529525,), (1400529557,), (1400529587,), (1400529621,), (1400529682,), (1400529683,), (1400529684,), (1400529685,), (1400529688,), (1400529786,), (1400529822,), (1400529852,), (1400529870,), (1400530465,), (1400530284,), (1400530459,), (1400530461,), (1400530463,), (1400530511,), (1400530516,), (1400530517,), (1400530519,), (1400530522,), (1400530525,), (1400530545,), (1400530549,), (1400530551,), (1400530563,), (1400530565,), (1400530567,), (1400530569,), (1400530572,), (1400530582,), (1400530584,), (1400530586,), (1400530588,), (1400530590,), (1400530629,), (1400530632,), (1400530635,), (1400530638,), (1400530668,), (1400530704,), (1400530737,), (1400530771,), (1400530802,), (1400530836,), (1400531125,), (1400531058,), (1400531093,), (1400531210,), (1400531212,), (1400531213,), (1400531214,), (1400531216,), (1400531225,), (1400531227,), (1400531228,), (1400531230,), (1400531232,), (1400531259,), (1400531376,), (1400531425,), (1400531524,), (1400531951,), (1400532036,), (1400532037,), (1400532066,), (1400532072,), (1400532499,), (1400532541,), (1400532586,), (1400532640,), (1400533015,), (1400533049,), (1400533083,), (1400533119,), (1400533127,), (1400533144,), (1400533145,), (1400533147,), (1400533150,), (1400533859,), (1400533934,), (1400533975,), (1400534007,), (1400534012,), (1400534050,), (1400534220,), (1400534222,), (1400534224,), (1400534226,), (1400534229,), (1400534232,), (1400534727,), (1400536065,), (1400536000,), (1400536058,), (1400536061,), (1400536063,), (1400536074,), (1400536076,), (1400536717,), (1400536824,), (1400536856,), (1400536888,), (1400536963,), (1400537008,), (1400537336,), (1400537337,), (1400537339,), (1400537341,), (1400537343,), (1400537345,), (1400537582,), (1400537607,), (1400537616,), (1400537626,), (1400537653,), (1400537655,), (1400537715,), (1400537731,), (1400537732,), (1400537734,), (1400537736,), (1400537738,), (1400537745,), (1400537746,), (1400537747,), (1400537748,), (1400537750,), (1400537754,), (1400537762,), (1400537763,), (1400537768,), (1400537769,), (1400537770,), (1400537771,), (1400537785,), (1400537787,), (1400537789,), (1400537791,), (1400537794,), (1400537797,), (1400537800,), (1400537801,), (1400537803,), (1400537805,), (1400537807,), (1400537809,), (1400537813,), (1400537855,), (1400537862,), (1400537871,), (1400537878,), (1400537896,), (1400537898,), (1400537901,), (1400537905,), (1400537909,), (1400537932,), (1400537936,), (1400537949,), (1400537969,), (1400537975,), (1400537977,), (1400537985,), (1400537986,), (1400537987,), (1400537989,), (1400538004,), (1400537994,), (1400537996,), (1400537998,), (1400538002,), (1400538014,), (1400538279,), (1400538281,), (1400538283,), (1400538331,), (1400538334,), (1400538336,), (1400538338,), (1400538356,), (1400538358,), (1400538360,), (1400538364,), (1400538366,), (1400538369,), (1400538417,), (1400538419,), (1400538421,), (1400538423,), (1400538434,), (1400538476,), (1400538479,), (1400538482,), (1400538486,), (1400538489,), (1400538559,), (1400538561,), (1400538563,), (1400538575,), (1400538577,), (1400538579,), (1400538776,), (1400538778,), (1400538780,), (1400538792,), (1400538802,), (1400539025,), (1400539038,), (1400539040,), (1400539043,), (1400539046,), (1400539048,), (1400539057,), (1400539064,), (1400539071,), (1400539080,), (1400539103,), (1400539105,), (1400539108,), (1400539111,), (1400539113,), (1400539115,), (1400539231,), (1400539263,), (1400539273,), (1400539275,), (1400539407,), (1400539395,), (1400539397,), (1400539399,), (1400539401,), (1400539404,), (1400539501,), (1400539503,), (1400539504,), (1400539506,), (1400539509,), (1400539621,), (1400539655,), (1400539708,), (1400539744,), (1400539778,), (1400539816,), (1400539869,), (1400539871,), (1400539873,), (1400539910,), (1400539912,), (1400539914,), (1400539926,), (1400539927,), (1400539929,), (1400539931,), (1400539934,), (1400539987,), (1400540008,), (1400540010,), (1400540012,), (1400540014,), (1400540044,), (1400540052,), (1400540053,), (1400540055,), (1400540057,), (1400540059,), (1400540071,), (1400540072,), (1400540082,), (1400540084,), (1400540086,), (1400540088,), (1400540091,), (1400540094,), (1400540128,), (1400540130,), (1400540132,), (1400540134,), (1400540145,), (1400540146,), (1400540148,), (1400540172,), (1400540173,), (1400540175,), (1400540177,), (1400540180,), (1400540465,), (1400540490,), (1400540526,), (1400540567,), (1400540601,), (1400540739,), (1400540814,), (1400540939,), (1400540981,), (1400541228,), (1400541124,), (1400541160,), (1400541193,), (1400541617,), (1400541683,), (1400541716,), (1400541748,), (1400542541,), (1400542574,), (1400542583,), (1400542586,), (1400542596,), (1400542633,), (1400542699,), (1400542723,), (1400542734,), (1400542741,), (1400542875,), (1400542907,), (1400542942,), (1400543068,), (1400543070,), (1400543072,), (1400543074,), (1400543077,), (1400543085,), (1400543087,), (1400543089,), (1400543091,), (1400543114,), (1400543116,), (1400543118,), (1400543153,), (1400543163,), (1400543245,), (1400543251,), (1400543253,), (1400543280,), (1400543283,), (1400543285,), (1400543303,), (1400543336,), (1400543512,), (1400543514,), (1400543516,), (1400543518,), (1400543521,), (1400543524,), (1400543605,), (1400543609,), (1400543643,), (1400543726,), (1400543728,), (1400543730,), (1400543732,), (1400543734,), (1400543737,), (1400543768,), (1400543776,), (1400543786,), (1400543789,), (1400543792,), (1400543795,), (1400543798,), (1400543847,), (1400543859,), (1400543862,), (1400543879,), (1400543887,), (1400544127,), (1400544114,), (1400544117,), (1400544120,), (1400544123,), (1400544289,), (1400544322,), (1400544323,), (1400544324,), (1400544652,), (1400544657,), (1400544658,), (1400544674,), (1400544709,), (1400544747,), (1400544981,), (1400544982,), (1400544984,), (1400544986,), (1400544990,), (1400544994,), (1400545011,), (1400545012,), (1400545013,), (1400545016,), (1400545019,), (1400545023,), (1400545036,), (1400545039,), (1400545040,), (1400545041,), (1400545043,), (1400545103,), (1400545105,), (1400545108,), (1400545111,), (1400545117,), (1400545169,), (1400545170,), (1400545171,), (1400545173,), (1400545175,), (1400545179,), (1400545199,), (1400545208,), (1400545212,), (1400545213,), (1400545218,), (1400545219,), (1400545222,), (1400545290,), (1400545294,), (1400545430,), (1400545432,), (1400545512,), (1400545769,), (1400545789,), (1400545790,), (1400545829,), (1400545831,), (1400545885,), (1400546172,), (1400546248,), (1400547263,), (1400547256,), (1400547259,), (1400547261,), (1400547360,), (1400547394,), (1400547428,), (1400547897,), (1400547933,), (1400547967,), (1400548076,), (1400548184,), (1400548498,), (1400548591,), (1400548614,), (1400548616,), (1400549265,), (1400549290,), (1400549324,), (1400549594,), (1400549597,), (1400549781,), (1400549783,), (1400549785,), (1400549803,), (1400549804,), (1400549806,), (1400549809,), (1400549813,), (1400549819,), (1400549915,), (1400549948,), (1400549985,), (1400550020,), (1400550058,), (1400550091,), (1400550205,), (1400550243,), (1400550283,), (1400550349,), (1400550402,), (1400550462,), (1400550473,), (1400550525,), (1400550935,), (1400550938,), (1400550941,), (1400550944,), (1400550947,), (1400550969,), (1400551089,), (1400551092,), (1400551182,), (1400551217,), (1400551240,), (1400551244,), (1400551272,), (1400551275,), (1400551364,), (1400551366,), (1400551368,), (1400551404,), (1400551407,), (1400551409,), (1400551413,), (1400551402,), (1400551506,), (1400551528,), (1400551922,), (1400551926,), (1400551944,), (1400551946,), (1400551948,), (1400551951,), (1400551954,), (1400551957,), (1400552054,), (1400552074,), (1400552084,), (1400552098,), (1400552133,), (1400552135,), (1400552168,), (1400552170,), (1400552171,), (1400552173,), (1400552578,), (1400552582,), (1400552623,), (1400552665,), (1400552683,), (1400552685,), (1400552883,), (1400552884,), (1400552887,), (1400552890,), (1400552893,), (1400552896,), (1400552903,), (1400552905,), (1400552906,), (1400552907,), (1400552908,), (1400552915,), (1400552918,), (1400552921,), (1400552923,), (1400552927,), (1400552930,), (1400553021,), (1400553039,), (1400553055,), (1400553228,), (1400553230,), (1400553232,), (1400553236,), (1400553241,), (1400553245,), (1400553266,), (1400553267,), (1400553268,), (1400553270,), (1400553290,), (1400553291,), (1400553292,), (1400553316,), (1400553349,), (1400553543,), (1400558398,), (1400559093,), (1400558338,), (1400558361,), (1400558972,), (1400558995,), (1400558998,), (1400559003,), (1400559018,), (1400559051,), (1400559069,), (1400559149,), (1400559152,), (1400559154,), (1400559157,), (1400559160,), (1400559175,), (1400559177,), (1400559211,), (1400559213,), (1400559214,), (1400559215,), (1400559234,), (1400559235,), (1400559236,), (1400559238,), (1400559241,), (1400559244,), (1400559272,), (1400559273,), (1400559276,), (1400559278,), (1400559297,), (1400559299,), (1400559300,), (1400559301,), (1400559304,), (1400559307,), (1400559329,), (1400559331,), (1400559333,), (1400559335,), (1400559339,), (1400559343,), (1400559357,), (1400559360,), (1400559363,), (1400559366,), (1400559396,), (1400559397,), (1400559400,), (1400559403,), (1400559407,), (1400559426,), (1400559428,), (1400559430,), (1400559433,), (1400559436,), (1400559438,), (1400559444,), (1400559448,), (1400559451,), (1400559453,), (1400559460,), (1400559462,), (1400559464,), (1400559466,), (1400559479,), (1400559482,), (1400559484,), (1400559487,), (1400559491,), (1400559494,), (1400559531,), (1400559514,), (1400559517,), (1400559520,), (1400559523,), (1400559527,), (1400559543,), (1400559546,), (1400559548,), (1400559576,), (1400559577,), (1400559579,), (1400559582,), (1400559585,), (1400559600,), (1400559603,), (1400559606,), (1400559609,), (1400559613,), (1400559616,), (1400559638,), (1400559641,), (1400559643,), (1400559662,), (1400559665,), (1400559669,), (1400559673,), (1400559678,), (1400559686,), (1400559700,), (1400559703,), (1400559706,), (1400559709,), (1400559713,), (1400559717,), (1400559731,), (1400559732,), (1400559734,), (1400559735,), (1400559737,), (1400559739,), (1400559757,), (1400559759,), (1400559762,), (1400559764,), (1400559767,), (1400559772,), (1400559788,), (1400559791,), (1400559794,), (1400559821,), (1400559824,), (1400559828,), (1400559830,), (1400559833,), (1400559835,), (1400559846,), (1400559849,), (1400559851,), (1400559853,), (1400559856,), (1400559862,), (1400559890,), (1400559892,), (1400559912,), (1400559916,), (1400559919,), (1400559922,), (1400559952,), (1400559955,), (1400559977,), (1400559974,), (1400559975,), (1400559976,), (1400560002,), (1400560005,), (1400560007,), (1400560009,), (1400560012,), (1400560014,), (1400560276,), (1400560332,), (1400560335,), (1400560339,), (1400560341,), (1400560344,), (1400560356,), (1400560359,), (1400560360,), (1400560361,), (1400560386,), (1400560388,), (1400560392,), (1400560395,), (1400560397,), (1400560399,), (1400560409,), (1400560411,), (1400560413,), (1400560415,), (1400560439,), (1400560441,), (1400560443,), (1400560447,), (1400560459,), (1400560470,), (1400560479,), (1400560482,), (1400560485,), (1400560489,), (1400560493,), (1400560496,), (1400560513,), (1400560516,), (1400560518,), (1400560521,), (1400560538,), (1400560541,), (1400560543,), (1400560545,), (1400560548,), (1400560549,), (1400560581,), (1400560596,), (1400560599,), (1400560602,), (1400560607,), (1400560763,), (1400560784,), (1400560787,), (1400560790,), (1400560794,), (1400560827,), (1400560888,), (1400560891,), (1400560893,), (1400560895,), (1400561178,), (1400561184,), (1400561188,), (1400561191,), (1400561194,), (1400561197,), (1400561321,), (1400561324,), (1400561327,), (1400561329,), (1400561330,), (1400561332,), (1400561339,), (1400561341,), (1400561343,), (1400561346,), (1400561348,), (1400561351,), (1400561357,), (1400561360,), (1400561369,), (1400561372,), (1400561376,), (1400561381,), (1400561394,), (1400561439,), (1400561398,), (1400561400,), (1400561425,), (1400561434,), (1400561461,), (1400561463,), (1400561465,), (1400561467,), (1400561510,), (1400561541,), (1400561573,), (1400561605,), (1400561639,), (1400561674,), (1400561708,), (1400561709,), (1400561711,), (1400561715,), (1400561719,), (1400561724,), (1400561759,), (1400561760,), (1400561762,), (1400561765,), (1400561769,), (1400561773,), (1400561849,), (1400561881,), (1400561907,), (1400561938,), (1400561940,), (1400561944,), (1400561974,), (1400561977,), (1400561981,), (1400562007,), (1400562013,), (1400562015,), (1400562018,), (1400562021,), (1400562025,), (1400562116,), (1400562118,), (1400562121,), (1400562124,), (1400562133,), (1400562138,), (1400562148,), (1400562158,), (1400562161,), (1400562164,), (1400562167,), (1400562171,), (1400562180,), (1400562182,), (1400562184,), (1400562185,), (1400562186,), (1400562188,), (1400562195,), (1400562197,), (1400562200,), (1400562203,), (1400562212,), (1400562215,), (1400562226,), (1400562228,), (1400562231,), (1400562232,), (1400562235,), (1400562238,), (1400562242,), (1400562246,), (1400562256,), (1400562257,), (1400562258,), (1400562260,), (1400562264,), (1400562268,), (1400562292,), (1400562294,), (1400562296,), (1400562298,), (1400562733,), (1400562770,), (1400562832,), (1400562918,), (1400562984,), (1400563042,), (1400563184,), (1400563216,), (1400563238,), (1400563240,), (1400563505,), (1400563339,), (1400563377,), (1400563405,), (1400563431,), (1400563469,), (1400563723,), (1400563737,), (1400563740,), (1400563742,), (1400563744,), (1400563756,), (1400563760,), (1400563764,), (1400563769,), (1400563772,), (1400563775,), (1400563792,), (1400563796,), (1400563798,), (1400563799,), (1400563801,), (1400563803,), (1400563814,), (1400563817,), (1400563820,), (1400563837,), (1400563841,), (1400563845,), (1400563849,), (1400563852,), (1400563854,), (1400563865,), (1400563868,), (1400563871,), (1400563874,), (1400563876,), (1400563878,), (1400563901,), (1400563906,), (1400563922,), (1400563924,), (1400563925,), (1400563928,), (1400563933,), (1400563956,), (1400563967,), (1400563980,), (1400563983,), (1400563987,), (1400564043,), (1400564046,), (1400564048,), (1400564050,), (1400564053,), (1400564641,), (1400564764,), (1400564902,), (1400565725,), (1400565728,), (1400565735,), (1400565845,), (1400565958,), (1400566033,), (1400566064,), (1400566157,), (1400566163,), (1400566164,), (1400566165,), (1400566167,), (1400566248,), (1400566279,), (1400566311,), (1400566348,), (1400566383,), (1400566650,), (1400566583,), (1400566587,), (1400566613,), (1400566804,), (1400566838,), (1400566871,), (1400566902,), (1400566932,), (1400566946,), (1400567145,), (1400567184,), (1400567392,), (1400567394,), (1400567396,), (1400567909,), (1400567944,), (1400567979,), (1400567997,), (1400568000,), (1400568301,), (1400568333,), (1400568340,), (1400568342,), (1400568364,), (1400568367,), (1400568372,), (1400568375,), (1400568379,), (1400568383,), (1400568397,), (1400568400,), (1400568403,), (1400568407,), (1400568411,), (1400568416,), (1400568422,), (1400568423,), (1400568424,), (1400568425,), (1400568427,), (1400568438,), (1400568442,), (1400568446,), (1400568459,), (1400568460,), (1400568480,), (1400568482,), (1400568484,), (1400568486,), (1400568490,), (1400568518,), (1400568520,), (1400568521,), (1400568522,), (1400568525,), (1400568538,), (1400568539,), (1400568583,), (1400568586,), (1400568589,), (1400568591,), (1400568608,), (1400568607,), (1400568644,), (1400568647,), (1400568649,), (1400568651,), (1400568684,), (1400568685,), (1400568686,), (1400568689,), (1400568692,), (1400568696,), (1400568717,), (1400568719,), (1400568728,), (1400568729,), (1400568736,), (1400568816,), (1400568883,), (1400568916,), (1400568917,), (1400569232,), (1400569237,), (1400569268,), (1400569399,), (1400569401,), (1400569404,), (1400569406,), (1400569410,), (1400569432,), (1400569434,), (1400569435,), (1400569436,), (1400569439,), (1400569455,), (1400569456,), (1400569478,), (1400569835,), (1400569837,), (1400569838,), (1400569839,), (1400569873,), (1400569874,), (1400569875,), (1400569877,), (1400569899,), (1400569901,), (1400569903,), (1400569907,), (1400569910,), (1400569913,), (1400569921,), (1400569925,), (1400569940,), (1400569942,), (1400569944,), (1400569955,), (1400569957,), (1400569961,), (1400569995,), (1400569985,), (1400569988,), (1400569990,), (1400569992,), (1400570012,), (1400570014,), (1400570016,), (1400570165,), (1400570168,), (1400570190,), (1400570193,), (1400570195,), (1400570197,), (1400570225,), (1400570227,), (1400570229,), (1400570246,), (1400570249,), (1400570252,), (1400570275,), (1400570276,), (1400570280,), (1400570282,), (1400570286,), (1400570309,), (1400570310,), (1400570311,), (1400570314,), (1400570317,), (1400570324,), (1400570330,), (1400570332,), (1400570333,), (1400570340,), (1400570343,), (1400570344,), (1400570347,), (1400570350,), (1400570354,), (1400570365,), (1400570366,), (1400570367,), (1400570369,), (1400570391,), (1400570393,), (1400570414,), (1400570416,), (1400570418,), (1400570422,), (1400570426,), (1400570431,), (1400570454,), (1400570455,), (1400570459,), (1400570469,), (1400570473,), (1400570582,), (1400570617,), (1400570654,), (1400570789,), (1400570826,), (1400570859,), (1400571536,), (1400571289,), (1400571355,), (1400571415,), (1400571465,), (1400571501,), (1400571732,), (1400571735,), (1400571764,), (1400571828,), (1400572455,), (1400572458,), (1400572475,), (1400572508,), (1400572557,), (1400572604,), (1400572638,), (1400572642,), (1400572706,), (1400572709,), (1400572711,), (1400572728,), (1400572731,), (1400572733,), (1400572735,), (1400572737,), (1400572770,), (1400572773,), (1400572775,), (1400572779,), (1400572781,), (1400572800,), (1400572802,), (1400572831,), (1400572834,), (1400572836,), (1400572838,), (1400572841,), (1400572842,), (1400572868,), (1400572874,), (1400572876,), (1400572878,), (1400572881,), (1400572905,), (1400572922,), (1400572943,), (1400572952,), (1400573009,), (1400573011,), (1400573297,), (1400573316,), (1400573329,), (1400573339,), (1400573350,), (1400573465,), (1400573467,), (1400573470,), (1400573474,), (1400573478,), (1400573482,), (1400573490,), (1400573517,), (1400573518,), (1400573524,), (1400573526,), (1400573529,), (1400573533,), (1400573661,), (1400573665,), (1400573667,), (1400573669,), (1400573708,), (1400573698,), (1400573703,), (1400573705,), (1400573728,), (1400573730,), (1400573733,), (1400573738,), (1400573741,), (1400573744,), (1400573766,), (1400573769,), (1400573771,), (1400573772,), (1400573774,), (1400573800,), (1400573802,), (1400573804,), (1400573824,), (1400573827,), (1400573830,), (1400573833,), (1400573837,), (1400573868,), (1400574182,), (1400574187,), (1400574188,), (1400574211,), (1400574243,), (1400574317,), (1400574322,), (1400574329,), (1400574478,), (1400574480,), (1400574482,), (1400574485,), (1400574487,), (1400574512,), (1400574514,), (1400574517,), (1400574519,), (1400574522,), (1400574523,), (1400574544,), (1400574548,), (1400574554,), (1400574559,), (1400574562,), (1400574565,), (1400574570,), (1400574573,), (1400574576,), (1400574579,), (1400574582,), (1400574585,), (1400574592,), (1400574593,), (1400574595,), (1400574596,), (1400574597,), (1400574598,), (1400574600,), (1400574601,), (1400574604,), (1400574605,), (1400574607,), (1400574609,), (1400574622,), (1400574624,), (1400574626,), (1400574630,), (1400574663,), (1400574665,), (1400574667,), (1400574670,), (1400574687,), (1400574690,), (1400574693,), (1400574696,), (1400574699,), (1400574701,), (1400574721,), (1400574724,), (1400574727,), (1400574729,), (1400574732,), (1400574735,), (1400574768,), (1400574762,), (1400574765,), (1400574790,), (1400574794,), (1400574798,), (1400574817,), (1400574818,), (1400574820,), (1400574822,), (1400574825,), (1400574830,), (1400574852,), (1400574855,), (1400574858,), (1400574861,), (1400574864,), (1400574867,), (1400574970,), (1400574971,), (1400575006,), (1400575010,), (1400575038,), (1400575046,), (1400575076,), (1400575079,), (1400575115,), (1400575116,), (1400575149,), (1400575151,), (1400575258,), (1400575261,), (1400575263,), (1400575265,), (1400575267,), (1400575269,), (1400575280,), (1400575283,), (1400575285,), (1400575287,), (1400575289,), (1400575292,), (1400575293,), (1400575295,), (1400575298,), (1400575323,), (1400575324,), (1400575325,), (1400575327,), (1400575350,), (1400575352,), (1400575354,), (1400575378,), (1400575381,), (1400575389,), (1400575439,), (1400575442,), (1400575444,), (1400575475,), (1400578855,), (1400579084,), (1400579123,), (1400579130,), (1400579134,), (1400579137,), (1400579140,), (1400579157,), (1400579160,), (1400579163,), (1400579194,), (1400579196,), (1400579198,), (1400579200,), (1400579214,), (1400579216,), (1400579218,), (1400579221,), (1400579224,), (1400579242,), (1400579245,), (1400579270,), (1400579272,), (1400579273,), (1400579276,), (1400579278,), (1400579281,), (1400579289,), (1400579291,), (1400579299,), (1400579301,), (1400579303,), (1400579306,), (1400579309,), (1400579312,), (1400579326,), (1400579328,), (1400579330,), (1400579333,), (1400579337,), (1400579362,), (1400579364,), (1400579366,), (1400579369,), (1400579387,), (1400579390,), (1400579393,), (1400579396,), (1400579415,), (1400579417,), (1400579418,), (1400579419,), (1400579436,), (1400579437,), (1400579438,), (1400579440,), (1400579444,), (1400579467,), (1400579470,), (1400579472,), (1400579474,), (1400579477,), (1400579502,), (1400579493,), (1400579496,), (1400579498,), (1400579499,), (1400579529,), (1400579530,), (1400579531,), (1400579533,), (1400579537,), (1400579552,), (1400579553,), (1400579554,), (1400579556,), (1400579584,), (1400579586,), (1400579588,), (1400579590,), (1400579612,), (1400579613,), (1400579614,), (1400579615,), (1400579618,), (1400579642,), (1400579643,), (1400579665,), (1400579668,), (1400579671,), (1400579700,), (1400579754,), (1400579756,), (1400579781,), (1400579783,), (1400579784,), (1400579786,), (1400579809,), (1400579811,), (1400579813,), (1400579816,), (1400579820,), (1400579835,), (1400579839,), (1400579841,), (1400579844,), (1400579868,), (1400579871,), (1400579873,), (1400579875,), (1400579877,), (1400579879,), (1400579892,), (1400579894,), (1400579896,), (1400579900,), (1400579906,), (1400579909,), (1400579933,), (1400579935,), (1400579938,), (1400579941,), (1400579948,), (1400579950,), (1400579952,), (1400579953,), (1400579956,), (1400579957,), (1400579982,), (1400579928,), (1400579930,), (1400579962,), (1400579963,), (1400579970,), (1400579974,), (1400579979,), (1400579995,), (1400579996,), (1400579997,), (1400579999,), (1400580003,), (1400580005,), (1400580019,), (1400580021,), (1400580209,), (1400580211,), (1400580213,), (1400580231,), (1400580233,), (1400580234,), (1400580253,), (1400580254,), (1400580255,), (1400580308,), (1400580312,), (1400580315,), (1400580320,), (1400580406,), (1400580336,), (1400580340,), (1400580374,), (1400580944,), (1400581007,), (1400581077,), (1400581116,), (1400581149,), (1400581932,), (1400582076,), (1400582116,), (1400582122,), (1400582148,), (1400582329,), (1400582331,), (1400582340,), (1400582372,), (1400582408,), (1400582443,), (1400582936,), (1400582995,), (1400583031,), (1400583074,), (1400583430,), (1400583432,), (1400583434,), (1400583436,), (1400583505,), (1400583537,), (1400583567,), (1400583601,), (1400583631,), (1400584061,), (1400584127,), (1400584166,), (1400584655,), (1400584742,), (1400584827,), (1400584924,), (1400585006,), (1400585092,), (1400585346,), (1400585382,), (1400585425,), (1400585754,), (1400585785,), (1400585787,), (1400585811,), (1400585839,), (1400585847,), (1400585849,), (1400585851,), (1400585854,), (1400585866,), (1400585868,), (1400585870,), (1400585873,), (1400585877,), (1400585881,), (1400586200,), (1400586349,), (1400586483,), (1400587263,), (1400587328,), (1400587359,), (1400587387,), (1400587517,), (1400587407,), (1400587415,), (1400587447,), (1400587481,), (1400588206,), (1400588280,), (1400588314,), (1400588961,), (1400588986,), (1400588987,), (1400588988,), (1400589014,), (1400589054,), (1400589105,), (1400589139,), (1400589167,), (1400589200,), (1400589237,), (1400589590,), (1400589623,), (1400589681,), (1400589744,), (1400589778,), (1400590197,), (1400590232,), (1400590267,), (1400590300,), (1400590331,), (1400590337,), (1400590480,), (1400590512,), (1400590553,), (1400591168,), (1400591170,), (1400591171,), (1400591196,), (1400591226,), (1400591229,), (1400591908,), (1400592022,), (1400592093,), (1400592094,), (1400592110,), (1400592358,), (1400592360,), (1400592423,), (1400592483,), (1400592486,), (1400592487,), (1400592489,), (1400592507,), (1400592516,), (1400592550,), (1400592614,), (1400592682,), (1400592756,), (1400593720,), (1400593815,), (1400593849,), (1400593882,), (1400593938,), (1400594542,), (1400594578,), (1400594674,), (1400594676,), (1400594677,), (1400594679,), (1400595041,), (1400594944,), (1400594977,), (1400595011,), (1400595198,), (1400595207,), (1400595233,), (1400595265,), (1400595768,), (1400595799,), (1400595831,), (1400596391,), (1400596482,), (1400596573,), (1400596656,), (1400596748,), (1400596844,), (1400597239,), (1400597241,), (1400597278,), (1400597366,), (1400597406,), (1400597796,), (1400597831,), (1400597864,), (1400597897,), (1400598216,), (1400598219,), (1400598221,), (1400598224,), (1400598226,), (1400598410,), (1400598495,), (1400598629,), (1400598731,), (1400598866,), (1400599519,), (1400599559,), (1400599592,), (1400599625,), (1400599662,), (1400605216,), (1400604929,), (1400605236,), (1400605238,), (1400605239,), (1400605244,), (1400605549,), (1400605580,), (1400605613,), (1400605648,), (1400605687,), (1400605720,), (1400606001,), (1400606033,), (1400606440,), (1400606441,), (1400606442,), (1400606444,), (1400606448,), (1400606451,), (1400606807,), (1400606885,), (1400606931,), (1400606963,), (1400608318,), (1400608385,), (1400608433,), (1400608484,), (1400608521,), (1400608556,), (1400608711,), (1400608738,), (1400608742,), (1400608746,), (1400609050,), (1400608878,), (1400608910,), (1400608945,), (1400608979,), (1400609014,), (1400609339,), (1400609372,), (1400609405,), (1400610480,), (1400610636,), (1400610756,), (1400610825,), (1400610896,), (1400610936,), (1400611567,), (1400611643,), (1400611718,), (1400611784,), (1400611850,), (1400611916,), (1400612783,), (1400612886,), (1400612983,), (1400613073,), (1400613137,), (1400613207,), (1400613598,), (1400613660,), (1400613714,), (1400613732,), (1400613770,), (1400613806,), (1400614186,), (1400614226,), (1400614257,), (1400614291,), (1400614328,), (1400614364,), (1400615061,), (1400615193,), (1400615269,), (1400615307,), (1400615741,), (1400615744,), (1400615745,), (1400615748,), (1400615773,), (1400615774,), (1400615775,), (1400615777,), (1400615794,), (1400615796,), (1400615799,), (1400615801,), (1400616139,), (1400616239,), (1400616277,), (1400616279,), (1400616282,), (1400616343,), (1400616401,), (1400616402,), (1400616404,), (1400616407,), (1400616410,), (1400616411,), (1400616437,), (1400616439,), (1400616442,), (1400616446,), (1400616448,), (1400616449,), (1400616453,), (1400616457,), (1400616461,), (1400616464,), (1400616470,), (1400616479,), (1400616480,), (1400616485,), (1400616686,), (1400616547,), (1400616583,), (1400616619,), (1400616649,), (1400617225,), (1400617258,), (1400617322,), (1400617353,), (1400617360,), (1400617387,), (1400617560,), (1400617745,), (1400617789,), (1400617826,), (1400618134,), (1400618139,), (1400618142,), (1400618162,), (1400618192,), (1400618194,), (1400618239,), (1400618242,), (1400618243,), (1400618244,), (1400618263,), (1400618266,), (1400618268,), (1400618270,), (1400618272,), (1400618572,), (1400618568,), (1400618569,), (1400618591,), (1400618592,), (1400618617,), (1400618618,), (1400618619,), (1400618621,), (1400618625,), (1400618644,), (1400618646,), (1400618648,), (1400618652,), (1400618655,), (1400618658,), (1400618683,), (1400618684,), (1400618687,), (1400618690,), (1400618694,), (1400618697,), (1400618704,), (1400618706,), (1400618707,), (1400618708,), (1400618709,), (1400618710,), (1400618717,), (1400618721,), (1400618727,), (1400618731,), (1400618735,), (1400618751,), (1400618752,), (1400618753,), (1400618755,), (1400618759,), (1400618762,), (1400618775,), (1400618777,), (1400618857,), (1400618861,), (1400618901,), (1400618903,), (1400618905,), (1400618908,), (1400618925,), (1400618928,), (1400618929,), (1400618933,), (1400618937,), (1400618943,), (1400618948,), (1400618950,), (1400618953,), (1400618960,), (1400618973,), (1400618965,), (1400618966,), (1400618967,), (1400618970,), (1400618987,), (1400618988,), (1400618989,), (1400618991,), (1400618995,), (1400619023,), (1400619025,), (1400619027,), (1400619029,), (1400619033,), (1400619035,), (1400619045,), (1400619047,), (1400619048,), (1400619078,), (1400619079,), (1400619080,), (1400619082,), (1400619086,), (1400619097,), (1400619099,), (1400619101,), (1400619103,), (1400619133,), (1400619135,), (1400619136,), (1400619137,), (1400619154,), (1400619155,), (1400619156,), (1400619158,), (1400619199,), (1400619202,), (1400619204,), (1400619206,), (1400619210,), (1400619212,), (1400619227,), (1400619228,), (1400619229,), (1400619232,), (1400619235,), (1400619241,), (1400619253,), (1400619255,), (1400619256,), (1400619258,), (1400619259,), (1400619266,), (1400619269,), (1400619273,), (1400619277,), (1400619282,), (1400619308,), (1400619310,), (1400619311,), (1400619312,), (1400619340,), (1400619344,), (1400619962,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22122025': {'nb_upload': 14, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29616211]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] map_info['map_portfolio_photo'] : {29616211: [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314]} final : True mtd_id 4302 list_pids : [1400527141, 1400526939, 1400526937, 1400526904, 1400526902, 1400526870, 1400526869, 1400526730, 1400526696, 1400526663, 1400526630, 1400526330, 1400526329, 1400526314] Looping around the photos to save general results len do output : 1 /29616211Didn'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, '4261789') ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789') ('4302', None, None, None, None, None, None, None, '4261789') ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29616211', 'None', None, None, None, None, '4261789'), ('4302', '29616211', '1400527141', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526939', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526937', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526904', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526902', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526870', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526869', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526730', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526696', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526663', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526630', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526330', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526329', None, None, None, None, None, '4261789'), ('4302', '29616211', '1400526314', None, None, None, None, None, '4261789')] time used for this insertion : 0.017656803131103516 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.115831136703491 time spend to save output : 0.017918109893798828 total time spend for step 5 : 7.13374924659729 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 (4261789) 2.44user 2.64system 0:17.46elapsed 29%CPU (0avgtext+0avgdata 168052maxresident)k 80inputs+12264outputs (2major+79736minor)pagefaults 0swaps