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 : 2216010 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 (3343401) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3343401) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289184 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3343401'] with mtr_portfolio_ids : ['25289184'] and first list_photo_ids : [] new path : /proc/2216010/ Name: python3 Umask: 0002 State: R (running) Tgid: 2216010 Ngid: 0 Pid: 2216010 PPid: 2216009 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2216010 NSpid: 2216010 NSpgid: 2215500 NSsid: 2215500 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97620 kB VmRSS: 97620 kB RssAnon: 59816 kB RssFile: 37804 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 52 nonvoluntary_ctxt_switches: 115 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2216010', 'Ngid': '0', 'Pid': '2216010', 'PPid': '2216009', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2216010', 'NSpid': '2216010', 'NSpgid': '2215500', 'NSsid': '2215500', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97620 kB', 'VmRSS': '97620 kB', 'RssAnon': '59816 kB', 'RssFile': '37804 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '52', 'nonvoluntary_ctxt_switches': '115'} ('datou_batch_current', '2216010', '1106896', '0', '1106896', '865648', '97620', b'', 'marlene', '3343401') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25289184) 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 (3343401 ) ) 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 (25289184) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373572065, 'portfolio_id': 25289184}, {'photo_id': 1373572061, 'portfolio_id': 25289184}, {'photo_id': 1373572060, 'portfolio_id': 25289184}, {'photo_id': 1373572059, 'portfolio_id': 25289184}, {'photo_id': 1373572057, 'portfolio_id': 25289184}, {'photo_id': 1373572055, 'portfolio_id': 25289184}, {'photo_id': 1373572002, 'portfolio_id': 25289184}, {'photo_id': 1373571998, 'portfolio_id': 25289184}, {'photo_id': 1373571997, 'portfolio_id': 25289184}, {'photo_id': 1373571996, 'portfolio_id': 25289184}, {'photo_id': 1373571995, 'portfolio_id': 25289184}, {'photo_id': 1373571993, 'portfolio_id': 25289184}, {'photo_id': 1373571934, 'portfolio_id': 25289184}, {'photo_id': 1373571709, 'portfolio_id': 25289184}, {'photo_id': 1373571705, 'portfolio_id': 25289184}, {'photo_id': 1373571703, 'portfolio_id': 25289184}, {'photo_id': 1373571702, 'portfolio_id': 25289184}, {'photo_id': 1373571701, 'portfolio_id': 25289184}, {'photo_id': 1373571700, 'portfolio_id': 25289184}] map_portfolio_id_photo_id: {25289184: [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993, 1373571934, 1373571709, 1373571705, 1373571703, 1373571702, 1373571701, 1373571700]} ##### 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.014325380325317383 #### 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 Thu Jul 24 19:34:29 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 (25289184) 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 : 25289184 get user id for portfolio 25289184 get sub ptf for main ptf 25289184, type 3726 and hashtags ['environnement', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'Carton_brun', 'kraft', 'metal', 'papier', 'plastique', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25289184 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','kraft','metal','papier','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25289184 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','kraft','metal','papier','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25289184, 'sub_port_id': 25289218, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057988, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'papier': {'main_port_id': 25289184, 'sub_port_id': 25289220, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057989, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'flou': {'main_port_id': 25289184, 'sub_port_id': 25289221, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057990, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'environnement': {'main_port_id': 25289184, 'sub_port_id': 25289222, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057991, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'cartonnette': {'main_port_id': 25289184, 'sub_port_id': 25289223, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057992, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'metal': {'main_port_id': 25289184, 'sub_port_id': 25289224, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057993, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25289184, 'sub_port_id': 25289225, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057994, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'plastique': {'main_port_id': 25289184, 'sub_port_id': 25289226, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057995, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'mal_croppe': {'main_port_id': 25289184, 'sub_port_id': 25289227, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057996, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'kraft': {'main_port_id': 25289184, 'sub_port_id': 25289228, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057997, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'Carton_brun': {'main_port_id': 25289184, 'sub_port_id': 25289229, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057998, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}, 'Carton_gris': {'main_port_id': 25289184, 'sub_port_id': 25289230, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17057999, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289218 , 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=25289184 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 (25289218) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289220 , 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=25289184 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 (25289220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289221 , 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=25289184 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 (25289221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289222 , 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=25289184 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 (25289222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289223 , 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=25289184 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 (25289223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289224 , 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=25289184 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 (25289224) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289225 , 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=25289184 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 (25289225) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289226 , 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=25289184 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 (25289226) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289227 , 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=25289184 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 (25289227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289228 , 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=25289184 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 (25289228) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289229 , 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=25289184 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 (25289229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25289230 , 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=25289184 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 (25289230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25289184) result : ((1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) 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 (1373571700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25289184 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','kraft','metal','papier','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25289184 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','kraft','metal','papier','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25289184, 'sub_port_id': 25289233, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058000, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'papier': {'main_port_id': 25289184, 'sub_port_id': 25289234, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058001, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'flou': {'main_port_id': 25289184, 'sub_port_id': 25289235, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058002, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'environnement': {'main_port_id': 25289184, 'sub_port_id': 25289236, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058003, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'cartonnette': {'main_port_id': 25289184, 'sub_port_id': 25289237, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058004, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'metal': {'main_port_id': 25289184, 'sub_port_id': 25289238, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058005, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25289184, 'sub_port_id': 25289239, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058006, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'plastique': {'main_port_id': 25289184, 'sub_port_id': 25289240, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058007, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'mal_croppe': {'main_port_id': 25289184, 'sub_port_id': 25289241, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058008, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'kraft': {'main_port_id': 25289184, 'sub_port_id': 25289242, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058009, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'Carton_brun': {'main_port_id': 25289184, 'sub_port_id': 25289243, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058010, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}, 'Carton_gris': {'main_port_id': 25289184, 'sub_port_id': 25289244, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17058011, 'last_updated_at': datetime.datetime(2025, 7, 24, 19, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 19, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 19, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25289244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25289230 lien utilise dans velours : https://www.fotonower.com/velours/25289233,25289234,25289235,25289236,25289237,25289238,25289239,25289240,25289241,25289242,25289243,25289244?tags=autre_refus,papier,flou,environnement,cartonnette,metal,Teint_Dans_La_Masse,plastique,mal_croppe,kraft,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25289184]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] map_info['map_portfolio_photo'] : {25289184: [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993, 1373571934, 1373571709, 1373571705, 1373571703, 1373571702, 1373571701, 1373571700]} final : False mtd_id 4302 list_pids : [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] Looping around the photos to save general results len do output : 1 /25289184. 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, '3343401') ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25289184', "{'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230}", None, None, None, None, '3343401'), ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401')] time used for this insertion : 0.014645576477050781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4161360263824463 time spend to save output : 0.014907598495483398 total time spend for step 1 : 0.4310436248779297 step2:final Thu Jul 24 19:34:30 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 (25289184) 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 25289184 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373571709,1373571705,1373571703,1373571702,1373571701,1373571700,1373571934,1373572002,1373571998,1373571997,1373571996,1373571995,1373571993,1373572065,1373572061,1373572060,1373572059,1373572057,1373572055); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25289184]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} new output for save of step final : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] map_info['map_portfolio_photo'] : {25289184: [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993, 1373571934, 1373571709, 1373571705, 1373571703, 1373571702, 1373571701, 1373571700]} final : False mtd_id 4302 list_pids : [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] Looping around the photos to save general results len do output : 12 /1373572065.Didn't retrieve data . /1373572061.Didn't retrieve data . /1373572060.Didn't retrieve data . /1373572059.Didn't retrieve data . /1373572057.Didn't retrieve data . /1373572055.Didn't retrieve data . /1373572002.Didn't retrieve data . /1373571998.Didn't retrieve data . /1373571997.Didn't retrieve data . /1373571996.Didn't retrieve data . /1373571995.Didn't retrieve data . /1373571993.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, '3343401') ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25289184', '1373572065', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572061', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572060', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572059', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572057', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572055', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373572002', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373571998', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373571997', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373571996', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373571995', '0.0', None, None, None, None, '3343401'), ('4302', '25289184', '1373571993', '0.0', None, None, None, None, '3343401')] time used for this insertion : 0.019706249237060547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05171847343444824 time spend to save output : 0.02025890350341797 total time spend for step 2 : 0.07197737693786621 step3:velours_tree Thu Jul 24 19:34:30 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 : {25289184: [{'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230}]} input_args_next_step : {25289184: ()} output_args : {25289184: [{'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230}]} args : 25289184 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 : ({'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25289184) 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([25289184]) 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.29918956756591797 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.2992424964904785 step4:send_mail_cod Thu Jul 24 19:34:30 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 : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} input_args_next_step : {1373572065: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572065 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572061 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572060 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572059 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572057 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572055 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373572002 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373571998 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373571997 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373571996 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373571995 depend.output_id : 0 input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ()} output_args : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',)} args : 1373571993 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 : {25289184: [{'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230}]} input_args_next_step : {1373572065: ('0.0',), 1373572061: ('0.0',), 1373572060: ('0.0',), 1373572059: ('0.0',), 1373572057: ('0.0',), 1373572055: ('0.0',), 1373572002: ('0.0',), 1373571998: ('0.0',), 1373571997: ('0.0',), 1373571996: ('0.0',), 1373571995: ('0.0',), 1373571993: ('0.0',), 25289184: ()} output_args : {25289184: [{'autre_refus': 25289218, 'papier': 25289220, 'flou': 25289221, 'environnement': 25289222, 'cartonnette': 25289223, 'metal': 25289224, 'Teint_Dans_La_Masse': 25289225, 'plastique': 25289226, 'mal_croppe': 25289227, 'kraft': 25289228, 'Carton_brun': 25289229, 'Carton_gris': 25289230}]} args : 25289184 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 :13, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25289184) 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 ph WHERE photo_id IN (1373572065,1373572061,1373572060,1373572059,1373572057,1373572055,1373572002,1373571998,1373571997,1373571996,1373571995,1373571993) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373571993 begin to download photo : 1373571997 begin to download photo : 1373572055 begin to download photo : 1373572060 download finish for photo 1373572060 begin to download photo : 1373572061 download finish for photo 1373571997 begin to download photo : 1373571998 download finish for photo 1373571993 begin to download photo : 1373571995 download finish for photo 1373572055 begin to download photo : 1373572057 download finish for photo 1373572061 begin to download photo : 1373572065 download finish for photo 1373571995 begin to download photo : 1373571996 download finish for photo 1373571998 begin to download photo : 1373572002 download finish for photo 1373572057 begin to download photo : 1373572059 download finish for photo 1373572065 download finish for photo 1373572059 download finish for photo 1373571996 download finish for photo 1373572002 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette252892181753378470/ imagette252892211753378470/ imagette252892231753378470/ imagette252892241753378470/ imagette252892261753378470/ imagette252892271753378470/ imagette252892281753378470/ imagette252892251753378470/ imagette252892291753378470/ imagette252892301753378470/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25289184_24-07-2025_19_34_30.pdf 25289218 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892181753378470 25289221 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892211753378470 25289223 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892231753378470 25289224 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892241753378470 25289226 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892261753378470 25289227 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892271753378470 25289228 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892281753378470 25289225 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892251753378470 25289229 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892291753378470 25289230 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252892301753378470 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25289184 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25289233,25289234,25289235,25289236,25289237,25289238,25289239,25289240,25289241,25289242,25289243,25289244?tags=autre_refus,papier,flou,environnement,cartonnette,metal,Teint_Dans_La_Masse,plastique,mal_croppe,kraft,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1373572065] : ('0.0',) no score found for photo 1373572065 We are sending mail with results at report@fotonower.com args[1373572061] : ('0.0',) no score found for photo 1373572061 We are sending mail with results at report@fotonower.com args[1373572060] : ('0.0',) no score found for photo 1373572060 We are sending mail with results at report@fotonower.com args[1373572059] : ('0.0',) no score found for photo 1373572059 We are sending mail with results at report@fotonower.com args[1373572057] : ('0.0',) no score found for photo 1373572057 We are sending mail with results at report@fotonower.com args[1373572055] : ('0.0',) no score found for photo 1373572055 We are sending mail with results at report@fotonower.com args[1373572002] : ('0.0',) no score found for photo 1373572002 We are sending mail with results at report@fotonower.com args[1373571998] : ('0.0',) no score found for photo 1373571998 We are sending mail with results at report@fotonower.com args[1373571997] : ('0.0',) no score found for photo 1373571997 We are sending mail with results at report@fotonower.com args[1373571996] : ('0.0',) no score found for photo 1373571996 We are sending mail with results at report@fotonower.com args[1373571995] : ('0.0',) no score found for photo 1373571995 We are sending mail with results at report@fotonower.com args[1373571993] : ('0.0',) no score found for photo 1373571993 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289184 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_P25289184_24-07-2025_19_34_30.pdf results_Auto_P25289184_24-07-2025_19_34_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25289184_24-07-2025_19_34_30.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','25289184','results_Auto_P25289184_24-07-2025_19_34_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25289184_24-07-2025_19_34_30.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25289184]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] map_info['map_portfolio_photo'] : {25289184: [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993, 1373571934, 1373571709, 1373571705, 1373571703, 1373571702, 1373571701, 1373571700]} final : False mtd_id 4302 list_pids : [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] 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, '3343401') ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25289184', '1373572065', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401')] time used for this insertion : 0.015834569931030273 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5247080326080322 time spend to save output : 0.016078948974609375 total time spend for step 4 : 1.5407869815826416 step5:split_time_score Thu Jul 24 19:34:31 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 : ['25289184'] 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 : [('25289184',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25289184) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373572060: {'path': 'temp/1753378470_2216010_1373572060_69957f89390975892b7aa37911044c31.jpg', 'extension': 'jpg'}, 1373572061: {'path': 'temp/1753378470_2216010_1373572061_dd6a0d7cfe9f3c62cbc004b36ded4b1a.jpg', 'extension': 'jpg'}, 1373572065: {'path': 'temp/1753378470_2216010_1373572065_bc5d40761a9a62cd96a82076ec8899d6.jpg', 'extension': 'jpg'}, 1373572055: {'path': 'temp/1753378470_2216010_1373572055_afbb2ab1ccde496cb8861d2348ea964d.jpg', 'extension': 'jpg'}, 1373572057: {'path': 'temp/1753378470_2216010_1373572057_9ce4e048b7595d14d36bf274f9271578.jpg', 'extension': 'jpg'}, 1373572059: {'path': 'temp/1753378470_2216010_1373572059_a65b83026085f3dd0bc24e4938c1de45.jpg', 'extension': 'jpg'}, 1373571993: {'path': 'temp/1753378470_2216010_1373571993_44f9346df0b6d36a5543ceba6d005d03.jpg', 'extension': 'jpg'}, 1373571995: {'path': 'temp/1753378470_2216010_1373571995_4fd45cb85fd9747c9e4b272cc19c6e6a.jpg', 'extension': 'jpg'}, 1373571996: {'path': 'temp/1753378470_2216010_1373571996_ad1b4a0d31eec30715bf61407e9206db.jpg', 'extension': 'jpg'}, 1373571997: {'path': 'temp/1753378470_2216010_1373571997_ce148f1406f4e22651eeb0087f30ac16.jpg', 'extension': 'jpg'}, 1373571998: {'path': 'temp/1753378470_2216010_1373571998_73299735a8d5a4de36de64052f4db670.jpg', 'extension': 'jpg'}, 1373572002: {'path': 'temp/1753378470_2216010_1373572002_1868283e070bf920c0de2b73121748f9.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 = 25289184; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25289184 group by h (('19', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25289184 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 (25289184) 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 (25289184) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24072025 25289184 Nombre de photos uploadées : 19 / 23040 (0%) 24072025 25289184 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 24072025 25289184 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1373571709, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/324557f2b9ef6aa10ceddef1f55d7fa1.jpg', 'username': None, 'uploaded_at': 1753378265, 'text': 'image_24072025_19_30_04_10159.jpg'}, {'photo_id': 1373571705, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/fcf3b15e43d7ec69e0a3559b58e0b61d.jpg', 'username': None, 'uploaded_at': 1753378265, 'text': 'image_24072025_19_30_13_9123.jpg'}, {'photo_id': 1373571703, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d9651718ba7dcd19f46d52da4c67b6fd.jpg', 'username': None, 'uploaded_at': 1753378265, 'text': 'image_24072025_19_30_24_10133.jpg'}, {'photo_id': 1373571702, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/af03180909a2cc6b1d18e7b59ef8f605.jpg', 'username': None, 'uploaded_at': 1753378265, 'text': 'image_24072025_19_30_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001828908920288086 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25289184, '2025-07-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2002734,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026180505752563477 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= 2002734 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25245820, 'dashboard_result_id': 13050100, '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_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25246316, 'dashboard_result_id': 13050101, '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_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25246632, 'dashboard_result_id': 13050102, '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_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25246996, 'dashboard_result_id': 13050103, '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_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25247263, 'dashboard_result_id': 13050104, '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_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25247788, 'dashboard_result_id': 13050105, '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_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25248336, 'dashboard_result_id': 13050106, '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_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25248727, 'dashboard_result_id': 13050107, '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_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25249105, 'dashboard_result_id': 13050108, '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_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25249748, 'dashboard_result_id': 13050109, '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_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25250094, 'dashboard_result_id': 13050110, '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_P25250094_24-07-2025_16_01_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25250494, 'dashboard_result_id': 13050111, '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_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25250838, 'dashboard_result_id': 13050112, '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_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25251371, 'dashboard_result_id': 13050113, '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_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25251822, 'dashboard_result_id': 13050114, '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_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25252281, 'dashboard_result_id': 13050115, '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_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25252752, 'dashboard_result_id': 13050116, '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_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25253150, 'dashboard_result_id': 13050117, '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_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25253504, 'dashboard_result_id': 13050118, '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_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25253932, 'dashboard_result_id': 13050119, '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_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25254261, 'dashboard_result_id': 13050120, '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_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25254804, 'dashboard_result_id': 13050121, '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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25255177, 'dashboard_result_id': 13050122, '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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25255497, 'dashboard_result_id': 13050123, '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_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25255885, 'dashboard_result_id': 13050124, '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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25256351, 'dashboard_result_id': 13050125, '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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25256792, 'dashboard_result_id': 13050126, '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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25257228, 'dashboard_result_id': 13050127, '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_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25257684, 'dashboard_result_id': 13050128, '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_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25258386, 'dashboard_result_id': 13050129, '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_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25259037, 'dashboard_result_id': 13050130, '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_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25259819, 'dashboard_result_id': 13050131, '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_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25260473, 'dashboard_result_id': 13050132, '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_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25261109, 'dashboard_result_id': 13050133, '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_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25261705, 'dashboard_result_id': 13050134, '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_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25262414, 'dashboard_result_id': 13050135, '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_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25263292, 'dashboard_result_id': 13050136, '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_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25264317, 'dashboard_result_id': 13050137, '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_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25265385, 'dashboard_result_id': 13050138, '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_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25266121, 'dashboard_result_id': 13050139, '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_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25266734, 'dashboard_result_id': 13050140, '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_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25267535, 'dashboard_result_id': 13050141, '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_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25268205, 'dashboard_result_id': 13050142, '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_P25268205_24-07-2025_16_00_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25268773, 'dashboard_result_id': 13050143, '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_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25269326, 'dashboard_result_id': 13050144, '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_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25270040, 'dashboard_result_id': 13050145, '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_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25270595, 'dashboard_result_id': 13050146, '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_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25271196, 'dashboard_result_id': 13050147, '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_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25271786, 'dashboard_result_id': 13050148, '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_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25272556, 'dashboard_result_id': 13050149, '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_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25273042, 'dashboard_result_id': 13050150, '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_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25273618, 'dashboard_result_id': 13050151, '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_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25274243, 'dashboard_result_id': 13050152, '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_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25274918, 'dashboard_result_id': 13050153, '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_P25274918_24-07-2025_13_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25275523, 'dashboard_result_id': 13050154, '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_P25275523_24-07-2025_13_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25275546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25275547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25275548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25275549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25275550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25275551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25275552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25275553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25275554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25275555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25275556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25275557, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25276051, 'dashboard_result_id': 13050155, '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_P25276051_24-07-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276100, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25276640, 'dashboard_result_id': 13050156, '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_P25276640_24-07-2025_14_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276703, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25277192, 'dashboard_result_id': 13050157, '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_P25277192_24-07-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277241, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25277917, 'dashboard_result_id': 13050158, '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_P25277917_24-07-2025_15_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277935, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25278430, 'dashboard_result_id': 13050159, '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_P25278430_24-07-2025_15_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25278494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278501, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25278932, 'dashboard_result_id': 13050160, '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_P25278932_24-07-2025_15_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25278946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278957, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25279589, 'dashboard_result_id': 13050161, '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_P25279589_24-07-2025_15_31_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25279624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25279625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25279626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25279627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25279628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25279629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25279630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25279631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25279632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25279633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25279634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25279635, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25280191, 'dashboard_result_id': 13050162, '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_P25280191_24-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280211, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25280635, 'dashboard_result_id': 13050163, '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_P25280635_24-07-2025_16_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280692, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25281328, 'dashboard_result_id': 13050164, '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_P25281328_24-07-2025_16_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25281340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25281341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25281342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25281343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25281344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25281345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25281346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25281347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25281348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25281349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25281350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25281351, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25282113, 'dashboard_result_id': 13050165, '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_P25282113_24-07-2025_16_53_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25282120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25282121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25282122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25282123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25282124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25282125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25282126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25282127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25282128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25282129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25282130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25282131, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25282939, 'dashboard_result_id': 13050166, '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_P25282939_24-07-2025_17_59_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283054, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25283116, 'dashboard_result_id': 13050167, '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_P25283116_24-07-2025_17_01_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283135, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25283363, 'dashboard_result_id': 13050168, '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_P25283363_24-07-2025_17_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283415, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25283987, 'dashboard_result_id': 13050169, '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_P25283987_24-07-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284005, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25284366, 'dashboard_result_id': 13050170, '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_P25284366_24-07-2025_17_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284421, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25284858, 'dashboard_result_id': 13050171, '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_P25284858_24-07-2025_18_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284875, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25285340, 'dashboard_result_id': 13050172, '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_P25285340_24-07-2025_18_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25285378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285385, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25285906, 'dashboard_result_id': 13050173, '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_P25285906_24-07-2025_18_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25285948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285963, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25286508, 'dashboard_result_id': 13050174, '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_P25286508_24-07-2025_18_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25286519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25286520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25286521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25286522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25286523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25286524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25286525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25286526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25286527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25286528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25286529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25286530, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25287204, 'dashboard_result_id': 13050175, '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_P25287204_24-07-2025_19_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25287215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287226, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25287762, 'dashboard_result_id': 13050176, '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_P25287762_24-07-2025_19_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25287783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287784, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25288533, 'dashboard_result_id': 13050177, '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_P25288533_24-07-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25288544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25288545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25288546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25288547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25288548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25288549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25288550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25288551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25288552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25288555, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2013129, 'mtr_portfolio_id': 25289184, 'dashboard_result_id': 13050178, '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_P25289184_24-07-2025_19_33_32.pdf'}"}] 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 = 25245820 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': 3334263, 'mtr_portfolio_id': 25245820, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 40), 'result': '0.038215598605625845', 'result_long': None, 'result_double': None}] Qualite : 0.038215598605625845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25245820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25245820 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_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}" where mtr_portfolio_id = 25245820 and dashboard_run_id = 2013129 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`=25245820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050100, 0.038215598605625845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, '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 = 25246316 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': 3334264, 'mtr_portfolio_id': 25246316, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 30), 'result': '0.03126112302470875', 'result_long': None, 'result_double': None}] Qualite : 0.03126112302470875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246316 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_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}" where mtr_portfolio_id = 25246316 and dashboard_run_id = 2013129 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`=25246316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050101, 0.03126112302470875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, '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 = 25246632 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': 3334265, 'mtr_portfolio_id': 25246632, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 59), 'result': '0.04209888580772617', 'result_long': None, 'result_double': None}] Qualite : 0.04209888580772617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246632 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_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}" where mtr_portfolio_id = 25246632 and dashboard_run_id = 2013129 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`=25246632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050102, 0.04209888580772617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, '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 = 25246996 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': 3334266, 'mtr_portfolio_id': 25246996, 'created_at': datetime.datetime(2025, 7, 24, 6, 32, 29), 'result': '0.037362390466138935', 'result_long': None, 'result_double': None}] Qualite : 0.037362390466138935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246996 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_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}" where mtr_portfolio_id = 25246996 and dashboard_run_id = 2013129 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`=25246996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050103, 0.037362390466138935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, '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 = 25247263 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247263 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334267, 'mtr_portfolio_id': 25247263, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247263 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_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}" where mtr_portfolio_id = 25247263 and dashboard_run_id = 2013129 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`=25247263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050104, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, '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 = 25247788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247788 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334268, 'mtr_portfolio_id': 25247788, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247788 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_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}" where mtr_portfolio_id = 25247788 and dashboard_run_id = 2013129 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`=25247788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050105, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, '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 = 25248336 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': 3334269, 'mtr_portfolio_id': 25248336, 'created_at': datetime.datetime(2025, 7, 24, 6, 34, 29), 'result': '0.04550434624396371', 'result_long': None, 'result_double': None}] Qualite : 0.04550434624396371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248336 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_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}" where mtr_portfolio_id = 25248336 and dashboard_run_id = 2013129 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`=25248336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050106, 0.04550434624396371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, '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 = 25248727 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': 3334270, 'mtr_portfolio_id': 25248727, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 29), 'result': '0.041544677557399705', 'result_long': None, 'result_double': None}] Qualite : 0.041544677557399705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248727 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_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}" where mtr_portfolio_id = 25248727 and dashboard_run_id = 2013129 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`=25248727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050107, 0.041544677557399705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, '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 = 25249105 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': 3334271, 'mtr_portfolio_id': 25249105, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 40), 'result': '0.027287981725041512', 'result_long': None, 'result_double': None}] Qualite : 0.027287981725041512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249105 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_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}" where mtr_portfolio_id = 25249105 and dashboard_run_id = 2013129 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`=25249105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050108, 0.027287981725041512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, '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 = 25249748 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': 3334272, 'mtr_portfolio_id': 25249748, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 59), 'result': '0.04867910375967595', 'result_long': None, 'result_double': None}] Qualite : 0.04867910375967595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249748 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_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}" where mtr_portfolio_id = 25249748 and dashboard_run_id = 2013129 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`=25249748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050109, 0.04867910375967595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, '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 = 25250094 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': 3334273, 'mtr_portfolio_id': 25250094, 'created_at': datetime.datetime(2025, 7, 24, 16, 1, 28), 'result': '0.05408474235416055', 'result_long': None, 'result_double': None}] Qualite : 0.05408474235416055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_16_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250094 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_P25250094_24-07-2025_16_01_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}" where mtr_portfolio_id = 25250094 and dashboard_run_id = 2013129 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`=25250094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050110, 0.05408474235416055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_16_01_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, '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 = 25250494 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': 3334274, 'mtr_portfolio_id': 25250494, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 27), 'result': '0.03219262700891156', 'result_long': None, 'result_double': None}] Qualite : 0.03219262700891156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250494 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_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}" where mtr_portfolio_id = 25250494 and dashboard_run_id = 2013129 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`=25250494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050111, 0.03219262700891156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, '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 = 25250838 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': 3334275, 'mtr_portfolio_id': 25250838, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 58), 'result': '0.019977432830331845', 'result_long': None, 'result_double': None}] Qualite : 0.019977432830331845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250838 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_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}" where mtr_portfolio_id = 25250838 and dashboard_run_id = 2013129 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`=25250838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050112, 0.019977432830331845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, '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 = 25251371 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': 3334276, 'mtr_portfolio_id': 25251371, 'created_at': datetime.datetime(2025, 7, 24, 6, 38, 29), 'result': '0.03179996240797819', 'result_long': None, 'result_double': None}] Qualite : 0.03179996240797819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251371 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_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}" where mtr_portfolio_id = 25251371 and dashboard_run_id = 2013129 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`=25251371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050113, 0.03179996240797819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, '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 = 25251822 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': 3334277, 'mtr_portfolio_id': 25251822, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 28), 'result': '0.038330996235407075', 'result_long': None, 'result_double': None}] Qualite : 0.038330996235407075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251822 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_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}" where mtr_portfolio_id = 25251822 and dashboard_run_id = 2013129 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`=25251822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050114, 0.038330996235407075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, '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 = 25252281 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': 3334278, 'mtr_portfolio_id': 25252281, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 59), 'result': '0.04638451755557565', 'result_long': None, 'result_double': None}] Qualite : 0.04638451755557565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252281 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_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}" where mtr_portfolio_id = 25252281 and dashboard_run_id = 2013129 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`=25252281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050115, 0.04638451755557565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, '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 = 25252752 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': 3334279, 'mtr_portfolio_id': 25252752, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 32), 'result': '0.032941466003342634', 'result_long': None, 'result_double': None}] Qualite : 0.032941466003342634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252752 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_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}" where mtr_portfolio_id = 25252752 and dashboard_run_id = 2013129 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`=25252752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050116, 0.032941466003342634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, '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 = 25253150 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': 3334280, 'mtr_portfolio_id': 25253150, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 40), 'result': '0.03518817691242381', 'result_long': None, 'result_double': None}] Qualite : 0.03518817691242381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253150 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_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}" where mtr_portfolio_id = 25253150 and dashboard_run_id = 2013129 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`=25253150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050117, 0.03518817691242381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, '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 = 25253504 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': 3334281, 'mtr_portfolio_id': 25253504, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 27), 'result': '0.04192457870721397', 'result_long': None, 'result_double': None}] Qualite : 0.04192457870721397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253504 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_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}" where mtr_portfolio_id = 25253504 and dashboard_run_id = 2013129 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`=25253504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050118, 0.04192457870721397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, '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 = 25253932 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': 3334282, 'mtr_portfolio_id': 25253932, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 58), 'result': '0.06409231738904918', 'result_long': None, 'result_double': None}] Qualite : 0.06409231738904918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253932 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_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}" where mtr_portfolio_id = 25253932 and dashboard_run_id = 2013129 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`=25253932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050119, 0.06409231738904918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, '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 = 25254261 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': 3334283, 'mtr_portfolio_id': 25254261, 'created_at': datetime.datetime(2025, 7, 24, 6, 42, 30), 'result': '0.03719769099501056', 'result_long': None, 'result_double': None}] Qualite : 0.03719769099501056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254261 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_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}" where mtr_portfolio_id = 25254261 and dashboard_run_id = 2013129 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`=25254261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050120, 0.03719769099501056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, '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 = 25254804 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': 3334284, 'mtr_portfolio_id': 25254804, 'created_at': datetime.datetime(2025, 7, 24, 5, 40, 39), 'result': '0.042868024995077914', 'result_long': None, 'result_double': None}] Qualite : 0.042868024995077914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254804 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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}" where mtr_portfolio_id = 25254804 and dashboard_run_id = 2013129 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`=25254804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050121, 0.042868024995077914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, '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 = 25255177 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': 3334163, 'mtr_portfolio_id': 25255177, 'created_at': datetime.datetime(2025, 7, 24, 5, 46, 58), 'result': '0.03262217189807922', 'result_long': None, 'result_double': None}] Qualite : 0.03262217189807922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255177 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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}" where mtr_portfolio_id = 25255177 and dashboard_run_id = 2013129 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`=25255177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050122, 0.03262217189807922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, '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 = 25255497 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': 3334356, 'mtr_portfolio_id': 25255497, 'created_at': datetime.datetime(2025, 7, 24, 6, 0, 58), 'result': '0.04344951070728682', 'result_long': None, 'result_double': None}] Qualite : 0.04344951070728682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255497 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_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}" where mtr_portfolio_id = 25255497 and dashboard_run_id = 2013129 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`=25255497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050123, 0.04344951070728682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, '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 = 25255885 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': 3334478, 'mtr_portfolio_id': 25255885, 'created_at': datetime.datetime(2025, 7, 24, 6, 16, 30), 'result': '0.031837923502929036', 'result_long': None, 'result_double': None}] Qualite : 0.031837923502929036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255885 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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}" where mtr_portfolio_id = 25255885 and dashboard_run_id = 2013129 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`=25255885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050124, 0.031837923502929036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, '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 = 25256351 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': 3334574, 'mtr_portfolio_id': 25256351, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 59), 'result': '0.026085246051546402', 'result_long': None, 'result_double': None}] Qualite : 0.026085246051546402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256351 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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}" where mtr_portfolio_id = 25256351 and dashboard_run_id = 2013129 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`=25256351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050125, 0.026085246051546402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, '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 = 25256792 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': 3334691, 'mtr_portfolio_id': 25256792, 'created_at': datetime.datetime(2025, 7, 24, 6, 46, 29), 'result': '0.0367596715937518', 'result_long': None, 'result_double': None}] Qualite : 0.0367596715937518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256792 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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}" where mtr_portfolio_id = 25256792 and dashboard_run_id = 2013129 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`=25256792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050126, 0.0367596715937518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, '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 = 25257228 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': 3334799, 'mtr_portfolio_id': 25257228, 'created_at': datetime.datetime(2025, 7, 24, 7, 0, 59), 'result': '0.03855012418397147', 'result_long': None, 'result_double': None}] Qualite : 0.03855012418397147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257228 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_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}" where mtr_portfolio_id = 25257228 and dashboard_run_id = 2013129 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`=25257228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050127, 0.03855012418397147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, '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 = 25257684 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': 3334933, 'mtr_portfolio_id': 25257684, 'created_at': datetime.datetime(2025, 7, 24, 7, 18, 57), 'result': '0.025329693137802284', 'result_long': None, 'result_double': None}] Qualite : 0.025329693137802284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257684 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_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}" where mtr_portfolio_id = 25257684 and dashboard_run_id = 2013129 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`=25257684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050128, 0.025329693137802284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, '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 = 25258386 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': 3335113, 'mtr_portfolio_id': 25258386, 'created_at': datetime.datetime(2025, 7, 24, 7, 31), 'result': '0.04008529662083538', 'result_long': None, 'result_double': None}] Qualite : 0.04008529662083538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25258386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25258386 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_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}" where mtr_portfolio_id = 25258386 and dashboard_run_id = 2013129 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`=25258386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050129, 0.04008529662083538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, '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 = 25259037 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': 3335261, 'mtr_portfolio_id': 25259037, 'created_at': datetime.datetime(2025, 7, 24, 7, 46, 58), 'result': '0.07597098378790093', 'result_long': None, 'result_double': None}] Qualite : 0.07597098378790093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259037 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_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}" where mtr_portfolio_id = 25259037 and dashboard_run_id = 2013129 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`=25259037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050130, 0.07597098378790093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, '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 = 25259819 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': 3335439, 'mtr_portfolio_id': 25259819, 'created_at': datetime.datetime(2025, 7, 24, 8, 1), 'result': '0.0368400569706755', 'result_long': None, 'result_double': None}] Qualite : 0.0368400569706755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_08_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259819 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_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}" where mtr_portfolio_id = 25259819 and dashboard_run_id = 2013129 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`=25259819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050131, 0.0368400569706755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, '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 = 25260473 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': 3335558, 'mtr_portfolio_id': 25260473, 'created_at': datetime.datetime(2025, 7, 24, 8, 16, 59), 'result': '0.043906781480640145', 'result_long': None, 'result_double': None}] Qualite : 0.043906781480640145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25260473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25260473_24-07-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25260473 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_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, 'pht': 3726}}" where mtr_portfolio_id = 25260473 and dashboard_run_id = 2013129 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`=25260473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050132, 0.043906781480640145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, '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 = 25261109 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': 3335680, 'mtr_portfolio_id': 25261109, 'created_at': datetime.datetime(2025, 7, 24, 8, 30, 58), 'result': '0.04221493769914953', 'result_long': None, 'result_double': None}] Qualite : 0.04221493769914953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25261109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261109_24-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25261109 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_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, 'pht': 3726}}" where mtr_portfolio_id = 25261109 and dashboard_run_id = 2013129 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`=25261109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050133, 0.04221493769914953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, '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 = 25261705 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': 3335802, 'mtr_portfolio_id': 25261705, 'created_at': datetime.datetime(2025, 7, 24, 8, 46, 59), 'result': '0.05752987727251312', 'result_long': None, 'result_double': None}] Qualite : 0.05752987727251312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25261705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261705_24-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25261705 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_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, 'pht': 3726}}" where mtr_portfolio_id = 25261705 and dashboard_run_id = 2013129 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`=25261705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050134, 0.05752987727251312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, '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 = 25262414 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': 3335982, 'mtr_portfolio_id': 25262414, 'created_at': datetime.datetime(2025, 7, 24, 9, 0, 59), 'result': '0.06579695197743432', 'result_long': None, 'result_double': None}] Qualite : 0.06579695197743432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25262414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25262414_24-07-2025_09_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25262414 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_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, 'pht': 3726}}" where mtr_portfolio_id = 25262414 and dashboard_run_id = 2013129 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`=25262414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050135, 0.06579695197743432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, '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 = 25263292 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25263292 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25263292 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25263292 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25263292 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3336239, 'mtr_portfolio_id': 25263292, 'created_at': datetime.datetime(2025, 7, 24, 9, 16, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25263292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25263292_24-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25263292 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_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, 'pht': 3726}}" where mtr_portfolio_id = 25263292 and dashboard_run_id = 2013129 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`=25263292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050136, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, '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 = 25264317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25264317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25264317 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25264317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25264317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3336478, 'mtr_portfolio_id': 25264317, 'created_at': datetime.datetime(2025, 7, 24, 9, 31), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25264317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25264317_24-07-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25264317 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_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, 'pht': 3726}}" where mtr_portfolio_id = 25264317 and dashboard_run_id = 2013129 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`=25264317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050137, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, '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 = 25265385 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': 3336769, 'mtr_portfolio_id': 25265385, 'created_at': datetime.datetime(2025, 7, 24, 9, 46, 57), 'result': '0.05157535516692298', 'result_long': None, 'result_double': None}] Qualite : 0.05157535516692298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25265385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25265385_24-07-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25265385 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_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, 'pht': 3726}}" where mtr_portfolio_id = 25265385 and dashboard_run_id = 2013129 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`=25265385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050138, 0.05157535516692298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, '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 = 25266121 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': 3336993, 'mtr_portfolio_id': 25266121, 'created_at': datetime.datetime(2025, 7, 24, 10, 0, 58), 'result': '0.030406445039213015', 'result_long': None, 'result_double': None}] Qualite : 0.030406445039213015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25266121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266121_24-07-2025_10_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25266121 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_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, 'pht': 3726}}" where mtr_portfolio_id = 25266121 and dashboard_run_id = 2013129 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`=25266121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050139, 0.030406445039213015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, '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 = 25266734 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': 3337269, 'mtr_portfolio_id': 25266734, 'created_at': datetime.datetime(2025, 7, 24, 10, 17), 'result': '0.022815326013848496', 'result_long': None, 'result_double': None}] Qualite : 0.022815326013848496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25266734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266734_24-07-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25266734 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_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, 'pht': 3726}}" where mtr_portfolio_id = 25266734 and dashboard_run_id = 2013129 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`=25266734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050140, 0.022815326013848496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, '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 = 25267535 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': 3337528, 'mtr_portfolio_id': 25267535, 'created_at': datetime.datetime(2025, 7, 24, 10, 30, 57), 'result': '0.03418831149971362', 'result_long': None, 'result_double': None}] Qualite : 0.03418831149971362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25267535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25267535_24-07-2025_10_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25267535 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_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, 'pht': 3726}}" where mtr_portfolio_id = 25267535 and dashboard_run_id = 2013129 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`=25267535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050141, 0.03418831149971362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, '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 = 25268205 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': 3337770, 'mtr_portfolio_id': 25268205, 'created_at': datetime.datetime(2025, 7, 24, 16, 0, 28), 'result': '0.02884985300526169', 'result_long': None, 'result_double': None}] Qualite : 0.02884985300526169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25268205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268205_24-07-2025_16_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25268205 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_P25268205_24-07-2025_16_00_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, 'pht': 3726}}" where mtr_portfolio_id = 25268205 and dashboard_run_id = 2013129 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`=25268205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050142, 0.02884985300526169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268205_24-07-2025_16_00_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, '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 = 25268773 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': 3337968, 'mtr_portfolio_id': 25268773, 'created_at': datetime.datetime(2025, 7, 24, 11, 0, 58), 'result': '0.05527500965384495', 'result_long': None, 'result_double': None}] Qualite : 0.05527500965384495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25268773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268773_24-07-2025_11_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25268773 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_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, 'pht': 3726}}" where mtr_portfolio_id = 25268773 and dashboard_run_id = 2013129 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`=25268773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050143, 0.05527500965384495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, '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 = 25269326 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': 3338200, 'mtr_portfolio_id': 25269326, 'created_at': datetime.datetime(2025, 7, 24, 11, 16, 29), 'result': '0.031073487589699092', 'result_long': None, 'result_double': None}] Qualite : 0.031073487589699092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25269326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25269326_24-07-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25269326 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_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, 'pht': 3726}}" where mtr_portfolio_id = 25269326 and dashboard_run_id = 2013129 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`=25269326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050144, 0.031073487589699092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, '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 = 25270040 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': 3338440, 'mtr_portfolio_id': 25270040, 'created_at': datetime.datetime(2025, 7, 24, 11, 31, 1), 'result': '0.031889630250529426', 'result_long': None, 'result_double': None}] Qualite : 0.031889630250529426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25270040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270040_24-07-2025_11_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25270040 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_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, 'pht': 3726}}" where mtr_portfolio_id = 25270040 and dashboard_run_id = 2013129 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`=25270040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050145, 0.031889630250529426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, '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 = 25270595 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': 3338645, 'mtr_portfolio_id': 25270595, 'created_at': datetime.datetime(2025, 7, 24, 11, 46, 56), 'result': '0.03278935951054427', 'result_long': None, 'result_double': None}] Qualite : 0.03278935951054427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25270595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270595_24-07-2025_11_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25270595 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_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, 'pht': 3726}}" where mtr_portfolio_id = 25270595 and dashboard_run_id = 2013129 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`=25270595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050146, 0.03278935951054427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, '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 = 25271196 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': 3338865, 'mtr_portfolio_id': 25271196, 'created_at': datetime.datetime(2025, 7, 24, 12, 1), 'result': '0.03188676144921294', 'result_long': None, 'result_double': None}] Qualite : 0.03188676144921294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25271196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271196_24-07-2025_12_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25271196 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_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, 'pht': 3726}}" where mtr_portfolio_id = 25271196 and dashboard_run_id = 2013129 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`=25271196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050147, 0.03188676144921294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, '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 = 25271786 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': 3339093, 'mtr_portfolio_id': 25271786, 'created_at': datetime.datetime(2025, 7, 24, 12, 16, 58), 'result': '0.03226714455592586', 'result_long': None, 'result_double': None}] Qualite : 0.03226714455592586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25271786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271786_24-07-2025_12_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25271786 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_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, 'pht': 3726}}" where mtr_portfolio_id = 25271786 and dashboard_run_id = 2013129 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`=25271786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050148, 0.03226714455592586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, '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 = 25272556 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': 3339314, 'mtr_portfolio_id': 25272556, 'created_at': datetime.datetime(2025, 7, 24, 12, 32, 56), 'result': '0.041215239701292504', 'result_long': None, 'result_double': None}] Qualite : 0.041215239701292504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25272556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25272556_24-07-2025_12_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25272556 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_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, 'pht': 3726}}" where mtr_portfolio_id = 25272556 and dashboard_run_id = 2013129 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`=25272556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050149, 0.041215239701292504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, '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 = 25273042 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': 3339524, 'mtr_portfolio_id': 25273042, 'created_at': datetime.datetime(2025, 7, 24, 12, 46, 57), 'result': '0.05061450348822879', 'result_long': None, 'result_double': None}] Qualite : 0.05061450348822879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25273042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273042_24-07-2025_12_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25273042 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_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, 'pht': 3726}}" where mtr_portfolio_id = 25273042 and dashboard_run_id = 2013129 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`=25273042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050150, 0.05061450348822879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, '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 = 25273618 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': 3339759, 'mtr_portfolio_id': 25273618, 'created_at': datetime.datetime(2025, 7, 24, 13, 1, 1), 'result': '0.05189232181800294', 'result_long': None, 'result_double': None}] Qualite : 0.05189232181800294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25273618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273618_24-07-2025_13_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25273618 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_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, 'pht': 3726}}" where mtr_portfolio_id = 25273618 and dashboard_run_id = 2013129 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`=25273618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050151, 0.05189232181800294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, '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 = 25274243 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': 3339976, 'mtr_portfolio_id': 25274243, 'created_at': datetime.datetime(2025, 7, 24, 13, 16, 59), 'result': '0.030936039095852373', 'result_long': None, 'result_double': None}] Qualite : 0.030936039095852373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25274243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274243_24-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25274243 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_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, 'pht': 3726}}" where mtr_portfolio_id = 25274243 and dashboard_run_id = 2013129 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`=25274243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050152, 0.030936039095852373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, '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 = 25274918 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': 3340139, 'mtr_portfolio_id': 25274918, 'created_at': datetime.datetime(2025, 7, 24, 13, 30, 57), 'result': '0.03622923969417204', 'result_long': None, 'result_double': None}] Qualite : 0.03622923969417204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25274918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25274918 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_P25274918_24-07-2025_13_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, 'pht': 3726}}" where mtr_portfolio_id = 25274918 and dashboard_run_id = 2013129 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`=25274918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050153, 0.03622923969417204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, '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 = 25275523 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': 3340286, 'mtr_portfolio_id': 25275523, 'created_at': datetime.datetime(2025, 7, 24, 13, 46, 59), 'result': '0.021067929747802697', 'result_long': None, 'result_double': None}] Qualite : 0.021067929747802697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25275523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25275523_24-07-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25275523 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_P25275523_24-07-2025_13_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25275546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25275547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25275548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25275549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25275550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25275551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25275552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25275553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25275554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25275555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25275556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25275557, 'pht': 3726}}" where mtr_portfolio_id = 25275523 and dashboard_run_id = 2013129 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`=25275523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050154, 0.021067929747802697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25275523_24-07-2025_13_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25275546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25275547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25275548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25275549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25275550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25275551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25275552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25275553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25275554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25275555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25275556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25275557, '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 = 25276051 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': 3340375, 'mtr_portfolio_id': 25276051, 'created_at': datetime.datetime(2025, 7, 24, 14, 2, 59), 'result': '0.025967880312289412', 'result_long': None, 'result_double': None}] Qualite : 0.025967880312289412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25276051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25276051_24-07-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25276051 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_P25276051_24-07-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276100, 'pht': 3726}}" where mtr_portfolio_id = 25276051 and dashboard_run_id = 2013129 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`=25276051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050155, 0.025967880312289412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25276051_24-07-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276100, '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 = 25276640 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': 3340511, 'mtr_portfolio_id': 25276640, 'created_at': datetime.datetime(2025, 7, 24, 14, 17), 'result': '0.02527823042794249', 'result_long': None, 'result_double': None}] Qualite : 0.02527823042794249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25276640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25276640_24-07-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25276640 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_P25276640_24-07-2025_14_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276703, 'pht': 3726}}" where mtr_portfolio_id = 25276640 and dashboard_run_id = 2013129 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`=25276640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050156, 0.02527823042794249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25276640_24-07-2025_14_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25276692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25276693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25276694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25276695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25276696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25276697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25276698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25276699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25276700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25276701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25276702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25276703, '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 = 25277192 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': 3340634, 'mtr_portfolio_id': 25277192, 'created_at': datetime.datetime(2025, 7, 24, 14, 32, 58), 'result': '0.21216672069249934', 'result_long': None, 'result_double': None}] Qualite : 0.21216672069249934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25277192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25277192_24-07-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25277192 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_P25277192_24-07-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277241, 'pht': 3726}}" where mtr_portfolio_id = 25277192 and dashboard_run_id = 2013129 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`=25277192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050157, 0.21216672069249934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25277192_24-07-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277241, '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 = 25277917 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': 3340806, 'mtr_portfolio_id': 25277917, 'created_at': datetime.datetime(2025, 7, 24, 15, 0, 59), 'result': '0.02420372817091505', 'result_long': None, 'result_double': None}] Qualite : 0.02420372817091505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25277917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25277917_24-07-2025_15_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25277917 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_P25277917_24-07-2025_15_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277935, 'pht': 3726}}" where mtr_portfolio_id = 25277917 and dashboard_run_id = 2013129 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`=25277917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050158, 0.02420372817091505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25277917_24-07-2025_15_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25277924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25277925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25277926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25277927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25277928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25277929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25277930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25277931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25277932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25277933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25277934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25277935, '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 = 25278430 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': 3340939, 'mtr_portfolio_id': 25278430, 'created_at': datetime.datetime(2025, 7, 24, 15, 1, 31), 'result': '0.025466993072921138', 'result_long': None, 'result_double': None}] Qualite : 0.025466993072921138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25278430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25278430_24-07-2025_15_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25278430 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_P25278430_24-07-2025_15_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25278494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278501, 'pht': 3726}}" where mtr_portfolio_id = 25278430 and dashboard_run_id = 2013129 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`=25278430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050159, 0.025466993072921138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25278430_24-07-2025_15_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25278494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278501, '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 = 25278932 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': 3341081, 'mtr_portfolio_id': 25278932, 'created_at': datetime.datetime(2025, 7, 24, 15, 17, 1), 'result': '0.12016470940384195', 'result_long': None, 'result_double': None}] Qualite : 0.12016470940384195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25278932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25278932_24-07-2025_15_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25278932 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_P25278932_24-07-2025_15_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25278946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278957, 'pht': 3726}}" where mtr_portfolio_id = 25278932 and dashboard_run_id = 2013129 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`=25278932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050160, 0.12016470940384195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25278932_24-07-2025_15_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25278946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25278947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25278948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25278949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25278950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25278951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25278952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25278953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25278954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25278955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25278956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25278957, '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 = 25279589 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': 3341218, 'mtr_portfolio_id': 25279589, 'created_at': datetime.datetime(2025, 7, 24, 15, 31, 1), 'result': '0.03516685256991285', 'result_long': None, 'result_double': None}] Qualite : 0.03516685256991285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25279589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25279589_24-07-2025_15_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25279589 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_P25279589_24-07-2025_15_31_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25279624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25279625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25279626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25279627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25279628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25279629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25279630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25279631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25279632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25279633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25279634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25279635, 'pht': 3726}}" where mtr_portfolio_id = 25279589 and dashboard_run_id = 2013129 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`=25279589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050161, 0.03516685256991285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25279589_24-07-2025_15_31_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25279624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25279625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25279626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25279627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25279628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25279629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25279630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25279631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25279632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25279633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25279634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25279635, '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 = 25280191 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': 3341360, 'mtr_portfolio_id': 25280191, 'created_at': datetime.datetime(2025, 7, 24, 15, 47), 'result': '0.024265361023341963', 'result_long': None, 'result_double': None}] Qualite : 0.024265361023341963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25280191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25280191_24-07-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25280191 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_P25280191_24-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280211, 'pht': 3726}}" where mtr_portfolio_id = 25280191 and dashboard_run_id = 2013129 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`=25280191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050162, 0.024265361023341963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25280191_24-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280211, '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 = 25280635 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': 3341488, 'mtr_portfolio_id': 25280635, 'created_at': datetime.datetime(2025, 7, 24, 16, 0, 59), 'result': '0.07339867960159328', 'result_long': None, 'result_double': None}] Qualite : 0.07339867960159328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25280635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25280635_24-07-2025_16_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25280635 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_P25280635_24-07-2025_16_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280692, 'pht': 3726}}" where mtr_portfolio_id = 25280635 and dashboard_run_id = 2013129 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`=25280635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050163, 0.07339867960159328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25280635_24-07-2025_16_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25280681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25280682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25280683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25280684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25280685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25280686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25280687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25280688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25280689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25280690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25280691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25280692, '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 = 25281328 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': 3341669, 'mtr_portfolio_id': 25281328, 'created_at': datetime.datetime(2025, 7, 24, 16, 16, 30), 'result': '0.037239308603788344', 'result_long': None, 'result_double': None}] Qualite : 0.037239308603788344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25281328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25281328_24-07-2025_16_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25281328 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_P25281328_24-07-2025_16_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25281340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25281341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25281342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25281343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25281344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25281345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25281346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25281347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25281348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25281349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25281350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25281351, 'pht': 3726}}" where mtr_portfolio_id = 25281328 and dashboard_run_id = 2013129 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`=25281328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050164, 0.037239308603788344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25281328_24-07-2025_16_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25281340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25281341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25281342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25281343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25281344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25281345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25281346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25281347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25281348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25281349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25281350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25281351, '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 = 25282113 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': 3341859, 'mtr_portfolio_id': 25282113, 'created_at': datetime.datetime(2025, 7, 24, 16, 53, 1), 'result': '0.028797002797179998', 'result_long': None, 'result_double': None}] Qualite : 0.028797002797179998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25282113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25282113_24-07-2025_16_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25282113 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_P25282113_24-07-2025_16_53_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25282120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25282121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25282122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25282123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25282124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25282125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25282126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25282127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25282128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25282129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25282130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25282131, 'pht': 3726}}" where mtr_portfolio_id = 25282113 and dashboard_run_id = 2013129 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`=25282113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050165, 0.028797002797179998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25282113_24-07-2025_16_53_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25282120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25282121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25282122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25282123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25282124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25282125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25282126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25282127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25282128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25282129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25282130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25282131, '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 = 25282939 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': 3342003, 'mtr_portfolio_id': 25282939, 'created_at': datetime.datetime(2025, 7, 24, 17, 59, 57), 'result': '0.03275390565408093', 'result_long': None, 'result_double': None}] Qualite : 0.03275390565408093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25282939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25282939_24-07-2025_17_59_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25282939 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_P25282939_24-07-2025_17_59_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283054, 'pht': 3726}}" where mtr_portfolio_id = 25282939 and dashboard_run_id = 2013129 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`=25282939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050166, 0.03275390565408093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25282939_24-07-2025_17_59_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283054, '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 = 25283116 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': 3342016, 'mtr_portfolio_id': 25283116, 'created_at': datetime.datetime(2025, 7, 24, 17, 0, 59), 'result': '0.019591140681011775', 'result_long': None, 'result_double': None}] Qualite : 0.019591140681011775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25283116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283116_24-07-2025_17_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25283116 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_P25283116_24-07-2025_17_01_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283135, 'pht': 3726}}" where mtr_portfolio_id = 25283116 and dashboard_run_id = 2013129 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`=25283116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050167, 0.019591140681011775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283116_24-07-2025_17_01_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283135, '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 = 25283363 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': 3342068, 'mtr_portfolio_id': 25283363, 'created_at': datetime.datetime(2025, 7, 24, 17, 17, 1), 'result': '0.04222469959286465', 'result_long': None, 'result_double': None}] Qualite : 0.04222469959286465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25283363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283363_24-07-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25283363 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_P25283363_24-07-2025_17_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283415, 'pht': 3726}}" where mtr_portfolio_id = 25283363 and dashboard_run_id = 2013129 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`=25283363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050168, 0.04222469959286465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283363_24-07-2025_17_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25283401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25283403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25283406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25283407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25283409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25283410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25283413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283415, '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 = 25283987 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': 3342174, 'mtr_portfolio_id': 25283987, 'created_at': datetime.datetime(2025, 7, 24, 17, 32, 58), 'result': '0.028559463822816038', 'result_long': None, 'result_double': None}] Qualite : 0.028559463822816038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25283987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283987_24-07-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25283987 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_P25283987_24-07-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284005, 'pht': 3726}}" where mtr_portfolio_id = 25283987 and dashboard_run_id = 2013129 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`=25283987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050169, 0.028559463822816038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25283987_24-07-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25283994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25283995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25283996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25283997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25283998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25283999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284005, '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 = 25284366 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': 3342270, 'mtr_portfolio_id': 25284366, 'created_at': datetime.datetime(2025, 7, 24, 17, 46, 58), 'result': '0.018555174567942995', 'result_long': None, 'result_double': None}] Qualite : 0.018555174567942995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25284366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25284366_24-07-2025_17_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25284366 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_P25284366_24-07-2025_17_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284421, 'pht': 3726}}" where mtr_portfolio_id = 25284366 and dashboard_run_id = 2013129 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`=25284366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050170, 0.018555174567942995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25284366_24-07-2025_17_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284421, '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 = 25284858 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': 3342387, 'mtr_portfolio_id': 25284858, 'created_at': datetime.datetime(2025, 7, 24, 18, 2, 59), 'result': '0.011300302207975068', 'result_long': None, 'result_double': None}] Qualite : 0.011300302207975068 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25284858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25284858_24-07-2025_18_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25284858 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_P25284858_24-07-2025_18_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284875, 'pht': 3726}}" where mtr_portfolio_id = 25284858 and dashboard_run_id = 2013129 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`=25284858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050171, 0.011300302207975068, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25284858_24-07-2025_18_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25284864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25284865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25284866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25284867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25284868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25284869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25284870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25284871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25284872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25284873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25284874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25284875, '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 = 25285340 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': 3342521, 'mtr_portfolio_id': 25285340, 'created_at': datetime.datetime(2025, 7, 24, 18, 16, 31), 'result': '0.008994572032408396', 'result_long': None, 'result_double': None}] Qualite : 0.008994572032408396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25285340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25285340_24-07-2025_18_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25285340 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_P25285340_24-07-2025_18_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25285378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285385, 'pht': 3726}}" where mtr_portfolio_id = 25285340 and dashboard_run_id = 2013129 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`=25285340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050172, 0.008994572032408396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25285340_24-07-2025_18_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25285378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285385, '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 = 25285906 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': 3342639, 'mtr_portfolio_id': 25285906, 'created_at': datetime.datetime(2025, 7, 24, 18, 30, 58), 'result': '0.042850824480460216', 'result_long': None, 'result_double': None}] Qualite : 0.042850824480460216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25285906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25285906_24-07-2025_18_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25285906 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_P25285906_24-07-2025_18_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25285948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285963, 'pht': 3726}}" where mtr_portfolio_id = 25285906 and dashboard_run_id = 2013129 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`=25285906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050173, 0.042850824480460216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25285906_24-07-2025_18_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25285948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25285950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25285951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25285952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25285953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25285955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25285956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25285957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25285959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25285960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25285961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25285963, '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 = 25286508 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': 3342749, 'mtr_portfolio_id': 25286508, 'created_at': datetime.datetime(2025, 7, 24, 18, 46, 30), 'result': '0.06985210949580212', 'result_long': None, 'result_double': None}] Qualite : 0.06985210949580212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25286508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25286508_24-07-2025_18_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25286508 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_P25286508_24-07-2025_18_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25286519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25286520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25286521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25286522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25286523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25286524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25286525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25286526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25286527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25286528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25286529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25286530, 'pht': 3726}}" where mtr_portfolio_id = 25286508 and dashboard_run_id = 2013129 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`=25286508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050174, 0.06985210949580212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25286508_24-07-2025_18_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25286519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25286520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25286521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25286522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25286523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25286524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25286525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25286526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25286527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25286528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25286529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25286530, '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 = 25287204 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': 3342920, 'mtr_portfolio_id': 25287204, 'created_at': datetime.datetime(2025, 7, 24, 19, 0, 57), 'result': '0.04027594969914822', 'result_long': None, 'result_double': None}] Qualite : 0.04027594969914822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25287204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25287204_24-07-2025_19_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25287204 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_P25287204_24-07-2025_19_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25287215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287226, 'pht': 3726}}" where mtr_portfolio_id = 25287204 and dashboard_run_id = 2013129 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`=25287204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050175, 0.04027594969914822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25287204_24-07-2025_19_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25287215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287226, '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 = 25287762 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': 3343094, 'mtr_portfolio_id': 25287762, 'created_at': datetime.datetime(2025, 7, 24, 19, 16, 59), 'result': '0.02679881028507472', 'result_long': None, 'result_double': None}] Qualite : 0.02679881028507472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25287762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25287762_24-07-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25287762 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_P25287762_24-07-2025_19_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25287783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287784, 'pht': 3726}}" where mtr_portfolio_id = 25287762 and dashboard_run_id = 2013129 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`=25287762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050176, 0.02679881028507472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25287762_24-07-2025_19_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25287773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25287774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25287775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25287776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25287777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25287778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25287779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25287780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25287781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25287782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25287783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25287784, '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 = 25288533 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': 3343256, 'mtr_portfolio_id': 25288533, 'created_at': datetime.datetime(2025, 7, 24, 19, 32, 58), 'result': '0.0342717732056706', 'result_long': None, 'result_double': None}] Qualite : 0.0342717732056706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25288533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25288533_24-07-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25288533 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_P25288533_24-07-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25288544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25288545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25288546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25288547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25288548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25288549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25288550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25288551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25288552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25288555, 'pht': 3726}}" where mtr_portfolio_id = 25288533 and dashboard_run_id = 2013129 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`=25288533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13050177, 0.0342717732056706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25288533_24-07-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25288544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25288545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25288546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25288547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25288548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25288549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25288550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25288551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25288552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25288555, '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 = 25289184 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25289184 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25289184 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25289184 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25289184 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25289184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25289184_24-07-2025_19_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25289184 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_P25289184_24-07-2025_19_34_30.pdf'}" where mtr_portfolio_id = 25289184 and dashboard_run_id = 2013129 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25245820,25246316,25246632,25246996,25247263,25247788,25248336,25248727,25249105,25249748,25250094,25250494,25250838,25251371,25251822,25252281,25252752,25253150,25253504,25253932,25254261,25254804,25255177,25255497,25255885,25256351,25256792,25257228,25257684,25258386,25259037,25259819,25260473,25261109,25261705,25262414,25263292,25264317,25265385,25266121,25266734,25267535,25268205,25268773,25269326,25270040,25270595,25271196,25271786,25272556,25273042,25273618,25274243,25274918,25275523,25276051,25276640,25277192,25277917,25278430,25278932,25279589,25280191,25280635,25281328,25282113,25282939,25283116,25283363,25283987,25284366,25284858,25285340,25285906,25286508,25287204,25287762,25288533,25289184) result : ((1373433356,), (1373433609,), (1373433797,), (1373433798,), (1373433820,), (1373433832,), (1373433834,), (1373433840,), (1373434211,), (1373434234,), (1373434276,), (1373434320,), (1373434355,), (1373434386,), (1373434551,), (1373434562,), (1373434599,), (1373434624,), (1373434649,), (1373434685,), (1373434819,), (1373434822,), (1373434827,), (1373434828,), (1373434831,), (1373434835,), (1373435006,), (1373435350,), (1373435352,), (1373435354,), (1373435355,), (1373435357,), (1373435359,), (1373435531,), (1373435532,), (1373435553,), (1373435561,), (1373435563,), (1373435565,), (1373435583,), (1373435585,), (1373435590,), (1373435596,), (1373435607,), (1373435610,), (1373435637,), (1373435643,), (1373435649,), (1373435650,), (1373435652,), (1373435655,), (1373435658,), (1373435676,), (1373435677,), (1373435678,), (1373435679,), (1373435681,), (1373435683,), (1373435696,), (1373435701,), (1373435702,), (1373435703,), (1373435705,), (1373435708,), (1373435747,), (1373435751,), (1373435753,), (1373435754,), (1373435756,), (1373435760,), (1373435847,), (1373435875,), (1373435905,), (1373435926,), (1373435929,), (1373435931,), (1373436010,), (1373436011,), (1373436012,), (1373436014,), (1373436016,), (1373436019,), (1373436107,), (1373436113,), (1373436116,), (1373436117,), (1373436120,), (1373436123,), (1373436134,), (1373436137,), (1373436140,), (1373436142,), (1373436144,), (1373436146,), (1373436163,), (1373436168,), (1373436173,), (1373436174,), (1373436176,), (1373436179,), (1373436206,), (1373436222,), (1373436233,), (1373436234,), (1373436235,), (1373436237,), (1373436240,), (1373436243,), (1373436263,), (1373436265,), (1373436267,), (1373436268,), (1373436270,), (1373436272,), (1373436286,), (1373436289,), (1373436290,), (1373436293,), (1373436296,), (1373436297,), (1373436304,), (1373436305,), (1373436314,), (1373436317,), (1373436319,), (1373436321,), (1373436335,), (1373436350,), (1373436352,), (1373436359,), (1373436363,), (1373436366,), (1373436367,), (1373436377,), (1373436380,), (1373436382,), (1373436383,), (1373436385,), (1373436386,), (1373436404,), (1373436424,), (1373436425,), (1373436426,), (1373436427,), (1373436429,), (1373436431,), (1373436445,), (1373436627,), (1373436652,), (1373436674,), (1373436694,), (1373436695,), (1373436697,), (1373436774,), (1373436779,), (1373436780,), (1373436781,), (1373436783,), (1373436784,), (1373436797,), (1373436798,), (1373436799,), (1373436800,), (1373436802,), (1373436803,), (1373436823,), (1373436824,), (1373436825,), (1373436826,), (1373436827,), (1373436829,), (1373436843,), (1373436844,), (1373436845,), (1373436846,), (1373436848,), (1373436849,), (1373436856,), (1373436863,), (1373436869,), (1373436871,), (1373436874,), (1373436878,), (1373436886,), (1373436889,), (1373436892,), (1373436893,), (1373436895,), (1373436899,), (1373436909,), (1373436911,), (1373436915,), (1373436924,), (1373436933,), (1373436935,), (1373436945,), (1373436955,), (1373436958,), (1373436960,), (1373436962,), (1373436963,), (1373436964,), (1373436975,), (1373436977,), (1373436978,), (1373436979,), (1373436981,), (1373436983,), (1373437003,), (1373437006,), (1373437007,), (1373437008,), (1373437011,), (1373437013,), (1373437023,), (1373437602,), (1373437625,), (1373437059,), (1373437076,), (1373437078,), (1373437080,), (1373437082,), (1373437085,), (1373437089,), (1373437100,), (1373437103,), (1373437105,), (1373437107,), (1373437109,), (1373437112,), (1373437133,), (1373437139,), (1373437141,), (1373437143,), (1373437145,), (1373437147,), (1373437156,), (1373437161,), (1373437168,), (1373437170,), (1373437173,), (1373437176,), (1373437202,), (1373437204,), (1373437206,), (1373437208,), (1373437211,), (1373437213,), (1373437219,), (1373437233,), (1373437234,), (1373437235,), (1373437236,), (1373437237,), (1373437239,), (1373437257,), (1373437267,), (1373437270,), (1373437271,), (1373437273,), (1373437275,), (1373437283,), (1373437285,), (1373437297,), (1373437308,), (1373437311,), (1373437314,), (1373437323,), (1373437326,), (1373437329,), (1373437331,), (1373437334,), (1373437338,), (1373437342,), (1373437343,), (1373437345,), (1373437347,), (1373437348,), (1373437352,), (1373437369,), (1373437371,), (1373437373,), (1373437375,), (1373437377,), (1373437380,), (1373437551,), (1373437576,), (1373438191,), (1373439020,), (1373439077,), (1373439119,), (1373439140,), (1373439164,), (1373439197,), (1373439420,), (1373439440,), (1373439443,), (1373439444,), (1373439451,), (1373439477,), (1373439715,), (1373439726,), (1373439744,), (1373439747,), (1373439750,), (1373439762,), (1373439813,), (1373439816,), (1373439818,), (1373439820,), (1373439823,), (1373439824,), (1373439832,), (1373439834,), (1373439836,), (1373439837,), (1373439839,), (1373439840,), (1373439845,), (1373439847,), (1373439849,), (1373439850,), (1373439851,), (1373439853,), (1373439867,), (1373439869,), (1373439872,), (1373439874,), (1373439876,), (1373439878,), (1373439883,), (1373439886,), (1373439888,), (1373439890,), (1373439893,), (1373439895,), (1373439904,), (1373439920,), (1373439923,), (1373439926,), (1373439928,), (1373439930,), (1373439933,), (1373439941,), (1373439962,), (1373439967,), (1373439974,), (1373439977,), (1373439980,), (1373439983,), (1373439995,), (1373439997,), (1373440000,), (1373440002,), (1373440005,), (1373440008,), (1373440019,), (1373440026,), (1373440032,), (1373440034,), (1373440037,), (1373440040,), (1373440077,), (1373440078,), (1373440079,), (1373440080,), (1373440082,), (1373440085,), (1373440228,), (1373440247,), (1373440272,), (1373440277,), (1373440283,), (1373440286,), (1373440314,), (1373440326,), (1373440351,), (1373440373,), (1373440399,), (1373440416,), (1373440428,), (1373440431,), (1373440436,), (1373440437,), (1373440439,), (1373440440,), (1373440450,), (1373440452,), (1373440453,), (1373440455,), (1373440458,), (1373440461,), (1373440474,), (1373440476,), (1373440479,), (1373440482,), (1373440485,), (1373440488,), (1373440504,), (1373440518,), (1373440520,), (1373440522,), (1373440524,), (1373440526,), (1373440529,), (1373440540,), (1373440541,), (1373440544,), (1373440547,), (1373440550,), (1373440552,), (1373440568,), (1373440569,), (1373440570,), (1373440571,), (1373440573,), (1373440576,), (1373440587,), (1373440589,), (1373440592,), (1373440594,), (1373440597,), (1373440599,), (1373440618,), (1373440623,), (1373440624,), (1373440626,), (1373440627,), (1373440630,), (1373440639,), (1373440640,), (1373440642,), (1373440644,), (1373440645,), (1373440649,), (1373440660,), (1373440661,), (1373440662,), (1373440663,), (1373440664,), (1373440667,), (1373440677,), (1373440679,), (1373440681,), (1373440682,), (1373440684,), (1373440686,), (1373440708,), (1373440709,), (1373440711,), (1373440713,), (1373440716,), (1373440719,), (1373440747,), (1373440761,), (1373440763,), (1373440766,), (1373440771,), (1373440775,), (1373440777,), (1373440787,), (1373440789,), (1373440791,), (1373440794,), (1373440798,), (1373440802,), (1373440815,), (1373440817,), (1373440819,), (1373440820,), (1373440822,), (1373440823,), (1373440842,), (1373440845,), (1373440847,), (1373440849,), (1373440852,), (1373440854,), (1373440874,), (1373440876,), (1373440878,), (1373440881,), (1373440884,), (1373440887,), (1373440894,), (1373440896,), (1373440898,), (1373440900,), (1373440902,), (1373440906,), (1373440919,), (1373440943,), (1373440975,), (1373440977,), (1373440979,), (1373440981,), (1373440983,), (1373440986,), (1373441011,), (1373441029,), (1373441031,), (1373441035,), (1373441039,), (1373441042,), (1373441045,), (1373441051,), (1373441053,), (1373441055,), (1373441058,), (1373441061,), (1373441063,), (1373441069,), (1373441071,), (1373441072,), (1373441074,), (1373441076,), (1373441078,), (1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,), (1373441334,), (1373441336,), (1373441337,), (1373441338,), (1373441340,), (1373441341,), (1373441349,), (1373441352,), (1373441354,), (1373441356,), (1373441359,), (1373441363,), (1373441384,), (1373441386,), (1373441388,), (1373441390,), (1373441394,), (1373441398,), (1373441414,), (1373441416,), (1373441417,), (1373441418,), (1373441420,), (1373441423,), (1373441915,), (1373441971,), (1373442014,), (1373442045,), (1373442069,), (1373442093,), (1373442457,), (1373442489,), (1373442536,), (1373442563,), (1373442581,), (1373442582,), (1373442727,), (1373443239,), (1373443263,), (1373443288,), (1373443315,), (1373443339,), (1373443366,), (1373443539,), (1373443551,), (1373443582,), (1373443615,), (1373443643,), (1373443671,), (1373444092,), (1373444115,), (1373444159,), (1373444188,), (1373444213,), (1373444242,), (1373444491,), (1373444516,), (1373444528,), (1373444529,), (1373444536,), (1373444560,), (1373444614,), (1373444880,), (1373444908,), (1373444937,), (1373444962,), (1373444985,), (1373445010,), (1373445258,), (1373445283,), (1373445291,), (1373445293,), (1373445295,), (1373445299,), (1373445603,), (1373445654,), (1373445706,), (1373445730,), (1373445755,), (1373445783,), (1373446058,), (1373446060,), (1373446063,), (1373446069,), (1373446096,), (1373446121,), (1373446276,), (1373446302,), (1373446305,), (1373446307,), (1373446311,), (1373446315,), (1373446316,), (1373446325,), (1373446337,), (1373446340,), (1373446341,), (1373446343,), (1373446345,), (1373446356,), (1373446357,), (1373446359,), (1373446361,), (1373446364,), (1373446368,), (1373446378,), (1373446384,), (1373446391,), (1373446397,), (1373446399,), (1373446401,), (1373446415,), (1373446416,), (1373446418,), (1373446420,), (1373446422,), (1373446425,), (1373446445,), (1373446448,), (1373446449,), (1373446451,), (1373446453,), (1373446455,), (1373446464,), (1373446466,), (1373446468,), (1373446470,), (1373446473,), (1373446476,), (1373446483,), (1373446485,), (1373446487,), (1373446488,), (1373446491,), (1373446494,), (1373446502,), (1373446516,), (1373446517,), (1373446519,), (1373446521,), (1373446523,), (1373446527,), (1373446535,), (1373446555,), (1373446557,), (1373446560,), (1373446562,), (1373446563,), (1373446566,), (1373446577,), (1373446580,), (1373446582,), (1373446585,), (1373446587,), (1373446590,), (1373446597,), (1373446600,), (1373446602,), (1373446604,), (1373446607,), (1373446610,), (1373446618,), (1373446621,), (1373446624,), (1373446627,), (1373446630,), (1373446633,), (1373446641,), (1373446644,), (1373446646,), (1373446648,), (1373446651,), (1373446653,), (1373446729,), (1373446733,), (1373446734,), (1373446736,), (1373446737,), (1373446739,), (1373446870,), (1373446908,), (1373446914,), (1373446916,), (1373446918,), (1373446919,), (1373446923,), (1373446953,), (1373446967,), (1373446969,), (1373446971,), (1373446972,), (1373446974,), (1373446977,), (1373446995,), (1373446997,), (1373446998,), (1373447000,), (1373447002,), (1373447009,), (1373447045,), (1373447054,), (1373447065,), (1373447073,), (1373447082,), (1373447107,), (1373447119,), (1373447121,), (1373447123,), (1373447124,), (1373447126,), (1373447127,), (1373447141,), (1373447142,), (1373447143,), (1373447144,), (1373447146,), (1373447149,), (1373447156,), (1373447157,), (1373447159,), (1373447160,), (1373447163,), (1373447166,), (1373447174,), (1373447177,), (1373447180,), (1373447182,), (1373447186,), (1373447190,), (1373447207,), (1373447218,), (1373447226,), (1373447229,), (1373447233,), (1373447237,), (1373447298,), (1373447318,), (1373447323,), (1373447325,), (1373447326,), (1373447329,), (1373447332,), (1373447370,), (1373447372,), (1373447379,), (1373447406,), (1373447408,), (1373447410,), (1373447418,), (1373447429,), (1373447436,), (1373447438,), (1373447442,), (1373447445,), (1373447454,), (1373447457,), (1373447459,), (1373447476,), (1373447497,), (1373447502,), (1373485719,), (1373538484,), (1373447520,), (1373447523,), (1373447525,), (1373447527,), (1373447530,), (1373447533,), (1373447551,), (1373447558,), (1373447561,), (1373447563,), (1373447565,), (1373447568,), (1373447575,), (1373447578,), (1373447580,), (1373447581,), (1373447584,), (1373447587,), (1373447597,), (1373447609,), (1373447613,), (1373447616,), (1373447618,), (1373447623,), (1373447702,), (1373447710,), (1373447716,), (1373447720,), (1373447722,), (1373447725,), (1373447750,), (1373447752,), (1373447753,), (1373447754,), (1373447756,), (1373447759,), (1373447783,), (1373447820,), (1373447821,), (1373447822,), (1373447861,), (1373447864,), (1373447866,), (1373447875,), (1373447884,), (1373447889,), (1373447891,), (1373447893,), (1373447896,), (1373447906,), (1373447907,), (1373447909,), (1373447911,), (1373447914,), (1373447916,), (1373447930,), (1373447931,), (1373447932,), (1373447933,), (1373447935,), (1373447937,), (1373447951,), (1373447952,), (1373447953,), (1373447954,), (1373447955,), (1373447957,), (1373448000,), (1373448025,), (1373448050,), (1373448076,), (1373448102,), (1373448126,), (1373449103,), (1373449180,), (1373449251,), (1373449312,), (1373449345,), (1373449387,), (1373449748,), (1373449978,), (1373449988,), (1373449990,), (1373449999,), (1373450024,), (1373450037,), (1373450050,), (1373450073,), (1373450078,), (1373450079,), (1373450081,), (1373450083,), (1373450085,), (1373450096,), (1373450117,), (1373450122,), (1373450125,), (1373450127,), (1373450130,), (1373450133,), (1373450150,), (1373450157,), (1373450159,), (1373450161,), (1373450163,), (1373450166,), (1373450176,), (1373450184,), (1373450187,), (1373450188,), (1373450189,), (1373450191,), (1373450201,), (1373450204,), (1373450206,), (1373450208,), (1373450210,), (1373450212,), (1373450222,), (1373450232,), (1373450235,), (1373450238,), (1373450240,), (1373450243,), (1373450259,), (1373450313,), (1373450331,), (1373450353,), (1373450405,), (1373450408,), (1373450411,), (1373450465,), (1373450486,), (1373450489,), (1373450490,), (1373450493,), (1373450496,), (1373450501,), (1373450503,), (1373450505,), (1373450507,), (1373450509,), (1373450510,), (1373450528,), (1373450530,), (1373450532,), (1373450533,), (1373450535,), (1373450539,), (1373450558,), (1373450561,), (1373450564,), (1373450565,), (1373450567,), (1373450569,), (1373450586,), (1373450589,), (1373450590,), (1373450592,), (1373450593,), (1373450594,), (1373450604,), (1373450605,), (1373450607,), (1373450609,), (1373450611,), (1373450612,), (1373450624,), (1373450626,), (1373450628,), (1373450629,), (1373450632,), (1373450634,), (1373450646,), (1373450648,), (1373450650,), (1373450651,), (1373450654,), (1373450657,), (1373450677,), (1373450678,), (1373450685,), (1373450686,), (1373450688,), (1373450690,), (1373450781,), (1373450790,), (1373450791,), (1373450792,), (1373450793,), (1373450795,), (1373450796,), (1373450811,), (1373450818,), (1373450821,), (1373450822,), (1373450824,), (1373450827,), (1373450838,), (1373450842,), (1373450846,), (1373450848,), (1373450849,), (1373450853,), (1373450904,), (1373450910,), (1373450913,), (1373450914,), (1373450917,), (1373450920,), (1373450928,), (1373450931,), (1373450932,), (1373451003,), (1373451006,), (1373451009,), (1373451099,), (1373451103,), (1373451104,), (1373451105,), (1373451121,), (1373451136,), (1373451174,), (1373451181,), (1373451185,), (1373451213,), (1373451222,), (1373451226,), (1373451252,), (1373451275,), (1373451276,), (1373451277,), (1373451278,), (1373451280,), (1373451282,), (1373451304,), (1373451335,), (1373451369,), (1373451370,), (1373451371,), (1373451373,), (1373451376,), (1373451379,), (1373451397,), (1373451398,), (1373451407,), (1373451409,), (1373451411,), (1373451414,), (1373451446,), (1373451448,), (1373451449,), (1373451460,), (1373451467,), (1373451469,), (1373451507,), (1373451513,), (1373451527,), (1373451531,), (1373451534,), (1373451537,), (1373451601,), (1373451604,), (1373451607,), (1373451609,), (1373451612,), (1373451616,), (1373451625,), (1373451627,), (1373451629,), (1373451630,), (1373451633,), (1373451635,), (1373451644,), (1373451651,), (1373451654,), (1373451656,), (1373451658,), (1373451659,), (1373451673,), (1373451692,), (1373451698,), (1373451700,), (1373451701,), (1373451704,), (1373451706,), (1373451715,), (1373451716,), (1373451718,), (1373451721,), (1373451724,), (1373451727,), (1373451737,), (1373451744,), (1373451750,), (1373451752,), (1373451769,), (1373451772,), (1373451819,), (1373451821,), (1373451822,), (1373451823,), (1373451826,), (1373451830,), (1373451845,), (1373451852,), (1373451854,), (1373451857,), (1373451859,), (1373451862,), (1373451870,), (1373451872,), (1373451874,), (1373451876,), (1373451879,), (1373451881,), (1373451898,), (1373451900,), (1373451901,), (1373451902,), (1373451904,), (1373451906,), (1373451910,), (1373451918,), (1373451921,), (1373451922,), (1373451925,), (1373451930,), (1373451942,), (1373451946,), (1373451949,), (1373451952,), (1373451954,), (1373451955,), (1373451961,), (1373451977,), (1373451983,), (1373451984,), (1373451985,), (1373451987,), (1373451991,), (1373452016,), (1373452019,), (1373452025,), (1373452027,), (1373452029,), (1373452032,), (1373452046,), (1373452054,), (1373452059,), (1373452061,), (1373452065,), (1373452069,), (1373452077,), (1373452078,), (1373452113,), (1373452123,), (1373452125,), (1373452127,), (1373452161,), (1373452163,), (1373452165,), (1373452167,), (1373452169,), (1373452171,), (1373452265,), (1373452266,), (1373452269,), (1373452271,), (1373452273,), (1373452277,), (1373452289,), (1373452292,), (1373452295,), (1373452297,), (1373452300,), (1373452306,), (1373453132,), (1373453137,), (1373453155,), (1373453181,), (1373453198,), (1373453213,), (1373453281,), (1373453310,), (1373453312,), (1373453314,), (1373453316,), (1373453318,), (1373453321,), (1373453338,), (1373453355,), (1373453359,), (1373453360,), (1373453361,), (1373453363,), (1373453366,), (1373453380,), (1373453383,), (1373453386,), (1373453388,), (1373453390,), (1373453392,), (1373453404,), (1373453408,), (1373453411,), (1373453422,), (1373453429,), (1373453437,), (1373453457,), (1373453460,), (1373453463,), (1373453466,), (1373453469,), (1373453472,), (1373453481,), (1373453499,), (1373453503,), (1373453504,), (1373453507,), (1373453510,), (1373453524,), (1373453536,), (1373453543,), (1373453544,), (1373453546,), (1373453548,), (1373453569,), (1373453586,), (1373453590,), (1373453594,), (1373453597,), (1373453599,), (1373453602,), (1373453623,), (1373453637,), (1373453640,), (1373453642,), (1373453643,), (1373453645,), (1373453647,), (1373453663,), (1373453667,), (1373453672,), (1373453673,), (1373453674,), (1373453677,), (1373453693,), (1373453699,), (1373453706,), (1373453708,), (1373453712,), (1373453716,), (1373453732,), (1373453735,), (1373453737,), (1373453739,), (1373453741,), (1373453744,), (1373453761,), (1373453765,), (1373453768,), (1373453769,), (1373453771,), (1373453773,), (1373453787,), (1373453790,), (1373453792,), (1373453794,), (1373453796,), (1373453799,), (1373453813,), (1373453815,), (1373453816,), (1373453817,), (1373453819,), (1373453820,), (1373453842,), (1373453852,), (1373453855,), (1373453857,), (1373453860,), (1373453862,), (1373453874,), (1373453890,), (1373453898,), (1373453906,), (1373453908,), (1373453910,), (1373453912,), (1373453927,), (1373453931,), (1373453934,), (1373453936,), (1373453938,), (1373453941,), (1373453949,), (1373453959,), (1373453964,), (1373453966,), (1373453968,), (1373453971,), (1373453991,), (1373453998,), (1373454010,), (1373454012,), (1373454015,), (1373454018,), (1373454041,), (1373454049,), (1373454054,), (1373454058,), (1373454062,), (1373454065,), (1373454091,), (1373454116,), (1373454118,), (1373454120,), (1373454121,), (1373454123,), (1373454125,), (1373454146,), (1373454149,), (1373454151,), (1373454153,), (1373454154,), (1373454156,), (1373454200,), (1373454251,), (1373454253,), (1373454256,), (1373454258,), (1373454261,), (1373454264,), (1373454280,), (1373454302,), (1373454309,), (1373454312,), (1373454314,), (1373454318,), (1373454322,), (1373454334,), (1373454337,), (1373454339,), (1373454340,), (1373454343,), (1373454346,), (1373454359,), (1373454366,), (1373454370,), (1373454373,), (1373454376,), (1373454379,), (1373454397,), (1373454401,), (1373454404,), (1373454407,), (1373454409,), (1373454411,), (1373454424,), (1373454427,), (1373454430,), (1373454432,), (1373454435,), (1373454438,), (1373454449,), (1373454455,), (1373454458,), (1373454459,), (1373454463,), (1373454467,), (1373454478,), (1373454482,), (1373454485,), (1373454487,), (1373454491,), (1373454495,), (1373454509,), (1373454514,), (1373454518,), (1373454521,), (1373454526,), (1373454531,), (1373454542,), (1373454546,), (1373454549,), (1373454551,), (1373454555,), (1373454559,), (1373454574,), (1373454591,), (1373454596,), (1373454598,), (1373454600,), (1373454601,), (1373454603,), (1373454617,), (1373454620,), (1373454621,), (1373454622,), (1373454624,), (1373454626,), (1373454642,), (1373454646,), (1373454656,), (1373454662,), (1373454664,), (1373454666,), (1373454678,), (1373454682,), (1373454684,), (1373454685,), (1373454688,), (1373454690,), (1373454699,), (1373454710,), (1373454716,), (1373454718,), (1373454720,), (1373454722,), (1373454742,), (1373454743,), (1373454745,), (1373454746,), (1373454747,), (1373454749,), (1373454762,), (1373454766,), (1373454770,), (1373454772,), (1373454776,), (1373454779,), (1373454792,), (1373454801,), (1373454809,), (1373454811,), (1373454812,), (1373454814,), (1373454831,), (1373454833,), (1373454835,), (1373454836,), (1373454839,), (1373454841,), (1373454872,), (1373454902,), (1373454910,), (1373454918,), (1373454919,), (1373454921,), (1373454923,), (1373454939,), (1373454946,), (1373454949,), (1373454952,), (1373454955,), (1373454958,), (1373454972,), (1373454973,), (1373454974,), (1373454975,), (1373454976,), (1373454978,), (1373454993,), (1373454994,), (1373454995,), (1373454996,), (1373454998,), (1373454999,), (1373455013,), (1373455021,), (1373455027,), (1373455028,), (1373455030,), (1373455032,), (1373455044,), (1373455045,), (1373455052,), (1373455060,), (1373455062,), (1373455064,), (1373455082,), (1373455087,), (1373455090,), (1373455093,), (1373455096,), (1373455103,), (1373455368,), (1373455616,), (1373455632,), (1373455634,), (1373455658,), (1373455660,), (1373455662,), (1373455677,), (1373455695,), (1373455719,), (1373455743,), (1373455771,), (1373455795,), (1373456026,), (1373456029,), (1373456032,), (1373456035,), (1373456037,), (1373456055,), (1373456610,), (1373456672,), (1373456742,), (1373456815,), (1373456866,), (1373456868,), (1373457031,), (1373457042,), (1373457102,), (1373457104,), (1373457133,), (1373457136,), (1373457149,), (1373457150,), (1373457153,), (1373457156,), (1373457159,), (1373457161,), (1373457177,), (1373457188,), (1373457189,), (1373457191,), (1373457192,), (1373457193,), (1373457213,), (1373457218,), (1373457220,), (1373457223,), (1373457225,), (1373457228,), (1373457247,), (1373457252,), (1373457254,), (1373457257,), (1373457260,), (1373457262,), (1373457273,), (1373457293,), (1373457299,), (1373457307,), (1373457314,), (1373457316,), (1373457319,), (1373457341,), (1373457347,), (1373457350,), (1373457352,), (1373457353,), (1373457355,), (1373457374,), (1373457377,), (1373457379,), (1373457381,), (1373457382,), (1373457383,), (1373457397,), (1373457403,), (1373457404,), (1373457406,), (1373457408,), (1373457410,), (1373457420,), (1373457427,), (1373457433,), (1373457440,), (1373457442,), (1373457444,), (1373457462,), (1373457483,), (1373457486,), (1373457488,), (1373457489,), (1373457491,), (1373457493,), (1373457507,), (1373457526,), (1373457528,), (1373457530,), (1373457531,), (1373457533,), (1373457535,), (1373457562,), (1373457577,), (1373457579,), (1373457580,), (1373457582,), (1373457584,), (1373457585,), (1373457602,), (1373457604,), (1373457605,), (1373457607,), (1373457609,), (1373457611,), (1373457619,), (1373457627,), (1373457634,), (1373457638,), (1373457641,), (1373457644,), (1373457656,), (1373457658,), (1373457659,), (1373457660,), (1373457662,), (1373457664,), (1373457686,), (1373457690,), (1373457692,), (1373457694,), (1373457696,), (1373457698,), (1373457708,), (1373457733,), (1373457735,), (1373457738,), (1373457740,), (1373457743,), (1373457744,), (1373457756,), (1373457765,), (1373457773,), (1373457776,), (1373457778,), (1373457780,), (1373457788,), (1373457792,), (1373457795,), (1373457798,), (1373457801,), (1373457804,), (1373457821,), (1373457823,), (1373457824,), (1373457826,), (1373457828,), (1373457829,), (1373457849,), (1373457852,), (1373457854,), (1373457855,), (1373457857,), (1373457859,), (1373457866,), (1373457873,), (1373457877,), (1373457881,), (1373457884,), (1373457887,), (1373457893,), (1373457897,), (1373457901,), (1373457903,), (1373457904,), (1373457906,), (1373457916,), (1373457917,), (1373457919,), (1373457920,), (1373457922,), (1373457924,), (1373457944,), (1373457964,), (1373457972,), (1373457975,), (1373457977,), (1373457979,), (1373457981,), (1373457992,), (1373457995,), (1373457996,), (1373457999,), (1373458001,), (1373458003,), (1373458014,), (1373458017,), (1373458019,), (1373458022,), (1373458024,), (1373458026,), (1373458036,), (1373458048,), (1373458057,), (1373458058,), (1373458060,), (1373458063,), (1373458075,), (1373458077,), (1373458079,), (1373458080,), (1373458082,), (1373458084,), (1373458099,), (1373458104,), (1373458106,), (1373458107,), (1373458109,), (1373458111,), (1373458116,), (1373458117,), (1373458119,), (1373458121,), (1373458122,), (1373458124,), (1373458128,), (1373458136,), (1373458143,), (1373458144,), (1373458146,), (1373458148,), (1373458160,), (1373458164,), (1373458166,), (1373458167,), (1373458170,), (1373458173,), (1373458190,), (1373458199,), (1373458202,), (1373458204,), (1373458206,), (1373458208,), (1373458211,), (1373458213,), (1373458215,), (1373458216,), (1373458219,), (1373458222,), (1373458228,), (1373458230,), (1373458232,), (1373458233,), (1373458236,), (1373458239,), (1373458244,), (1373458249,), (1373458255,), (1373458256,), (1373458259,), (1373458262,), (1373458280,), (1373458297,), (1373458305,), (1373458308,), (1373458310,), (1373458311,), (1373458314,), (1373458330,), (1373458338,), (1373458341,), (1373458343,), (1373458344,), (1373458347,), (1373458360,), (1373458362,), (1373458364,), (1373458365,), (1373458367,), (1373458368,), (1373458395,), (1373458399,), (1373458400,), (1373458401,), (1373458403,), (1373458405,), (1373458419,), (1373458420,), (1373458422,), (1373458424,), (1373458427,), (1373458430,), (1373458446,), (1373458448,), (1373458450,), (1373458451,), (1373458454,), (1373458456,), (1373458477,), (1373458700,), (1373458743,), (1373458787,), (1373458819,), (1373458854,), (1373458889,), (1373459578,), (1373459639,), (1373459653,), (1373459659,), (1373459664,), (1373459665,), (1373459667,), (1373459669,), (1373459678,), (1373459684,), (1373459686,), (1373459688,), (1373459691,), (1373459694,), (1373459711,), (1373459716,), (1373459721,), (1373459722,), (1373459723,), (1373459724,), (1373459739,), (1373459740,), (1373459741,), (1373459742,), (1373459744,), (1373459746,), (1373459768,), (1373459776,), (1373459779,), (1373459782,), (1373459783,), (1373459785,), (1373459805,), (1373459809,), (1373459811,), (1373459813,), (1373459815,), (1373459817,), (1373459829,), (1373459835,), (1373459842,), (1373459843,), (1373459845,), (1373459847,), (1373459860,), (1373459863,), (1373459867,), (1373459869,), (1373459871,), (1373459873,), (1373459882,), (1373459890,), (1373459902,), (1373459905,), (1373459909,), (1373459912,), (1373459917,), (1373459925,), (1373459930,), (1373459932,), (1373459934,), (1373459937,), (1373459953,), (1373459955,), (1373459957,), (1373459960,), (1373459965,), (1373459969,), (1373459979,), (1373459981,), (1373459983,), (1373459985,), (1373459988,), (1373459989,), (1373460012,), (1373460014,), (1373460016,), (1373460017,), (1373460019,), (1373460021,), (1373460036,), (1373460037,), (1373460039,), (1373460042,), (1373460043,), (1373460045,), (1373460054,), (1373460057,), (1373460068,), (1373460074,), (1373460076,), (1373460078,), (1373460092,), (1373460094,), (1373460095,), (1373460097,), (1373460099,), (1373460100,), (1373460120,), (1373460127,), (1373460131,), (1373460133,), (1373460135,), (1373460136,), (1373460149,), (1373460157,), (1373460161,), (1373460163,), (1373460167,), (1373460170,), (1373460178,), (1373460185,), (1373460190,), (1373460192,), (1373460196,), (1373460201,), (1373460210,), (1373460213,), (1373460215,), (1373460216,), (1373460219,), (1373460222,), (1373460237,), (1373460240,), (1373460242,), (1373460244,), (1373460245,), (1373460247,), (1373460264,), (1373460267,), (1373460268,), (1373460269,), (1373460271,), (1373460273,), (1373460286,), (1373460293,), (1373460298,), (1373460301,), (1373460303,), (1373460306,), (1373460323,), (1373460325,), (1373460326,), (1373460328,), (1373460330,), (1373460333,), (1373460356,), (1373460363,), (1373460366,), (1373460368,), (1373460371,), (1373460374,), (1373460385,), (1373460394,), (1373460399,), (1373460401,), (1373460403,), (1373460405,), (1373460426,), (1373460429,), (1373460430,), (1373460432,), (1373460435,), (1373460439,), (1373460455,), (1373460458,), (1373460460,), (1373460461,), (1373460464,), (1373460467,), (1373460485,), (1373460531,), (1373460533,), (1373460534,), (1373460535,), (1373460537,), (1373460539,), (1373460567,), (1373460576,), (1373460577,), (1373460579,), (1373460580,), (1373460582,), (1373460602,), (1373460605,), (1373460608,), (1373460612,), (1373460615,), (1373460618,), (1373460634,), (1373460638,), (1373460642,), (1373460644,), (1373460646,), (1373460648,), (1373460679,), (1373460683,), (1373460686,), (1373460689,), (1373460691,), (1373460693,), (1373460711,), (1373460720,), (1373460725,), (1373460727,), (1373460731,), (1373460736,), (1373460752,), (1373460758,), (1373460764,), (1373460766,), (1373460769,), (1373460770,), (1373460788,), (1373460790,), (1373460793,), (1373460796,), (1373460800,), (1373460804,), (1373460818,), (1373460827,), (1373460832,), (1373460834,), (1373460835,), (1373460838,), (1373460858,), (1373460861,), (1373460863,), (1373460865,), (1373460866,), (1373460869,), (1373460879,), (1373460881,), (1373460882,), (1373460884,), (1373460885,), (1373460888,), (1373460894,), (1373460902,), (1373460905,), (1373460907,), (1373460908,), (1373460911,), (1373460930,), (1373460934,), (1373460937,), (1373460938,), (1373460941,), (1373460944,), (1373460956,), (1373460964,), (1373460973,), (1373460974,), (1373460977,), (1373460979,), (1373460990,), (1373460991,), (1373460993,), (1373460996,), (1373460999,), (1373461000,), (1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,), (1373461247,), (1373461249,), (1373461256,), (1373461261,), (1373461262,), (1373461265,), (1373461280,), (1373461283,), (1373461284,), (1373461286,), (1373461287,), (1373461289,), (1373461308,), (1373461311,), (1373461314,), (1373461315,), (1373461318,), (1373461321,), (1373461333,), (1373461335,), (1373461338,), (1373461339,), (1373461342,), (1373461346,), (1373461804,), (1373461822,), (1373461828,), (1373461830,), (1373461834,), (1373461838,), (1373462055,), (1373462392,), (1373462419,), (1373462443,), (1373462467,), (1373462483,), (1373462484,), (1373462741,), (1373462787,), (1373462842,), (1373462890,), (1373462936,), (1373462984,), (1373463364,), (1373463393,), (1373463416,), (1373463449,), (1373463477,), (1373463505,), (1373463699,), (1373463702,), (1373463704,), (1373463711,), (1373463718,), (1373463723,), (1373463900,), (1373463914,), (1373463916,), (1373463918,), (1373463940,), (1373463964,), (1373464012,), (1373464014,), (1373464016,), (1373464018,), (1373464020,), (1373464023,), (1373464038,), (1373464045,), (1373464057,), (1373464062,), (1373464065,), (1373464067,), (1373464147,), (1373464148,), (1373464150,), (1373464152,), (1373464153,), (1373464156,), (1373464313,), (1373464315,), (1373464316,), (1373464317,), (1373464319,), (1373464323,), (1373464332,), (1373464337,), (1373464341,), (1373464343,), (1373464346,), (1373464347,), (1373464457,), (1373464484,), (1373464496,), (1373464499,), (1373464501,), (1373464505,), (1373464603,), (1373464611,), (1373464620,), (1373464623,), (1373464625,), (1373464628,), (1373464670,), (1373464687,), (1373464695,), (1373464704,), (1373464707,), (1373464710,), (1373464739,), (1373464747,), (1373464753,), (1373464757,), (1373464758,), (1373464762,), (1373465015,), (1373465044,), (1373465067,), (1373465095,), (1373465120,), (1373465151,), (1373465179,), (1373465182,), (1373465185,), (1373465186,), (1373465188,), (1373465195,), (1373465440,), (1373465469,), (1373465476,), (1373465523,), (1373465587,), (1373465633,), (1373465752,), (1373465853,), (1373465878,), (1373465899,), (1373465901,), (1373465905,), (1373465909,), (1373465934,), (1373466003,), (1373466011,), (1373466022,), (1373466026,), (1373466040,), (1373466052,), (1373466103,), (1373466106,), (1373466111,), (1373466114,), (1373466117,), (1373466123,), (1373466378,), (1373466404,), (1373466416,), (1373466418,), (1373466425,), (1373466430,), (1373466513,), (1373466517,), (1373466527,), (1373466530,), (1373466541,), (1373466546,), (1373466604,), (1373466605,), (1373466608,), (1373466610,), (1373466612,), (1373466615,), (1373466718,), (1373466740,), (1373466767,), (1373466798,), (1373466821,), (1373466830,), (1373466883,), (1373466884,), (1373466891,), (1373466892,), (1373466894,), (1373466898,), (1373466933,), (1373466935,), (1373466936,), (1373466937,), (1373466938,), (1373466940,), (1373466956,), (1373466959,), (1373466966,), (1373466970,), (1373466971,), (1373466973,), (1373466996,), (1373466997,), (1373467001,), (1373467005,), (1373467016,), (1373467020,), (1373467039,), (1373467048,), (1373467049,), (1373467050,), (1373467051,), (1373467055,), (1373467108,), (1373467115,), (1373467123,), (1373467129,), (1373467141,), (1373467142,), (1373467163,), (1373467165,), (1373467167,), (1373467192,), (1373467217,), (1373467241,), (1373467396,), (1373467427,), (1373467453,), (1373467479,), (1373467520,), (1373467569,), (1373467770,), (1373467783,), (1373467796,), (1373467798,), (1373467806,), (1373467819,), (1373467845,), (1373467847,), (1373467849,), (1373467858,), (1373467864,), (1373467866,), (1373467883,), (1373467886,), (1373467890,), (1373467914,), (1373467920,), (1373467923,), (1373467945,), (1373467992,), (1373467998,), (1373468002,), (1373468003,), (1373468004,), (1373468007,), (1373468074,), (1373468102,), (1373468131,), (1373468142,), (1373468144,), (1373468146,), (1373468161,), (1373468182,), (1373468221,), (1373468240,), (1373468248,), (1373468304,), (1373468410,), (1373468415,), (1373468416,), (1373468418,), (1373468420,), (1373468422,), (1373468688,), (1373468691,), (1373468709,), (1373468711,), (1373468718,), (1373468737,), (1373468794,), (1373468797,), (1373468806,), (1373468810,), (1373468827,), (1373468852,), (1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,), (1373471883,), (1373471914,), (1373471940,), (1373471986,), (1373472012,), (1373472040,), (1373472406,), (1373472409,), (1373472412,), (1373472431,), (1373472508,), (1373472587,), (1373472905,), (1373472929,), (1373472966,), (1373473000,), (1373473026,), (1373473052,), (1373473281,), (1373473285,), (1373473292,), (1373473293,), (1373473295,), (1373473298,), (1373473440,), (1373473476,), (1373473487,), (1373473500,), (1373473525,), (1373473537,), (1373473549,), (1373473553,), (1373473557,), (1373473560,), (1373473563,), (1373473569,), (1373473607,), (1373473610,), (1373473618,), (1373473619,), (1373473621,), (1373473624,), (1373473752,), (1373473757,), (1373473784,), (1373473795,), (1373473797,), (1373473800,), (1373473915,), (1373473921,), (1373473928,), (1373473942,), (1373473966,), (1373473971,), (1373474050,), (1373474072,), (1373474073,), (1373474074,), (1373474076,), (1373474077,), (1373474099,), (1373474101,), (1373474113,), (1373474119,), (1373474127,), (1373474130,), (1373474181,), (1373474187,), (1373474197,), (1373474202,), (1373474213,), (1373474226,), (1373474296,), (1373474331,), (1373474338,), (1373474370,), (1373474371,), (1373474374,), (1373474560,), (1373474561,), (1373474562,), (1373474563,), (1373474565,), (1373474570,), (1373474592,), (1373474593,), (1373474594,), (1373474595,), (1373474597,), (1373474601,), (1373474625,), (1373474634,), (1373474659,), (1373474683,), (1373474709,), (1373474738,), (1373474976,), (1373474984,), (1373474989,), (1373474991,), (1373474993,), (1373474997,), (1373475070,), (1373475077,), (1373475078,), (1373475079,), (1373475082,), (1373475086,), (1373475235,), (1373475260,), (1373475277,), (1373475278,), (1373475280,), (1373475286,), (1373475446,), (1373475449,), (1373475458,), (1373475483,), (1373475509,), (1373475523,), (1373475601,), (1373475638,), (1373475671,), (1373475673,), (1373475675,), (1373475678,), (1373475739,), (1373475741,), (1373475746,), (1373475749,), (1373475752,), (1373475771,), (1373475846,), (1373475850,), (1373475852,), (1373475854,), (1373475857,), (1373475861,), (1373475888,), (1373475894,), (1373475903,), (1373475906,), (1373475908,), (1373475911,), (1373475953,), (1373476016,), (1373476025,), (1373476028,), (1373476031,), (1373476034,), (1373476046,), (1373476047,), (1373476049,), (1373476051,), (1373476052,), (1373476056,), (1373476076,), (1373476078,), (1373476079,), (1373476080,), (1373476083,), (1373476099,), (1373476182,), (1373476189,), (1373476193,), (1373476194,), (1373476196,), (1373476200,), (1373476220,), (1373476223,), (1373476228,), (1373476232,), (1373476233,), (1373476236,), (1373476255,), (1373476257,), (1373476258,), (1373476259,), (1373476260,), (1373476262,), (1373476288,), (1373476290,), (1373476292,), (1373476294,), (1373476297,), (1373476299,), (1373476410,), (1373476417,), (1373476425,), (1373476428,), (1373476437,), (1373476458,), (1373476473,), (1373476475,), (1373476477,), (1373476478,), (1373476481,), (1373476485,), (1373476539,), (1373476549,), (1373476555,), (1373476556,), (1373476558,), (1373476561,), (1373476618,), (1373476642,), (1373476671,), (1373476700,), (1373476750,), (1373476794,), (1373477027,), (1373477030,), (1373477032,), (1373477047,), (1373477077,), (1373477103,), (1373477254,), (1373477273,), (1373477283,), (1373477284,), (1373477286,), (1373477289,), (1373477305,), (1373477308,), (1373477311,), (1373477316,), (1373477325,), (1373477331,), (1373477445,), (1373477448,), (1373477451,), (1373477452,), (1373477478,), (1373477505,), (1373477589,), (1373477595,), (1373477600,), (1373477604,), (1373477606,), (1373477624,), (1373477773,), (1373477778,), (1373477779,), (1373477780,), (1373477801,), (1373477832,), (1373477978,), (1373477981,), (1373477983,), (1373477985,), (1373477987,), (1373477989,), (1373477995,), (1373477997,), (1373477998,), (1373478002,), (1373478011,), (1373478019,), (1373478059,), (1373478072,), (1373478077,), (1373478089,), (1373478092,), (1373478094,), (1373478103,), (1373478105,), (1373478107,), (1373478108,), (1373478111,), (1373478114,), (1373478252,), (1373478287,), (1373478321,), (1373478344,), (1373478369,), (1373478394,), (1373478563,), (1373478565,), (1373478587,), (1373478611,), (1373478648,), (1373478663,), (1373478713,), (1373478716,), (1373478719,), (1373478721,), (1373478728,), (1373478732,), (1373478761,), (1373478764,), (1373478767,), (1373478802,), (1373478858,), (1373478908,), (1373479295,), (1373479308,), (1373479332,), (1373479369,), (1373479377,), (1373479379,), (1373479449,), (1373479500,), (1373479550,), (1373479619,), (1373479644,), (1373479702,), (1373479864,), (1373479875,), (1373479899,), (1373479909,), (1373479911,), (1373479912,), (1373479929,), (1373479932,), (1373479935,), (1373479937,), (1373479940,), (1373479944,), (1373479954,), (1373479956,), (1373479959,), (1373479961,), (1373479968,), (1373479995,), (1373480160,), (1373480170,), (1373480183,), (1373480186,), (1373480188,), (1373480193,), (1373480223,), (1373480225,), (1373480269,), (1373480280,), (1373480287,), (1373480293,), (1373480406,), (1373480655,), (1373480686,), (1373480710,), (1373480734,), (1373480758,), (1373480784,), (1373480924,), (1373480928,), (1373480930,), (1373480932,), (1373480933,), (1373480936,), (1373481948,), (1373481976,), (1373482005,), (1373482040,), (1373482095,), (1373482166,), (1373482627,), (1373482660,), (1373482706,), (1373482772,), (1373482827,), (1373482877,), (1373483287,), (1373483311,), (1373483338,), (1373483362,), (1373483386,), (1373483414,), (1373483675,), (1373483702,), (1373483729,), (1373483790,), (1373483848,), (1373483914,), (1373484752,), (1373484844,), (1373484950,), (1373485057,), (1373485110,), (1373485153,), (1373485481,), (1373485499,), (1373485513,), (1373485520,), (1373485523,), (1373485528,), (1373485887,), (1373485936,), (1373485985,), (1373486014,), (1373486040,), (1373486066,), (1373486237,), (1373486253,), (1373486255,), (1373486261,), (1373486264,), (1373486287,), (1373486644,), (1373486671,), (1373486695,), (1373486735,), (1373486760,), (1373486767,), (1373487047,), (1373487074,), (1373487130,), (1373487151,), (1373487155,), (1373487164,), (1373487445,), (1373487481,), (1373487517,), (1373487541,), (1373487566,), (1373487596,), (1373487745,), (1373487769,), (1373487795,), (1373487847,), (1373487879,), (1373487890,), (1373488280,), (1373488326,), (1373488371,), (1373488411,), (1373488439,), (1373488471,), (1373488693,), (1373488722,), (1373488775,), (1373488821,), (1373488869,), (1373488896,), (1373489148,), (1373489181,), (1373489203,), (1373489204,), (1373489206,), (1373489211,), (1373489540,), (1373489563,), (1373489587,), (1373489609,), (1373489646,), (1373489693,), (1373489905,), (1373489936,), (1373489981,), (1373490010,), (1373490016,), (1373490033,), (1373490095,), (1373490120,), (1373490143,), (1373490168,), (1373490178,), (1373490181,), (1373490367,), (1373490372,), (1373490377,), (1373490378,), (1373490386,), (1373490390,), (1373490563,), (1373490579,), (1373490614,), (1373490658,), (1373490694,), (1373490709,), (1373490814,), (1373490833,), (1373490841,), (1373490842,), (1373490857,), (1373490860,), (1373491010,), (1373491012,), (1373491025,), (1373491027,), (1373491030,), (1373491033,), (1373491306,), (1373491334,), (1373491375,), (1373491420,), (1373491458,), (1373491527,), (1373491855,), (1373491905,), (1373491952,), (1373491990,), (1373492025,), (1373492030,), (1373492130,), (1373492140,), (1373492151,), (1373492171,), (1373492196,), (1373492219,), (1373492272,), (1373492284,), (1373492297,), (1373492311,), (1373492328,), (1373492350,), (1373492561,), (1373492588,), (1373492612,), (1373492638,), (1373492663,), (1373492706,), (1373492873,), (1373492906,), (1373492938,), (1373492970,), (1373492999,), (1373493049,), (1373493422,), (1373493469,), (1373493515,), (1373493540,), (1373493565,), (1373493595,), (1373493930,), (1373493955,), (1373493994,), (1373494018,), (1373494042,), (1373494067,), (1373494539,), (1373494566,), (1373494623,), (1373494665,), (1373494694,), (1373494705,), (1373494831,), (1373494857,), (1373494881,), (1373494906,), (1373494929,), (1373494953,), (1373495076,), (1373495092,), (1373495113,), (1373495136,), (1373495160,), (1373495184,), (1373495448,), (1373495502,), (1373495541,), (1373495574,), (1373495607,), (1373495638,), (1373495779,), (1373495780,), (1373495796,), (1373495818,), (1373495826,), (1373495829,), (1373495846,), (1373495847,), (1373495849,), (1373495851,), (1373495853,), (1373495856,), (1373496000,), (1373496025,), (1373496056,), (1373496079,), (1373496101,), (1373496104,), (1373496304,), (1373496351,), (1373496379,), (1373496395,), (1373496409,), (1373496432,), (1373496604,), (1373496686,), (1373496752,), (1373496804,), (1373496845,), (1373496853,), (1373496971,), (1373496973,), (1373496974,), (1373496976,), (1373496977,), (1373496979,), (1373496998,), (1373496999,), (1373497001,), (1373497002,), (1373497004,), (1373497006,), (1373497021,), (1373497023,), (1373497026,), (1373497029,), (1373497034,), (1373497037,), (1373497077,), (1373497080,), (1373497082,), (1373497085,), (1373497087,), (1373497089,), (1373497360,), (1373497385,), (1373497409,), (1373497432,), (1373497455,), (1373497479,), (1373497595,), (1373497598,), (1373497600,), (1373497601,), (1373497603,), (1373497606,), (1373497626,), (1373497629,), (1373497631,), (1373497634,), (1373497635,), (1373497637,), (1373497656,), (1373497660,), (1373497667,), (1373497676,), (1373497682,), (1373497688,), (1373497705,), (1373497708,), (1373497711,), (1373497713,), (1373497715,), (1373497718,), (1373497748,), (1373497754,), (1373497757,), (1373497759,), (1373497761,), (1373497764,), (1373497845,), (1373497847,), (1373497848,), (1373497850,), (1373497851,), (1373497854,), (1373497871,), (1373497873,), (1373497874,), (1373497876,), (1373497877,), (1373497879,), (1373497907,), (1373497910,), (1373497913,), (1373497915,), (1373497917,), (1373497920,), (1373497942,), (1373497944,), (1373497946,), (1373497947,), (1373497948,), (1373497955,), (1373498106,), (1373498109,), (1373498110,), (1373498112,), (1373498114,), (1373498117,), (1373498177,), (1373498185,), (1373498188,), (1373498190,), (1373498192,), (1373498194,), (1373498209,), (1373498213,), (1373498216,), (1373498218,), (1373498221,), (1373498224,), (1373498246,), (1373498255,), (1373498257,), (1373498260,), (1373498262,), (1373498264,), (1373498350,), (1373498352,), (1373498354,), (1373498356,), (1373498388,), (1373498410,), (1373498433,), (1373498436,), (1373498439,), (1373498440,), (1373498442,), (1373498445,), (1373498684,), (1373498730,), (1373498787,), (1373498836,), (1373498887,), (1373498934,), (1373499519,), (1373499593,), (1373499662,), (1373499710,), (1373499762,), (1373499813,), (1373500394,), (1373500467,), (1373500563,), (1373500622,), (1373500672,), (1373500728,), (1373501057,), (1373501073,), (1373501084,), (1373501085,), (1373501088,), (1373501116,), (1373501271,), (1373501302,), (1373501333,), (1373501349,), (1373501352,), (1373501372,), (1373501434,), (1373501460,), (1373501463,), (1373501465,), (1373501467,), (1373501468,), (1373501471,), (1373501484,), (1373501599,), (1373501603,), (1373501608,), (1373501610,), (1373501612,), (1373501616,), (1373501634,), (1373501639,), (1373501641,), (1373501642,), (1373501643,), (1373501645,), (1373501667,), (1373501669,), (1373501671,), (1373501672,), (1373501673,), (1373501677,), (1373501689,), (1373501692,), (1373501697,), (1373501715,), (1373501718,), (1373501723,), (1373501746,), (1373501747,), (1373501749,), (1373501789,), (1373501820,), (1373501846,), (1373501993,), (1373501996,), (1373501999,), (1373502000,), (1373502025,), (1373502089,), (1373502348,), (1373502349,), (1373502350,), (1373502351,), (1373502378,), (1373502386,), (1373502412,), (1373502462,), (1373502463,), (1373502465,), (1373502467,), (1373502470,), (1373502489,), (1373502492,), (1373502495,), (1373502497,), (1373502500,), (1373502504,), (1373502516,), (1373502519,), (1373502522,), (1373502523,), (1373502525,), (1373502528,), (1373502548,), (1373502551,), (1373502554,), (1373502556,), (1373502558,), (1373502561,), (1373502578,), (1373502580,), (1373502582,), (1373502584,), (1373502587,), (1373502602,), (1373502628,), (1373502629,), (1373502631,), (1373502636,), (1373502637,), (1373502646,), (1373502687,), (1373502723,), (1373502725,), (1373502729,), (1373502732,), (1373502744,), (1373502805,), (1373502806,), (1373502807,), (1373502808,), (1373502845,), (1373502889,), (1373502963,), (1373502992,), (1373503007,), (1373503013,), (1373503019,), (1373503023,), (1373503117,), (1373503146,), (1373503174,), (1373503198,), (1373503224,), (1373503251,), (1373503287,), (1373503289,), (1373503291,), (1373503292,), (1373503293,), (1373503296,), (1373503346,), (1373503353,), (1373503354,), (1373503356,), (1373503358,), (1373503361,), (1373503554,), (1373503561,), (1373503563,), (1373503566,), (1373503573,), (1373503579,), (1373503607,), (1373503610,), (1373503618,), (1373503620,), (1373503623,), (1373503626,), (1373503674,), (1373503677,), (1373503685,), (1373503698,), (1373503706,), (1373503723,), (1373503800,), (1373503814,), (1373503821,), (1373503824,), (1373503827,), (1373503830,), (1373503855,), (1373503863,), (1373503865,), (1373503866,), (1373503887,), (1373503914,), (1373504078,), (1373504084,), (1373504090,), (1373504100,), (1373504118,), (1373504124,), (1373504174,), (1373504176,), (1373504178,), (1373504179,), (1373504180,), (1373504193,), (1373504330,), (1373504343,), (1373504415,), (1373504425,), (1373504426,), (1373504429,), (1373504480,), (1373504483,), (1373504485,), (1373504486,), (1373504488,), (1373504491,), (1373504530,), (1373504533,), (1373504536,), (1373504538,), (1373504541,), (1373504544,), (1373504576,), (1373504588,), (1373504613,), (1373504650,), (1373504677,), (1373504703,), (1373504846,), (1373504848,), (1373504849,), (1373504851,), (1373504853,), (1373504855,), (1373504875,), (1373504877,), (1373504878,), (1373504880,), (1373504881,), (1373504883,), (1373504909,), (1373504911,), (1373504914,), (1373504916,), (1373504918,), (1373504923,), (1373504979,), (1373504984,), (1373504987,), (1373504998,), (1373505006,), (1373505009,), (1373505108,), (1373505111,), (1373505114,), (1373505116,), (1373505135,), (1373505152,), (1373505185,), (1373505213,), (1373505215,), (1373505217,), (1373505218,), (1373505221,), (1373505250,), (1373505254,), (1373505257,), (1373505260,), (1373505263,), (1373505266,), (1373505278,), (1373505282,), (1373505285,), (1373505287,), (1373505291,), (1373538481,), (1373505326,), (1373505374,), (1373505378,), (1373505381,), (1373505385,), (1373505390,), (1373505406,), (1373505408,), (1373505410,), (1373505411,), (1373505413,), (1373505415,), (1373505439,), (1373505447,), (1373505451,), (1373505453,), (1373505454,), (1373505456,), (1373505474,), (1373505523,), (1373505608,), (1373505610,), (1373505611,), (1373505613,), (1373505614,), (1373505616,), (1373505640,), (1373505648,), (1373505652,), (1373505655,), (1373505657,), (1373505661,), (1373505677,), (1373505683,), (1373505688,), (1373505691,), (1373505693,), (1373505696,), (1373505715,), (1373505717,), (1373505718,), (1373505720,), (1373505721,), (1373505724,), (1373505743,), (1373505746,), (1373505747,), (1373505749,), (1373505750,), (1373505752,), (1373505767,), (1373505770,), (1373505772,), (1373505775,), (1373505776,), (1373505778,), (1373505789,), (1373505791,), (1373505793,), (1373505794,), (1373505795,), (1373505797,), (1373505815,), (1373505817,), (1373505818,), (1373505820,), (1373505822,), (1373505825,), (1373506040,), (1373506067,), (1373506093,), (1373506119,), (1373506147,), (1373506170,), (1373506443,), (1373506469,), (1373506494,), (1373506519,), (1373506549,), (1373506580,), (1373506840,), (1373506899,), (1373506957,), (1373507010,), (1373507057,), (1373507105,), (1373507468,), (1373507494,), (1373507518,), (1373507519,), (1373507521,), (1373507529,), (1373507797,), (1373507832,), (1373507882,), (1373507945,), (1373507989,), (1373508017,), (1373508314,), (1373508346,), (1373508374,), (1373508396,), (1373508419,), (1373508425,), (1373508561,), (1373508572,), (1373508573,), (1373508574,), (1373508592,), (1373508617,), (1373508667,), (1373508669,), (1373508671,), (1373508673,), (1373508676,), (1373508678,), (1373508692,), (1373508701,), (1373508709,), (1373508733,), (1373508734,), (1373508736,), (1373508747,), (1373508750,), (1373508752,), (1373508755,), (1373508757,), (1373508760,), (1373508772,), (1373508783,), (1373508786,), (1373508788,), (1373508791,), (1373508794,), (1373508832,), (1373508839,), (1373508845,), (1373508846,), (1373508847,), (1373508849,), (1373508867,), (1373508875,), (1373508876,), (1373508878,), (1373508879,), (1373508882,), (1373508910,), (1373508912,), (1373508914,), (1373508915,), (1373508917,), (1373508920,), (1373508949,), (1373508952,), (1373508981,), (1373508983,), (1373508984,), (1373508988,), (1373509005,), (1373509007,), (1373509010,), (1373509012,), (1373509014,), (1373509017,), (1373509055,), (1373509066,), (1373509068,), (1373509070,), (1373509072,), (1373509074,), (1373509094,), (1373509097,), (1373509098,), (1373509100,), (1373509102,), (1373509104,), (1373509124,), (1373509126,), (1373509128,), (1373509129,), (1373509130,), (1373509151,), (1373509260,), (1373509349,), (1373509538,), (1373509541,), (1373509545,), (1373509548,), (1373509552,), (1373509555,), (1373509572,), (1373509580,), (1373509582,), (1373509585,), (1373509586,), (1373509589,), (1373509604,), (1373509605,), (1373509607,), (1373509609,), (1373509610,), (1373509612,), (1373509654,), (1373509687,), (1373509710,), (1373509735,), (1373509737,), (1373509753,), (1373509833,), (1373509838,), (1373509839,), (1373509841,), (1373509842,), (1373509863,), (1373509961,), (1373509969,), (1373509971,), (1373510036,), (1373510038,), (1373510040,), (1373510049,), (1373510052,), (1373510054,), (1373510055,), (1373510056,), (1373510059,), (1373510077,), (1373510083,), (1373510094,), (1373510095,), (1373510097,), (1373510099,), (1373510107,), (1373510111,), (1373510115,), (1373510116,), (1373510118,), (1373510121,), (1373510144,), (1373510175,), (1373510198,), (1373510223,), (1373510247,), (1373510279,), (1373510404,), (1373510417,), (1373510421,), (1373510422,), (1373510425,), (1373510438,), (1373510531,), (1373510544,), (1373510549,), (1373510551,), (1373510554,), (1373510569,), (1373510906,), (1373511031,), (1373511056,), (1373511057,), (1373511058,), (1373511060,), (1373511061,), (1373511080,), (1373511081,), (1373511082,), (1373511084,), (1373511087,), (1373511091,), (1373511120,), (1373511122,), (1373511125,), (1373511126,), (1373511135,), (1373511141,), (1373511195,), (1373511196,), (1373511197,), (1373511198,), (1373511200,), (1373511201,), (1373511229,), (1373511230,), (1373511238,), (1373511261,), (1373511287,), (1373511315,), (1373511535,), (1373511554,), (1373511557,), (1373511560,), (1373511576,), (1373511588,), (1373511614,), (1373511615,), (1373511616,), (1373511621,), (1373511648,), (1373511652,), (1373511708,), (1373511710,), (1373511717,), (1373511752,), (1373511769,), (1373511774,), (1373511837,), (1373511852,), (1373511865,), (1373511878,), (1373511893,), (1373511910,), (1373512041,), (1373512063,), (1373512091,), (1373512110,), (1373512135,), (1373512156,), (1373512258,), (1373512278,), (1373512293,), (1373512311,), (1373512339,), (1373512358,), (1373512494,), (1373512578,), (1373512593,), (1373512610,), (1373512627,), (1373512644,), (1373512657,), (1373512701,), (1373512709,), (1373512723,), (1373512729,), (1373512735,), (1373512740,), (1373512893,), (1373512902,), (1373512904,), (1373512907,), (1373512909,), (1373512912,), (1373512986,), (1373512988,), (1373512990,), (1373513005,), (1373513046,), (1373513049,), (1373513166,), (1373513171,), (1373513173,), (1373513174,), (1373513175,), (1373513179,), (1373513224,), (1373513226,), (1373513227,), (1373513229,), (1373513230,), (1373513232,), (1373513261,), (1373513267,), (1373513269,), (1373513270,), (1373513273,), (1373513277,), (1373513299,), (1373513326,), (1373513353,), (1373513371,), (1373513390,), (1373513408,), (1373513426,), (1373513631,), (1373513658,), (1373513688,), (1373513709,), (1373513720,), (1373513731,), (1373513778,), (1373513781,), (1373513784,), (1373513786,), (1373513797,), (1373513799,), (1373513842,), (1373513845,), (1373513848,), (1373513850,), (1373513852,), (1373513856,), (1373513870,), (1373513873,), (1373513875,), (1373513878,), (1373513881,), (1373513884,), (1373513902,), (1373514165,), (1373514198,), (1373514240,), (1373514287,), (1373514330,), (1373514699,), (1373514749,), (1373514798,), (1373514847,), (1373514893,), (1373514942,), (1373515388,), (1373515438,), (1373515492,), (1373515551,), (1373515607,), (1373515661,), (1373516043,), (1373516082,), (1373516120,), (1373516155,), (1373516191,), (1373516247,), (1373516715,), (1373516759,), (1373516836,), (1373516903,), (1373516980,), (1373517032,), (1373517351,), (1373517381,), (1373517400,), (1373517435,), (1373517480,), (1373517534,), (1373517950,), (1373517987,), (1373517998,), (1373518013,), (1373518033,), (1373518065,), (1373518137,), (1373518142,), (1373518152,), (1373518159,), (1373518162,), (1373518165,), (1373518228,), (1373518255,), (1373518258,), (1373518260,), (1373518262,), (1373518264,), (1373518267,), (1373518324,), (1373518328,), (1373518334,), (1373518336,), (1373518344,), (1373518364,), (1373518415,), (1373518416,), (1373518417,), (1373518418,), (1373518420,), (1373518424,), (1373518441,), (1373518443,), (1373518445,), (1373518446,), (1373518447,), (1373518449,), (1373518471,), (1373518478,), (1373518479,), (1373518480,), (1373518482,), (1373518486,), (1373518509,), (1373518512,), (1373518513,), (1373518514,), (1373518516,), (1373518519,), (1373518694,), (1373518714,), (1373518732,), (1373518751,), (1373518770,), (1373518792,), (1373518894,), (1373518896,), (1373518898,), (1373518900,), (1373518903,), (1373518905,), (1373518927,), (1373518929,), (1373518930,), (1373518932,), (1373518934,), (1373518935,), (1373518952,), (1373518954,), (1373518955,), (1373518957,), (1373518967,), (1373518977,), (1373519011,), (1373519013,), (1373519014,), (1373519016,), (1373519017,), (1373519020,), (1373519044,), (1373519045,), (1373519047,), (1373519054,), (1373519071,), (1373519081,), (1373519140,), (1373519162,), (1373519166,), (1373519170,), (1373519172,), (1373519175,), (1373519178,), (1373519194,), (1373519219,), (1373519220,), (1373519224,), (1373519229,), (1373519243,), (1373519249,), (1373519250,), (1373519280,), (1373519283,), (1373519286,), (1373519287,), (1373519288,), (1373519290,), (1373519296,), (1373519308,), (1373519316,), (1373519317,), (1373519319,), (1373519320,), (1373519322,), (1373519336,), (1373519338,), (1373519340,), (1373519341,), (1373519344,), (1373519347,), (1373519387,), (1373519404,), (1373519405,), (1373519422,), (1373519435,), (1373519439,), (1373519472,), (1373519474,), (1373519475,), (1373519477,), (1373519479,), (1373519482,), (1373519507,), (1373519534,), (1373519536,), (1373519538,), (1373519540,), (1373519543,), (1373519545,), (1373519561,), (1373519568,), (1373519569,), (1373519571,), (1373519573,), (1373519575,), (1373519589,), (1373519592,), (1373519594,), (1373519595,), (1373519597,), (1373519599,), (1373519614,), (1373519619,), (1373519621,), (1373519624,), (1373519626,), (1373519629,), (1373519643,), (1373519646,), (1373519647,), (1373519649,), (1373519651,), (1373519653,), (1373519663,), (1373519665,), (1373519666,), (1373519668,), (1373519670,), (1373519676,), (1373519694,), (1373519701,), (1373519704,), (1373519711,), (1373519713,), (1373519715,), (1373519732,), (1373519736,), (1373519737,), (1373519739,), (1373519741,), (1373519744,), (1373519764,), (1373519766,), (1373519767,), (1373519769,), (1373519770,), (1373519772,), (1373519867,), (1373519942,), (1373519946,), (1373519950,), (1373519952,), (1373519955,), (1373519959,), (1373519980,), (1373519989,), (1373519991,), (1373519994,), (1373519997,), (1373520000,), (1373520019,), (1373520023,), (1373520036,), (1373520043,), (1373520046,), (1373520049,), (1373520122,), (1373520130,), (1373520131,), (1373520133,), (1373520137,), (1373520158,), (1373520397,), (1373520417,), (1373520433,), (1373520435,), (1373520437,), (1373520456,), (1373520527,), (1373520534,), (1373520542,), (1373520546,), (1373520551,), (1373520580,), (1373520688,), (1373520693,), (1373520696,), (1373520697,), (1373520698,), (1373520701,), (1373520759,), (1373520785,), (1373520787,), (1373520790,), (1373520807,), (1373520809,), (1373520841,), (1373520843,), (1373520846,), (1373520848,), (1373520851,), (1373520853,), (1373520970,), (1373521091,), (1373521094,), (1373521095,), (1373521119,), (1373521143,), (1373521154,), (1373521178,), (1373521180,), (1373521183,), (1373521185,), (1373521187,), (1373521191,), (1373521209,), (1373521210,), (1373521212,), (1373521214,), (1373521217,), (1373521221,), (1373521243,), (1373521244,), (1373521246,), (1373521247,), (1373521249,), (1373521251,), (1373521266,), (1373521271,), (1373521272,), (1373521273,), (1373521274,), (1373521276,), (1373521295,), (1373521298,), (1373521299,), (1373521301,), (1373521303,), (1373521305,), (1373521890,), (1373521915,), (1373521938,), (1373521964,), (1373521990,), (1373521999,), (1373522017,), (1373522451,), (1373522483,), (1373522543,), (1373522589,), (1373522620,), (1373522653,), (1373522997,), (1373523396,), (1373523420,), (1373523441,), (1373523470,), (1373523501,), (1373523588,), (1373523987,), (1373524407,), (1373524431,), (1373524455,), (1373524484,), (1373524511,), (1373524537,), (1373524694,), (1373524696,), (1373524698,), (1373524709,), (1373524735,), (1373524762,), (1373524894,), (1373524919,), (1373524934,), (1373524960,), (1373524962,), (1373524967,), (1373525015,), (1373525023,), (1373525025,), (1373525028,), (1373525032,), (1373525042,), (1373525142,), (1373525144,), (1373525150,), (1373525159,), (1373525162,), (1373525165,), (1373525382,), (1373525386,), (1373525387,), (1373525390,), (1373525392,), (1373525395,), (1373525467,), (1373525680,), (1373525687,), (1373525692,), (1373525695,), (1373525697,), (1373525701,), (1373525736,), (1373525737,), (1373525738,), (1373525739,), (1373525740,), (1373525743,), (1373525763,), (1373525772,), (1373525774,), (1373525777,), (1373525779,), (1373525780,), (1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,), (1373527390,), (1373527391,), (1373527392,), (1373527393,), (1373527395,), (1373527399,), (1373527418,), (1373527561,), (1373527570,), (1373527576,), (1373527578,), (1373527580,), (1373527583,), (1373527605,), (1373527617,), (1373527619,), (1373527621,), (1373527622,), (1373527625,), (1373527648,), (1373527651,), (1373527654,), (1373527656,), (1373527659,), (1373527663,), (1373527731,), (1373527756,), (1373527789,), (1373527798,), (1373527800,), (1373527805,), (1373527832,), (1373527838,), (1373527839,), (1373527840,), (1373527842,), (1373527845,), (1373527862,), (1373527864,), (1373527866,), (1373527868,), (1373527871,), (1373527875,), (1373527898,), (1373527901,), (1373527903,), (1373527907,), (1373527918,), (1373527922,), (1373527947,), (1373527949,), (1373527951,), (1373527953,), (1373527956,), (1373527960,), (1373527992,), (1373528000,), (1373528001,), (1373528002,), (1373528003,), (1373528006,), (1373528183,), (1373528446,), (1373528448,), (1373528450,), (1373528452,), (1373528454,), (1373528457,), (1373528648,), (1373528650,), (1373528652,), (1373528654,), (1373528657,), (1373528661,), (1373528687,), (1373528689,), (1373528691,), (1373528694,), (1373528695,), (1373528700,), (1373528743,), (1373528745,), (1373528748,), (1373528750,), (1373528757,), (1373528783,), (1373529057,), (1373529089,), (1373529124,), (1373529142,), (1373529148,), (1373529152,), (1373529225,), (1373529231,), (1373529255,), (1373529270,), (1373529274,), (1373529278,), (1373529305,), (1373529309,), (1373529312,), (1373529313,), (1373529317,), (1373529321,), (1373529341,), (1373529346,), (1373529347,), (1373529349,), (1373529351,), (1373529353,), (1373529406,), (1373529408,), (1373529410,), (1373529411,), (1373529412,), (1373529415,), (1373529436,), (1373529467,), (1373529499,), (1373529505,), (1373529506,), (1373529508,), (1373529509,), (1373529512,), (1373529529,), (1373529539,), (1373529544,), (1373529548,), (1373529552,), (1373529562,), (1373529602,), (1373529655,), (1373529657,), (1373529658,), (1373529660,), (1373529663,), (1373529686,), (1373529690,), (1373529693,), (1373529697,), (1373529700,), (1373529710,), (1373529948,), (1373529981,), (1373530027,), (1373530104,), (1373530136,), (1373530172,), (1373530329,), (1373530334,), (1373530338,), (1373530342,), (1373530346,), (1373530352,), (1373530448,), (1373530929,), (1373530960,), (1373530995,), (1373531024,), (1373531048,), (1373531073,), (1373531240,), (1373531252,), (1373531274,), (1373531293,), (1373531311,), (1373531337,), (1373531387,), (1373531414,), (1373531436,), (1373531461,), (1373531486,), (1373531509,), (1373531640,), (1373531642,), (1373531668,), (1373531681,), (1373531683,), (1373531687,), (1373531710,), (1373531714,), (1373531717,), (1373531720,), (1373531724,), (1373531729,), (1373531748,), (1373531770,), (1373531794,), (1373531816,), (1373531822,), (1373531826,), (1373531876,), (1373531882,), (1373531895,), (1373531917,), (1373531925,), (1373531956,), (1373532016,), (1373532029,), (1373532036,), (1373532037,), (1373532039,), (1373532043,), (1373532111,), (1373532113,), (1373532114,), (1373532115,), (1373532117,), (1373532143,), (1373532210,), (1373532213,), (1373532218,), (1373532223,), (1373532228,), (1373532232,), (1373532242,), (1373532288,), (1373532302,), (1373532304,), (1373532306,), (1373532309,), (1373532358,), (1373532458,), (1373532503,), (1373532527,), (1373532565,), (1373532617,), (1373532645,), (1373532718,), (1373532720,), (1373532723,), (1373532745,), (1373532768,), (1373532771,), (1373532826,), (1373532858,), (1373532860,), (1373532861,), (1373532887,), (1373532890,), (1373532991,), (1373533046,), (1373533063,), (1373533072,), (1373533074,), (1373533080,), (1373533211,), (1373533217,), (1373533233,), (1373533238,), (1373533240,), (1373533258,), (1373533339,), (1373533372,), (1373533399,), (1373533424,), (1373533444,), (1373533447,), (1373533715,), (1373533716,), (1373533734,), (1373533754,), (1373533776,), (1373533801,), (1373534072,), (1373534120,), (1373534140,), (1373534142,), (1373534145,), (1373534151,), (1373534184,), (1373534373,), (1373534400,), (1373534426,), (1373534449,), (1373534469,), (1373534491,), (1373534608,), (1373534658,), (1373534675,), (1373534697,), (1373534725,), (1373534748,), (1373534852,), (1373534867,), (1373534881,), (1373534882,), (1373534949,), (1373534970,), (1373535078,), (1373535132,), (1373535162,), (1373535165,), (1373535167,), (1373535168,), (1373535231,), (1373535237,), (1373535240,), (1373535243,), (1373535245,), (1373535248,), (1373535260,), (1373535277,), (1373535299,), (1373535324,), (1373535348,), (1373535371,), (1373535409,), (1373535412,), (1373535416,), (1373535419,), (1373535422,), (1373535426,), (1373535446,), (1373535450,), (1373535453,), (1373535455,), (1373535458,), (1373535462,), (1373535491,), (1373535526,), (1373535533,), (1373535537,), (1373535540,), (1373535543,), (1373535547,), (1373535562,), (1373535566,), (1373535574,), (1373535579,), (1373535582,), (1373535593,), (1373535626,), (1373535628,), (1373535632,), (1373535634,), (1373535638,), (1373535643,), (1373535701,), (1373535705,), (1373535707,), (1373535720,), (1373535723,), (1373535727,), (1373535777,), (1373535781,), (1373535804,), (1373535846,), (1373535882,), (1373535899,), (1373535952,), (1373536417,), (1373536442,), (1373536456,), (1373536470,), (1373536484,), (1373536506,), (1373536618,), (1373536631,), (1373536641,), (1373536681,), (1373536690,), (1373536860,), (1373536879,), (1373536900,), (1373536927,), (1373536941,), (1373536986,), (1373537042,), (1373537044,), (1373537046,), (1373537048,), (1373537052,), (1373537057,), (1373537081,), (1373537102,), (1373537108,), (1373537138,), (1373537146,), (1373537153,), (1373537156,), (1373537160,), (1373537232,), (1373537241,), (1373537246,), (1373537250,), (1373537252,), (1373537256,), (1373538478,), (1373537305,), (1373537326,), (1373537341,), (1373537342,), (1373537376,), (1373537379,), (1373537409,), (1373537411,), (1373537422,), (1373537435,), (1373537487,), (1373537519,), (1373537568,), (1373537577,), (1373537583,), (1373537591,), (1373537594,), (1373537612,), (1373537631,), (1373537660,), (1373537666,), (1373537698,), (1373537734,), (1373537743,), (1373537747,), (1373537753,), (1373537759,), (1373537813,), (1373537817,), (1373537821,), (1373537824,), (1373537828,), (1373537832,), (1373537856,), (1373537859,), (1373537862,), (1373537864,), (1373537866,), (1373537869,), (1373537891,), (1373537894,), (1373537908,), (1373537928,), (1373537937,), (1373537950,), (1373538124,), (1373538148,), (1373538174,), (1373538201,), (1373538213,), (1373538221,), (1373538286,), (1373538289,), (1373538291,), (1373538293,), (1373538294,), (1373538299,), (1373538328,), (1373538331,), (1373538333,), (1373538335,), (1373538337,), (1373538340,), (1373538468,), (1373538473,), (1373538534,), (1373538563,), (1373538594,), (1373538625,), (1373538647,), (1373538898,), (1373539263,), (1373539284,), (1373539303,), (1373539338,), (1373539379,), (1373539415,), (1373539713,), (1373539722,), (1373539735,), (1373539752,), (1373539760,), (1373539786,), (1373539923,), (1373539925,), (1373539929,), (1373539931,), (1373539934,), (1373539958,), (1373540141,), (1373540145,), (1373540154,), (1373540160,), (1373540163,), (1373540173,), (1373540176,), (1373540188,), (1373540198,), (1373540213,), (1373540222,), (1373540224,), (1373540236,), (1373540337,), (1373540435,), (1373540438,), (1373540457,), (1373540481,), (1373540504,), (1373540509,), (1373540542,), (1373540546,), (1373540548,), (1373540551,), (1373540553,), (1373540554,), (1373540742,), (1373540743,), (1373540994,), (1373540999,), (1373541006,), (1373541043,), (1373541066,), (1373541077,), (1373541132,), (1373541134,), (1373541136,), (1373541138,), (1373541141,), (1373541146,), (1373541166,), (1373541168,), (1373541169,), (1373541170,), (1373541172,), (1373541177,), (1373541197,), (1373541201,), (1373541207,), (1373541210,), (1373541211,), (1373541214,), (1373541239,), (1373541241,), (1373541242,), (1373541244,), (1373541245,), (1373541247,), (1373541263,), (1373541265,), (1373541266,), (1373541268,), (1373541271,), (1373541274,), (1373541287,), (1373541289,), (1373541290,), (1373541292,), (1373541293,), (1373541295,), (1373541311,), (1373541314,), (1373541316,), (1373541318,), (1373541320,), (1373541323,), (1373541341,), (1373541346,), (1373541349,), (1373541366,), (1373541375,), (1373541378,), (1373541471,), (1373541581,), (1373541582,), (1373541584,), (1373541586,), (1373541589,), (1373541633,), (1373541686,), (1373541687,), (1373541688,), (1373541690,), (1373541693,), (1373541696,), (1373541754,), (1373541762,), (1373541772,), (1373541773,), (1373541775,), (1373541786,), (1373541886,), (1373541898,), (1373541912,), (1373541925,), (1373541953,), (1373541978,), (1373542009,), (1373542013,), (1373542016,), (1373542017,), (1373542020,), (1373542024,), (1373542166,), (1373542172,), (1373542175,), (1373542178,), (1373542180,), (1373542184,), (1373542307,), (1373542312,), (1373542317,), (1373542328,), (1373542330,), (1373542335,), (1373542361,), (1373542370,), (1373542372,), (1373542374,), (1373542379,), (1373542384,), (1373542410,), (1373542416,), (1373542420,), (1373542421,), (1373542423,), (1373542426,), (1373542451,), (1373542478,), (1373542480,), (1373542481,), (1373542482,), (1373542483,), (1373542485,), (1373542507,), (1373542510,), (1373542513,), (1373542515,), (1373542518,), (1373542522,), (1373542668,), (1373542675,), (1373542679,), (1373542686,), (1373542688,), (1373542702,), (1373542729,), (1373542732,), (1373542734,), (1373542738,), (1373542744,), (1373542750,), (1373542850,), (1373542856,), (1373542861,), (1373542863,), (1373542865,), (1373542867,), (1373542940,), (1373542944,), (1373542946,), (1373542949,), (1373542952,), (1373542954,), (1373542971,), (1373542974,), (1373542976,), (1373542980,), (1373542982,), (1373542988,), (1373543021,), (1373543025,), (1373543026,), (1373543028,), (1373543044,), (1373543062,), (1373543144,), (1373543148,), (1373543169,), (1373543175,), (1373543178,), (1373543181,), (1373543278,), (1373543391,), (1373543394,), (1373543401,), (1373543403,), (1373543406,), (1373543422,), (1373543444,), (1373543447,), (1373543448,), (1373543451,), (1373543455,), (1373543470,), (1373543586,), (1373543594,), (1373543609,), (1373543623,), (1373543625,), (1373543629,), (1373543774,), (1373543783,), (1373543784,), (1373543786,), (1373543788,), (1373543807,), (1373543922,), (1373543990,), (1373544057,), (1373544122,), (1373544176,), (1373544233,), (1373544571,), (1373544574,), (1373544576,), (1373544577,), (1373544585,), (1373544600,), (1373544627,), (1373544639,), (1373544640,), (1373544643,), (1373544646,), (1373544650,), (1373544673,), (1373544676,), (1373544678,), (1373544680,), (1373544682,), (1373544686,), (1373544744,), (1373544750,), (1373544753,), (1373544756,), (1373544772,), (1373544819,), (1373544840,), (1373544933,), (1373544960,), (1373544985,), (1373545008,), (1373545028,), (1373545054,), (1373545238,), (1373545245,), (1373545247,), (1373545250,), (1373545268,), (1373545294,), (1373545354,), (1373545356,), (1373545358,), (1373545360,), (1373545363,), (1373545366,), (1373545440,), (1373545443,), (1373545445,), (1373545446,), (1373545447,), (1373545450,), (1373545477,), (1373545479,), (1373545482,), (1373545484,), (1373545488,), (1373545492,), (1373545510,), (1373545514,), (1373545517,), (1373545519,), (1373545537,), (1373545570,), (1373546501,), (1373546548,), (1373546599,), (1373546680,), (1373546750,), (1373546795,), (1373547105,), (1373547132,), (1373547159,), (1373547198,), (1373547223,), (1373547266,), (1373547792,), (1373548170,), (1373548194,), (1373548217,), (1373548233,), (1373548236,), (1373548240,), (1373548374,), (1373548379,), (1373548383,), (1373548386,), (1373548407,), (1373548434,), (1373548558,), (1373548562,), (1373548565,), (1373548567,), (1373548570,), (1373548575,), (1373548628,), (1373548632,), (1373548636,), (1373548638,), (1373548646,), (1373548669,), (1373548747,), (1373548775,), (1373548794,), (1373548813,), (1373548817,), (1373548820,), (1373548945,), (1373548946,), (1373548947,), (1373548948,), (1373548972,), (1373548987,), (1373549012,), (1373549017,), (1373549019,), (1373549021,), (1373549024,), (1373549026,), (1373549044,), (1373549046,), (1373549048,), (1373549055,), (1373549060,), (1373549067,), (1373549151,), (1373549169,), (1373549177,), (1373549180,), (1373549182,), (1373549186,), (1373549326,), (1373549377,), (1373549387,), (1373549390,), (1373549394,), (1373549398,), (1373549417,), (1373549435,), (1373549445,), (1373549461,), (1373549464,), (1373549473,), (1373549503,), (1373549565,), (1373549571,), (1373549575,), (1373549579,), (1373549584,), (1373549588,), (1373549626,), (1373549629,), (1373549633,), (1373549660,), (1373549685,), (1373549712,), (1373549819,), (1373549826,), (1373549830,), (1373549832,), (1373549833,), (1373549838,), (1373549861,), (1373549863,), (1373549864,), (1373549866,), (1373549868,), (1373549871,), (1373549890,), (1373549895,), (1373549899,), (1373549902,), (1373549907,), (1373549911,), (1373549948,), (1373549949,), (1373549951,), (1373549954,), (1373549958,), (1373549989,), (1373550420,), (1373550450,), (1373550474,), (1373550498,), (1373550521,), (1373550556,), (1373550616,), (1373550820,), (1373550877,), (1373550881,), (1373550883,), (1373550885,), (1373550887,), (1373550894,), (1373550934,), (1373550938,), (1373550941,), (1373550943,), (1373550944,), (1373550947,), (1373550996,), (1373551011,), (1373551049,), (1373551090,), (1373551137,), (1373551187,), (1373551369,), (1373551378,), (1373551382,), (1373551384,), (1373551386,), (1373551389,), (1373551463,), (1373551466,), (1373551467,), (1373551468,), (1373551470,), (1373551473,), (1373551496,), (1373551507,), (1373551511,), (1373551512,), (1373551514,), (1373551517,), (1373551598,), (1373551634,), (1373551663,), (1373551683,), (1373551691,), (1373551699,), (1373551813,), (1373551817,), (1373551820,), (1373551836,), (1373551840,), (1373551842,), (1373551915,), (1373551922,), (1373551930,), (1373551935,), (1373551937,), (1373551939,), (1373551942,), (1373551943,), (1373551948,), (1373551949,), (1373551955,), (1373551956,), (1373551969,), (1373552000,), (1373552003,), (1373552047,), (1373552050,), (1373552094,), (1373552101,), (1373552139,), (1373552150,), (1373552179,), (1373552194,), (1373554022,), (1373559523,), (1373551921,), (1373551924,), (1373551931,), (1373551945,), (1373551946,), (1373551954,), (1373552108,), (1373552109,), (1373552284,), (1373552303,), (1373552326,), (1373552354,), (1373552372,), (1373552387,), (1373552478,), (1373552486,), (1373552489,), (1373552491,), (1373552492,), (1373552495,), (1373552524,), (1373552528,), (1373552529,), (1373552531,), (1373552534,), (1373552537,), (1373552586,), (1373552597,), (1373552605,), (1373552609,), (1373552614,), (1373552618,), (1373552671,), (1373552676,), (1373552680,), (1373552681,), (1373552684,), (1373552690,), (1373552831,), (1373552847,), (1373552864,), (1373552876,), (1373552890,), (1373552907,), (1373553446,), (1373553545,), (1373553887,), (1373553925,), (1373553946,), (1373553974,), (1373553991,), (1373554318,), (1373554877,), (1373554906,), (1373554921,), (1373554943,), (1373554957,), (1373554983,), (1373555168,), (1373555243,), (1373555248,), (1373555250,), (1373555251,), (1373555252,), (1373555254,), (1373555353,), (1373555367,), (1373555378,), (1373555381,), (1373555385,), (1373555390,), (1373555411,), (1373555415,), (1373555418,), (1373555421,), (1373555425,), (1373555430,), (1373555455,), (1373555461,), (1373555471,), (1373555481,), (1373555483,), (1373555486,), (1373555544,), (1373555545,), (1373555547,), (1373555549,), (1373555551,), (1373555556,), (1373555588,), (1373555591,), (1373555593,), (1373555597,), (1373555609,), (1373555613,), (1373555630,), (1373555633,), (1373555636,), (1373555638,), (1373555640,), (1373555642,), (1373555678,), (1373555720,), (1373555849,), (1373555888,), (1373555916,), (1373555928,), (1373555931,), (1373555944,), (1373555983,), (1373555994,), (1373556013,), (1373556035,), (1373556057,), (1373556082,), (1373556176,), (1373556180,), (1373556184,), (1373556189,), (1373556193,), (1373556197,), (1373556214,), (1373556218,), (1373556224,), (1373556227,), (1373556229,), (1373556232,), (1373556252,), (1373556256,), (1373556258,), (1373556262,), (1373556264,), (1373556273,), (1373556326,), (1373556330,), (1373556334,), (1373556341,), (1373556365,), (1373556393,), (1373556413,), (1373556417,), (1373556420,), (1373556425,), (1373556430,), (1373556433,), (1373556459,), (1373556481,), (1373556503,), (1373556525,), (1373556540,), (1373556558,), (1373556738,), (1373556895,), (1373556897,), (1373556899,), (1373556903,), (1373556905,), (1373556908,), (1373556948,), (1373556954,), (1373556960,), (1373556988,), (1373556994,), (1373557005,), (1373557065,), (1373557071,), (1373557074,), (1373557076,), (1373557078,), (1373557081,), (1373557110,), (1373557114,), (1373557119,), (1373557122,), (1373557126,), (1373557129,), (1373557147,), (1373557154,), (1373557161,), (1373557164,), (1373557166,), (1373557170,), (1373557191,), (1373557197,), (1373557202,), (1373557205,), (1373557209,), (1373557213,), (1373557266,), (1373557269,), (1373557271,), (1373557273,), (1373557275,), (1373557278,), (1373557300,), (1373557302,), (1373557304,), (1373557307,), (1373557310,), (1373557320,), (1373557355,), (1373557356,), (1373557365,), (1373557376,), (1373557380,), (1373557383,), (1373557403,), (1373557429,), (1373557465,), (1373557468,), (1373557471,), (1373557472,), (1373557474,), (1373557477,), (1373557502,), (1373557547,), (1373557552,), (1373557555,), (1373557558,), (1373557561,), (1373557564,), (1373557578,), (1373557583,), (1373557586,), (1373557588,), (1373557591,), (1373557594,), (1373557612,), (1373557620,), (1373557627,), (1373557634,), (1373557638,), (1373557643,), (1373557666,), (1373557679,), (1373557705,), (1373557709,), (1373557712,), (1373557717,), (1373557743,), (1373557753,), (1373557755,), (1373557762,), (1373557772,), (1373557885,), (1373557910,), (1373557940,), (1373557962,), (1373557980,), (1373558004,), (1373558247,), (1373558391,), (1373558394,), (1373558406,), (1373558430,), (1373558453,), (1373558474,), (1373558634,), (1373558661,), (1373558685,), (1373558703,), (1373558714,), (1373558724,), (1373558770,), (1373558785,), (1373558791,), (1373558794,), (1373558797,), (1373558801,), (1373558830,), (1373558839,), (1373558849,), (1373558851,), (1373558852,), (1373558853,), (1373558881,), (1373558890,), (1373558898,), (1373558900,), (1373558902,), (1373558905,), (1373558941,), (1373558945,), (1373558960,), (1373558971,), (1373558975,), (1373558978,), (1373559042,), (1373559112,), (1373559121,), (1373559129,), (1373559131,), (1373559134,), (1373559137,), (1373559163,), (1373559171,), (1373559174,), (1373559176,), (1373559180,), (1373559183,), (1373559233,), (1373559316,), (1373559319,), (1373559331,), (1373559334,), (1373559335,), (1373559336,), (1373559349,), (1373559382,), (1373559385,), (1373559393,), (1373559399,), (1373559402,), (1373559405,), (1373559433,), (1373559434,), (1373559436,), (1373559439,), (1373559442,), (1373559443,), (1373559491,), (1373559501,), (1373559509,), (1373559511,), (1373559513,), (1373559515,), (1373559521,), (1373560137,), (1373560174,), (1373560220,), (1373560262,), (1373560310,), (1373560340,), (1373560603,), (1373560649,), (1373560683,), (1373560706,), (1373560710,), (1373560746,), (1373561139,), (1373561460,), (1373561478,), (1373561510,), (1373561532,), (1373561553,), (1373561575,), (1373561664,), (1373561706,), (1373561727,), (1373561752,), (1373561768,), (1373561773,), (1373561851,), (1373561853,), (1373561854,), (1373561857,), (1373561860,), (1373561863,), (1373561893,), (1373561894,), (1373561896,), (1373561898,), (1373561903,), (1373561932,), (1373561967,), (1373561968,), (1373561970,), (1373561979,), (1373561985,), (1373561987,), (1373562015,), (1373562025,), (1373562027,), (1373562030,), (1373562033,), (1373562036,), (1373562059,), (1373562061,), (1373562063,), (1373562065,), (1373562067,), (1373562070,), (1373562099,), (1373562107,), (1373562112,), (1373562113,), (1373562115,), (1373562118,), (1373562133,), (1373562151,), (1373562153,), (1373562155,), (1373562158,), (1373562163,), (1373562189,), (1373562270,), (1373562273,), (1373562275,), (1373562280,), (1373562306,), (1373562323,), (1373562365,), (1373562368,), (1373562371,), (1373562373,), (1373562375,), (1373562378,), (1373562501,), (1373562505,), (1373562506,), (1373562508,), (1373562513,), (1373562519,), (1373562656,), (1373562702,), (1373562726,), (1373562750,), (1373562813,), (1373562853,), (1373562933,), (1373562945,), (1373562956,), (1373562967,), (1373562970,), (1373563012,), (1373563151,), (1373563172,), (1373563192,), (1373563209,), (1373563217,), (1373563219,), (1373563342,), (1373563352,), (1373563360,), (1373563364,), (1373563367,), (1373563370,), (1373563403,), (1373563408,), (1373563409,), (1373563430,), (1373563459,), (1373563462,), (1373563482,), (1373563486,), (1373563490,), (1373563492,), (1373563495,), (1373563498,), (1373563516,), (1373563574,), (1373563578,), (1373563600,), (1373563624,), (1373563649,), (1373563672,), (1373563736,), (1373563748,), (1373563754,), (1373563756,), (1373563759,), (1373563762,), (1373563798,), (1373563801,), (1373563803,), (1373563804,), (1373563849,), (1373563876,), (1373564102,), (1373564117,), (1373564127,), (1373564136,), (1373564139,), (1373564142,), (1373564160,), (1373564170,), (1373564177,), (1373564181,), (1373564184,), (1373564187,), (1373564201,), (1373564205,), (1373564207,), (1373564210,), (1373564214,), (1373564219,), (1373564238,), (1373564245,), (1373564249,), (1373564251,), (1373564255,), (1373564261,), (1373564297,), (1373564303,), (1373564315,), (1373564322,), (1373564327,), (1373564332,), (1373564414,), (1373564418,), (1373564420,), (1373564421,), (1373564423,), (1373564427,), (1373564471,), (1373564528,), (1373564531,), (1373564534,), (1373564538,), (1373564542,), (1373564545,), (1373564567,), (1373564578,), (1373564588,), (1373564593,), (1373564595,), (1373564597,), (1373564614,), (1373564616,), (1373564618,), (1373564620,), (1373564622,), (1373564627,), (1373564685,), (1373564694,), (1373564696,), (1373564699,), (1373564703,), (1373564707,), (1373564722,), (1373564725,), (1373564727,), (1373564730,), (1373564733,), (1373564737,), (1373564754,), (1373564758,), (1373564762,), (1373564772,), (1373564775,), (1373564779,), (1373564833,), (1373564852,), (1373564870,), (1373564873,), (1373564883,), (1373564901,), (1373564991,), (1373564993,), (1373565008,), (1373565019,), (1373565022,), (1373565034,), (1373565142,), (1373565148,), (1373565157,), (1373565167,), (1373565170,), (1373565175,), (1373565245,), (1373565453,), (1373565454,), (1373565459,), (1373565473,), (1373565498,), (1373565505,), (1373565532,), (1373565533,), (1373565534,), (1373565539,), (1373565572,), (1373565608,), (1373565748,), (1373565751,), (1373565754,), (1373565756,), (1373565757,), (1373565780,), (1373565844,), (1373565868,), (1373565889,), (1373565905,), (1373565923,), (1373565944,), (1373566043,), (1373566046,), (1373566049,), (1373566053,), (1373566056,), (1373566060,), (1373566085,), (1373566092,), (1373566099,), (1373566102,), (1373566106,), (1373566110,), (1373566122,), (1373566126,), (1373566131,), (1373566133,), (1373566137,), (1373566141,), (1373566232,), (1373566238,), (1373566240,), (1373566241,), (1373566254,), (1373566275,), (1373566315,), (1373566324,), (1373566332,), (1373566334,), (1373566338,), (1373566344,), (1373566427,), (1373566446,), (1373566453,), (1373566459,), (1373566460,), (1373566462,), (1373566466,), (1373566564,), (1373566604,), (1373566635,), (1373566666,), (1373566689,), (1373566712,), (1373566821,), (1373566836,), (1373566854,), (1373566878,), (1373566897,), (1373566914,), (1373566993,), (1373566997,), (1373567000,), (1373567004,), (1373567007,), (1373567011,), (1373567044,), (1373567046,), (1373567049,), (1373567052,), (1373567055,), (1373567058,), (1373567107,), (1373567115,), (1373567117,), (1373567121,), (1373567124,), (1373567126,), (1373567503,), (1373567677,), (1373567697,), (1373567723,), (1373567753,), (1373567789,), (1373568076,), (1373568339,), (1373568362,), (1373568391,), (1373568415,), (1373568437,), (1373568446,), (1373568593,), (1373568618,), (1373568642,), (1373568672,), (1373568711,), (1373568755,), (1373569082,), (1373569117,), (1373569147,), (1373569178,), (1373569210,), (1373569217,), (1373569417,), (1373569432,), (1373569458,), (1373569499,), (1373569542,), (1373569577,), (1373569690,), (1373569700,), (1373569704,), (1373569707,), (1373569711,), (1373569714,), (1373569742,), (1373569745,), (1373569746,), (1373569748,), (1373569750,), (1373569753,), (1373569773,), (1373569776,), (1373569778,), (1373569780,), (1373569783,), (1373569786,), (1373569827,), (1373569894,), (1373569897,), (1373569899,), (1373569902,), (1373569906,), (1373569910,), (1373570010,), (1373570084,), (1373570088,), (1373570092,), (1373570095,), (1373570099,), (1373570119,), (1373570236,), (1373570239,), (1373570242,), (1373570245,), (1373570273,), (1373570285,), (1373570312,), (1373570322,), (1373570323,), (1373570325,), (1373570327,), (1373570331,), (1373570358,), (1373570360,), (1373570364,), (1373570368,), (1373570376,), (1373570381,), (1373570429,), (1373570435,), (1373570438,), (1373570440,), (1373570460,), (1373570466,), (1373570485,), (1373570490,), (1373570497,), (1373570504,), (1373570516,), (1373570524,), (1373570562,), (1373570565,), (1373570574,), (1373570585,), (1373570592,), (1373570596,), (1373570617,), (1373570669,), (1373570695,), (1373570725,), (1373570749,), (1373570776,), (1373570783,), (1373570848,), (1373570916,), (1373570922,), (1373570930,), (1373570953,), (1373570984,), (1373571007,), (1373571081,), (1373571084,), (1373571087,), (1373571090,), (1373571093,), (1373571095,), (1373571131,), (1373571141,), (1373571146,), (1373571156,), (1373571178,), (1373571186,), (1373571225,), (1373571231,), (1373571235,), (1373571238,), (1373571242,), (1373571247,), (1373571374,), (1373571449,), (1373571502,), (1373571511,), (1373571516,), (1373571518,), (1373571522,), (1373571550,), (1373571654,), (1373571655,), (1373571656,), (1373571658,), (1373571660,), (1373571666,), (1373571700,), (1373571701,), (1373571702,), (1373571703,), (1373571705,), (1373571709,), (1373571934,), (1373571993,), (1373571995,), (1373571996,), (1373571997,), (1373571998,), (1373572002,), (1373572055,), (1373572057,), (1373572059,), (1373572060,), (1373572061,), (1373572065,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24072025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25289184]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] map_info['map_portfolio_photo'] : {25289184: [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993, 1373571934, 1373571709, 1373571705, 1373571703, 1373571702, 1373571701, 1373571700]} final : True mtd_id 4302 list_pids : [1373572065, 1373572061, 1373572060, 1373572059, 1373572057, 1373572055, 1373572002, 1373571998, 1373571997, 1373571996, 1373571995, 1373571993] Looping around the photos to save general results len do output : 1 /25289184Didn'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, '3343401') ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401') ('4302', None, None, None, None, None, None, None, '3343401') ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25289184', 'None', None, None, None, None, '3343401'), ('4302', '25289184', '1373572065', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572061', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572060', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572059', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572057', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572055', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373572002', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571998', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571997', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571996', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571995', None, None, None, None, None, '3343401'), ('4302', '25289184', '1373571993', None, None, None, None, None, '3343401')] time used for this insertion : 0.015230417251586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.690948963165283 time spend to save output : 0.01548314094543457 total time spend for step 5 : 4.706432104110718 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 (3343401) 2.46user 2.06system 0:11.49elapsed 39%CPU (0avgtext+0avgdata 159608maxresident)k 272inputs+8904outputs (6major+76594minor)pagefaults 0swaps